Return Values
pthread_create() returns zero when it completes successfully.
Any other return value indicates that an error occurred. When any of the following
conditions are detected, pthread_create() fails and returns
the corresponding value.
-
EAGAIN
-
A system limit is exceeded, such
as when too many LWPs have been created.
-
EINVAL
-
The value of tattr is invalid.