#include <stdio.h>
#include <unistd.h>
#include <sys/types.h>
int main() {
    pid_t pid = fork();
    if (pid == 0) {
        printf("Child process finished.\n");
    } else {
        sleep(10); // Parent delays
        printf("Parent ends after child.\n");
    }
    return 0;
}
