Parallel Processing Tutorial 07
1. PROGRAM FOR THREAD CREATION AND TERMINATION.
2. USING
THE POSIX THREADS LIBRARY, WRITE A 2-THREAD PROGRAM FOR LINUX. ONCE THE THREAD
SPAWNING IS DONE, THE FIRST THREAD (T1) SHOULD WAIT FOR USER INPUT. T1 SHOULD PRODUCE
NO OUTPUT, BUT SHOULD SHUT DOWN THE WHOLE PROCESS ONCE THE USER TYPES A Q OR A
Q. T2 SHOULD TAKE NO INPUT, BUT SHOULD GENERATE A LIST OF PRIME NUMBERS
STARTING AT 2 AND GOING AS HIGH AS IT CAN IN THE TIME ALLOWED. FROM THE USER
POINT OF VIEW, THIS PROGRAM WILL GENERATE PRIMES UNTIL TOLD TO QUIT.
>>Download Here<<