Computer Science OS Question:
Suppose a system has an atomic hardware instruction SHIFT, that does as follows:
SHIFT ( int *A, *B ) {
*B =*A; // ATOMICALLY
*A = 0
}
A] Implement Dijkstra style semaphores with the shift instruction, that is, semaphores which utilize busy waiting.
B] Implement blocking semaphores using the shift instructions
Please show work and explain!
We need at least 10 more requests to produce the answer.
0 / 10 have requested this problem solution
The more requests, the faster the answer.
Computer Science OS Question: Suppose a system has an atomic hardware instruction SHIFT, that does as...