To manage the process using fork() and execl() system calls. OPERATING SYSTEM (OS) LAB IN LINUX ENVIRONMENT
· Start program.
· System is used to call the child process.
· fork() system call is assigned to fd variable.
· if fd is equal to -1, then control is passed to main program.
· if fd is equal to 0, date and time of child process is printed.
· Stop the program.
PROGRAM SOURCE CODE
printf("now you are with parent process");
if (fd ==0)
printf("now you are with current processs\n");
Thus the c program to perform process management using fork() and execl() was written and executed successfully.