mfaa
asked on
library and thread general question
What are in <unistd.h> and <stdlib.h> ?
To compile a thread on linux, we type
$cc -D_REENTRANT threadprog.c -o threadprog -lpthread
what does -D_REENTRANT do?
Thanks
MD
To compile a thread on linux, we type
$cc -D_REENTRANT threadprog.c -o threadprog -lpthread
what does -D_REENTRANT do?
Thanks
MD
When compiling code that uses threads we have to define the _REENTRANT macro so that the thread-safe system functions are used instead.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks for the reply...your help was greatly appreciated!
MD
MD