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
  • PrintPrint
Share this Page URL
Help

28. Process Creation and Program Executi... > Effect of exec() and fork() on Proce...

Effect of exec() and fork() on Process Attributes

A process has numerous attributes, some of which we have already described in earlier chapters, and others that we explore in later chapters. Regarding these attributes, two questions arise:

  • What happens to these attributes when a process performs an exec()?

  • Which attributes are inherited by a child when a fork() is performed?

Table 28-4 summarizes the answers to these questions. The exec() column indicates which attributes are preserved during an exec(). The fork() column indicates which attributes are inherited (or in some cases, shared) by a child after fork(). Other than the attributes indicated as being Linux-specific, all listed attributes appear in standard UNIX implementations, and their handling during exec() and fork() conforms to the requirements of SUSv3.


  

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


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint