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

29. Threads: Introduction > Thread Attributes

Thread Attributes

We mentioned earlier that the pthread_create() attr argument, whose type is pthread_attr_t, can be used to specify the attributes used in the creation of a new thread. We won’t go into the details of these attributes (for those details, see the references listed at the end of this chapter) or show the prototypes of the various Pthreads functions that can be used to manipulate a pthread_attr_t object. We’ll just mention that these attributes include information such as the location and size of the thread’s stack, the thread’s scheduling policy and priority (akin to the process realtime scheduling policies and priorities described in Overview of Realtime Process Scheduling and Realtime Process Scheduling API), and whether the thread is joinable or detached.


  

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