semaphore sample start
ThreadID: B719BB90, started
ThreadID: B708AB90, started
ThreadID: B6F89B90, started
ThreadID: B6E88B90, started
ThreadID: B6D87B90, started
ThreadID: B719BB90, wait for resource #0
ThreadID: B719BB90, access to resource #0 'sem'
ThreadID: B708AB90, wait for resource #1
ThreadID: B708AB90, access to resource #1 'aph'
ThreadID: B719BB90, release resource #0
->previous semaphore count: 1
ThreadID: B708AB90, release resource #1
->previous semaphore count: 2
ThreadID: B6D87B90, wait for resource #1
ThreadID: B6D87B90, access to resource #1 'aph'
ThreadID: B6E88B90, wait for resource #0
ThreadID: B6E88B90, access to resource #0 'sem'
ThreadID: B6D87B90, release resource #1
->previous semaphore count: 1
ThreadID: B6F89B90, wait for resource #2
ThreadID: B6F89B90, access to resource #2 'ore'
ThreadID: B6E88B90, release resource #0
->previous semaphore count: 1
ThreadID: B708AB90, wait for resource #1
ThreadID: B708AB90, access to resource #1 'aph'
ThreadID: B6F89B90, release resource #2
->previous semaphore count: 1
ThreadID: B708AB90, release resource #1
->previous semaphore count: 2
ThreadID: B6E88B90, wait for resource #0
ThreadID: B6E88B90, access to resource #0 'sem'
ThreadID: B6D87B90, wait for resource #1
ThreadID: B6D87B90, access to resource #1 'aph'
ThreadID: B719BB90, wait for resource #0
ThreadID: B719BB90, access to resource #0 'sem'
ThreadID: B6E88B90, release resource #0
->previous semaphore count: 0
ThreadID: B6D87B90, release resource #1
->previous semaphore count: 1
ThreadID: B719BB90, release resource #0
->previous semaphore count: 2
ThreadID: B6D87B90, wait for resource #1
ThreadID: B6D87B90, access to resource #1 'aph'
ThreadID: B708AB90, wait for resource #1
ThreadID: B708AB90, access to resource #1 'aph'
ThreadID: B6F89B90, wait for resource #2
ThreadID: B6F89B90, access to resource #2 'ore'
ThreadID: B6D87B90, release resource #1
->previous semaphore count: 0
ThreadID: B708AB90, release resource #1
->previous semaphore count: 1
ThreadID: B6F89B90, release resource #2
->previous semaphore count: 2
ThreadID: B719BB90, wait for resource #0
ThreadID: B719BB90, access to resource #0 'sem'
ThreadID: B6E88B90, wait for resource #0
ThreadID: B6E88B90, access to resource #0 'sem'
ThreadID: B6D87B90, wait for resource #1
ThreadID: B6D87B90, access to resource #1 'aph'
ThreadID: B6F89B90, wait for resource #2
ThreadID: B719BB90, release resource #0
->previous semaphore count: 0
ThreadID: B6F89B90, access to resource #2 'ore'
ThreadID: B6E88B90, release resource #0
->previous semaphore count: 0
ThreadID: B6D87B90, release resource #1
->previous semaphore count: 1
ThreadID: B6F89B90, release resource #2
->previous semaphore count: 2
ThreadID: B719BB90, finished
ThreadID: B708AB90, finished
ThreadID: B6F89B90, finished
ThreadID: B6E88B90, finished
ThreadID: B6D87B90, finished