Develop a small program in c or java using system calls eg


Develop a small program in C (or Java) using system calls (e.g. fork(), waitpid(), exit(), kill(), ..) that does the following:

  • a parent process creates a child process that prints its PID
  • the child creates a grandchild and sleeps 120 seconds
  • the grandchild immediatly exits
  • the parent sleeps for 60 seconds and then kills all the processes

Solution Preview :

Prepared by a verified Expert
Macroeconomics: Develop a small program in c or java using system calls eg
Reference No:- TGS01551627

Now Priced at $10 (50% Discount)

Recommended (95%)

Rated (4.7/5)