Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint

28.6. Exercise

  1. Write a program to see how fast the fork() and vfork() system calls are on your system. Each child process should immediately exit, and the parent should wait() on each child before creating the next. Compare the relative differences for these two system calls with those of Table 28-3. The shell built-in command time can be used to measure the execution time of a program.


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial