any help with multiple-processor scheduling simulation? - TechRepublic
Question
April 11, 2010 at 11:47 AM
confusedfolk

any help with multiple-processor scheduling simulation?

by confusedfolk . Updated 16 years, 2 months ago

There is one Ready-Queue, where the processes are waiting for three CPUs, CPU-1,
CPU-2, and CPU-3. Assume that initially the queue is empty, and all CPUs are waiting
for the processes. Let the queue be large enough for all the processes.
2) Each CPU is waiting for processes arriving in the queue. The arrival of a process (to the
queue) should interrupt any of the waiting CPUs, which will grab the process, and
execute it. Use pthread_cond_wait( ) and pthread_cond_signal( ) functions to simulate
this step.

This discussion is locked

All Comments