Skip to content

sugandhitushar/LSPAssignment2---Program-1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

NAME - program.c

USAGE - 
$ make
$ make run

DESCRIPTION - 
Creates a child process and forces parent process to wait till child process completes its execution.

Example -
$ make
gcc -c program.c
gcc -o forknWait program.o

$ make run
./forknWait
Parent:: pid=3925
Parent:: Let's wait for child process to complete
Child:: Created
Child:: pid=3926
Child:: Before sleep
Child:: sleep completed
Child:: Terminating
Parent:: Process: 3926 terminated with status: 0
Parent:: Terminating

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published