CPGuide - Semaphores: Difference between revisions
Appearance
Created page with " About Semaphores Event Semaphores Mutual Exclusion (Mutex) Semaphores Multiple Wait (Muxwait) Semaphores Named and Anonymous Semaphores ..." |
No edit summary |
||
Line 1: | Line 1: | ||
{{IBM-Reprint}} | |||
{{CPGuide}} | |||
==About Semaphores== | |||
Event Semaphores | Event Semaphores | ||
Mutual Exclusion (Mutex) Semaphores | Mutual Exclusion (Mutex) Semaphores | ||
Line 5: | Line 8: | ||
Named and Anonymous Semaphores | Named and Anonymous Semaphores | ||
Semaphore Management | Semaphore Management | ||
==Using Event Semaphores== | |||
Creating an Event Semaphore | Creating an Event Semaphore | ||
Opening an Event Semaphore | Opening an Event Semaphore | ||
Line 13: | Line 16: | ||
Waiting for an Event Semaphore | Waiting for an Event Semaphore | ||
Querying an Event Semaphore | Querying an Event Semaphore | ||
==Using Mutex Semaphores== | |||
Creating a Mutex Semaphore | Creating a Mutex Semaphore | ||
Opening a Mutex Semaphore | Opening a Mutex Semaphore | ||
Line 20: | Line 23: | ||
Closing a Mutex Semaphore | Closing a Mutex Semaphore | ||
Querying a Mutex Semaphore | Querying a Mutex Semaphore | ||
==Using Muxwait Semaphores== | |||
Creating a Muxwait Semaphore | Creating a Muxwait Semaphore | ||
Opening a Muxwait Semaphore | Opening a Muxwait Semaphore |
Revision as of 22:12, 22 April 2020
Reprint Courtesy of International Business Machines Corporation, © International Business Machines Corporation
About Semaphores
Event Semaphores Mutual Exclusion (Mutex) Semaphores Multiple Wait (Muxwait) Semaphores Named and Anonymous Semaphores Semaphore Management
Using Event Semaphores
Creating an Event Semaphore Opening an Event Semaphore Closing an Event Semaphore Resetting an Event Semaphore Posting an Event Semaphore Waiting for an Event Semaphore Querying an Event Semaphore
Using Mutex Semaphores
Creating a Mutex Semaphore Opening a Mutex Semaphore Requesting a Mutex Semaphore Releasing a Mutex Semaphore Closing a Mutex Semaphore Querying a Mutex Semaphore
Using Muxwait Semaphores
Creating a Muxwait Semaphore Opening a Muxwait Semaphore Closing a Muxwait Semaphore Waiting for a Muxwait Semaphore Adding a Semaphore to a Muxwait List Deleting a Semaphore from a Muxwait List Querying a Muxwait Semaphore