The pthread_attr_init function

Name

pthread_attr_init -- 

Synopsis

#include <pthread.h>

int pthread_attr_init (pthread_attr_t *attr);

Description

The pthread_attr_init function initializes a thread attribute object with default values.

Returns

The pthread_attr_init function returns zero if the call is successful, otherwise it sets errno to EINVAL and returns -1.

Implementation Notes

The default priority is 0.
The default stack size is 8192 bytes on 32-bit targetrs, and 1024 words (2048 bytes) on 16-bit targets.