MCPcopy Create free account
hub / github.com/changkun/pkg / S52_IntegerSemaphore

Struct S52_IntegerSemaphore

csp/csp.go:649–653  ·  view source on GitHub ↗

S52_IntegerSemaphore implements Section 5.2 Integer Semaphore. "To implement an integer semaphore, S, shared among an array X(i:1..100) of client processes. Each process many increment the semaphore by S!V() or delayed if the value of the semaphore is not positive." Solution: S::val:integer; val:=

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected