0
我知道SEM_UNDO標誌撤消操作後,進程終止 但我想知道如何在我的程序中證明它。SEM_UNDO - 它是如何工作的?
實施例:
Semaphore A (process 1) has value = 1;
Semaphore A (process 1) wait.
Semaphore A (process 2) is decrementing (WITH FLAG = SEM_UNDO).
Sempahore A (process 1) has value = 0;
Process 2 end.
semaphore a (process 1) has value = 1 ? (undo decrementing)