0 votes
0 answers
421
Demonstrate that monitors and semaphores are equivalent in so far as they can be used to implement solutions to the same types of synchronization problems.
0 votes
0 answers
422
Show how to implement the $wait()$ and $signal()$ semaphore operations in multiprocessor environments using the $test and set() $instruction. The solution should exhibit ...
0 votes
0 answers
425
Consider the code example for allocating and releasing processes shown below:$#define MAX PROCESSES 255int number of processes = 0;/* the implementation of fork() calls t...
0 votes
0 answers
427
0 votes
0 answers
430
Describe how the compare_and_swap() instruction can be used to provide mutual exclusion that satisfies the bounded-waiting requirement.
0 votes
0 answers
431
Describe two kernel data structures in which race conditions are possible.Be sure to include a description of how a race condition can occur.
0 votes
0 answers
432
The Linux kernel has a policy that a process cannot hold a spin lock while attempting to acquire a semaphore. Explain why this policy is in place.
0 votes
0 answers
433
0 votes
0 answers
434
Explain why implementing synchronization primitives by disabling interrupts is not appropriate in a single-processor system if the synchronization primitives are to be us...
0 votes
1 answer
438
0 votes
0 answers
439
Show that, if the $wait()$ and $signal()$ semaphore operations are not executed atomically, then mutual exclusion may be violated.
0 votes
0 answers
440