semaphore created
ProcessID 7862, started
->semaphore count: 3
ProcessID 7862, wait for semaphore
ProcessID 7862, access to semaphore
ProcessID 7863, started
->semaphore count: 2
ProcessID 7863, wait for semaphore
ProcessID 7863, access to semaphore
ProcessID 7864, started
->semaphore count: 1
ProcessID 7864, wait for semaphore
ProcessID 7864, access to semaphore
ProcessID 7865, started
->semaphore count: 0
ProcessID 7865, wait for semaphore
ProcessID 7866, started
->semaphore count: 0
ProcessID 7866, wait for semaphore
ProcessID 7862, release semaphore
ProcessID 7865, access to semaphore
->semaphore count: 0
ProcessID 7862, exited
ProcessID 7867, started
->semaphore count: 0
ProcessID 7867, wait for semaphore
ProcessID 7863, release semaphore
->semaphore count: 1
ProcessID 7863, exited
ProcessID 7866, access to semaphore
ProcessID 7868, started
->semaphore count: 0
ProcessID 7868, wait for semaphore
ProcessID 7864, release semaphore
->semaphore count: 1
ProcessID 7864, exited
ProcessID 7867, access to semaphore
ProcessID 7869, started
->semaphore count: 0
ProcessID 7869, wait for semaphore
ProcessID 7870, started
->semaphore count: 0
ProcessID 7870, wait for semaphore
ProcessID 7871, started
->semaphore count: 0
ProcessID 7871, wait for semaphore
ProcessID 7865, release semaphore
->semaphore count: 1
ProcessID 7865, exited
ProcessID 7868, access to semaphore
ProcessID 7866, release semaphore
->semaphore count: 1
ProcessID 7866, exited
ProcessID 7869, access to semaphore
ProcessID 7867, release semaphore
->semaphore count: 1
ProcessID 7867, exited
ProcessID 7870, access to semaphore
ProcessID 7868, release semaphore
->semaphore count: 1
ProcessID 7868, exited
ProcessID 7871, access to semaphore
ProcessID 7869, release semaphore
->semaphore count: 1
ProcessID 7869, exited
ProcessID 7870, release semaphore
->semaphore count: 2
ProcessID 7870, exited
ProcessID 7871, release semaphore
->semaphore count: 3
ProcessID 7871, exited
all processes are finished
semaphore closed
semaphore unlinked