Posted by: hyperthread March 26, 2006
Login in to Rate this Post:
0
?
![](/wysiwyg/editor/images/smiley/msn/thumbs_up.gif)
![10 more flags than likes deactivates post.](/wysiwyg/editor/images/smiley/msn/thumbs_down.gif)
#include
int pthread_create(pthread_t *thread, const pthread_attr_t *attr, void *(*start)(void *), void *arg);
The pthread_create() function is used to create a new thread, with attributes specified by attr, within a process. If attr is NULL, the default attributes are used (see pthread_attr_init()). If the attribute object is modified later, the thread's attributes are not affected. If thread is not NULL, pthread_create() stores the ID of the created thread in the location referenced by thread.