man pthread_attr_setdetachstate () - See pthread_attr_getdetachstate.3posix

REFERENCE

See pthread_attr_getdetachstate.3posix