5.4 Thread Attributes

To list thread attributes on Oracle Linux, compile and run the C source program that is listed on the pthread_attr_init(3) manual page, for example:

$ gcc thread.c -pthread
$ ./a.out
Thread attributes:
	Detach state        = PTHREAD_CREATE_JOINABLE
	Scope               = PTHREAD_SCOPE_SYSTEM
	Inherit scheduler   = PTHREAD_INHERIT_SCHED
	Scheduling policy   = SCHED_OTHER
	Scheduling priority = 0
	Guard size          = 4096 bytes
	Stack address       = 0x7f8f06da6000
	Stack size          = 0x801000 bytes