Question Locked

any help with multiple-processor scheduling simulation?

0 helpful
1 reply
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

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.

1 reply

This discussion is closed to new replies.