The syntax prototype for semaphore new() is:
Editor’s Note: Would “prototype” be a better term that “syntax”,
since methods are not part of the BNF?
The syntax prototype for put() is:
The syntax prototype for get() is:
The syntax prototype for try_get() is:
The syntax prototype for mailbox new() is:
The syntax prototype for num() is:
The syntax prototype for put() is:
The syntax prototype for try_put() is:
The syntax prototype for get() is:
The syntax prototype for try_get() is:
The syntax prototype for peek() is:
The syntax prototype for try_peek() is: