Question: Write pthread c program that join 2 threads , every thread call different routine , the first thread print Thread 1 100 times but at
Write pthread c program that join 2 threads , every thread call different routine , the first thread print "Thread 1" 100 times but at the 50th time it goes to sleep , and the other thread print "Thread 2" 100 times but also at the 50th time it goes to sleep but with less time . write the program ,compile and run it
Step by Step Solution
3.43 Rating (153 Votes )
There are 3 Steps involved in it
To solve this problem you will create a pthreads C program where two separate threads ... View full answer
Get step-by-step solutions from verified subject matter experts
