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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!