P1: allocate(printer) allocate(camera)
P2: allocate(camera) allocate(printer)
allocate(printer)
allocate(camera)
allocate(camera)
allocate(printer)
mutex cameraMutex(true) mutex printerMutex(true)t1: take(printerMutex) take(cameraMutex) allocate(printer) allocate(camera)
t2: take(cameraMutex) take(printerMutex) allocate(camera) allocate(printer)
take(printerMutex)
take(cameraMutex)
take(cameraMutex)
take(printerMutex)
A: The system seems to be running slow.
B: Guess it’s time for a therapeutic reboot.
This page last modified on 2011 October 9. |