Question: please help with the answer to this question What kind of thread cancellation is demonstrated in the threadFun() thread function ? int done = 0;
please help with the answer to this question
What kind of thread cancellation is demonstrated in the threadFun() thread function ?
int done = 0; // global variable // the thread function void* threadFun(void* p) { ... while (! done) { ... // do some work }
pthread_exit(0); }
a.forceful cancellation
b. deferred cancellation
c.loop cancellation
d. asynchronous cancellation
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
