Hi I have to accomplish the following:
Write a program that will consider the effects of process scheduling by using fork() system call. The write() system call is used instead of printf. The sleep() system call is used to prevent the process from running to completion within one slice time. Compile and run your program so it will output as follows:
Parent
Parent
Child
Parent
Child
Parent
Child
Parent
Child
Child
I would appreciate any help on this, I'm not sure what the fork() system call does and how to integrate it in a program.