Jump to content

CPGuide - Semaphores: Difference between revisions

From EDM2
No edit summary
No edit summary
Line 3: Line 3:


==About Semaphores==
==About Semaphores==
        Event Semaphores
===Event Semaphores===
        Mutual Exclusion (Mutex) Semaphores
===Mutual Exclusion (Mutex) Semaphores===
        Multiple Wait (Muxwait) Semaphores
===Multiple Wait (Muxwait) Semaphores===
        Named and Anonymous Semaphores
===Named and Anonymous Semaphores===
        Semaphore Management  
===Semaphore Management===
==Using Event Semaphores==
==Using Event Semaphores==
        Creating an Event Semaphore
===Creating an Event Semaphore===
        Opening an Event Semaphore
===Opening an Event Semaphore===
        Closing an Event Semaphore
===Closing an Event Semaphore===
        Resetting an Event Semaphore
===Resetting an Event Semaphore===
        Posting an Event Semaphore
===Posting an Event Semaphore===
        Waiting for an Event Semaphore
===Waiting for an Event Semaphore===
        Querying an Event Semaphore  
===Querying an Event Semaphore===
==Using Mutex Semaphores==
==Using Mutex Semaphores==
        Creating a Mutex Semaphore
===Creating a Mutex Semaphore===
        Opening a Mutex Semaphore
===Opening a Mutex Semaphore===
        Requesting a Mutex Semaphore
===Requesting a Mutex Semaphore===
        Releasing a Mutex Semaphore
===Releasing a Mutex Semaphore===
        Closing a Mutex Semaphore
===Closing a Mutex Semaphore===
        Querying a Mutex Semaphore  
===Querying a Mutex Semaphore===
==Using Muxwait Semaphores==
==Using Muxwait Semaphores==
        Creating a Muxwait Semaphore
===Creating a Muxwait Semaphore===
        Opening a Muxwait Semaphore
===Opening a Muxwait Semaphore===
        Closing a Muxwait Semaphore
===Closing a Muxwait Semaphore===
        Waiting for a Muxwait Semaphore
===Waiting for a Muxwait Semaphore===
        Adding a Semaphore to a Muxwait List
===Adding a Semaphore to a Muxwait List===
        Deleting a Semaphore from a Muxwait List
===Deleting a Semaphore from a Muxwait List===
        Querying a Muxwait Semaphore  
===Querying a Muxwait Semaphore===




[[Category:CPGuide]]
[[Category:CPGuide]]

Revision as of 22:14, 22 April 2020

Reprint Courtesy of International Business Machines Corporation, © International Business Machines Corporation

Control Program Programming Guide and Reference
  1. Introduction to the Control Program
  2. Control Program Functions
  3. Keyboard Functions
  4. Mouse Functions
  5. Video Functions
  6. Data Types
  7. Errors
  8. Debugging
  9. Kernel Debugger Communications Protocol
  10. Device I/O
  11. Dynamic Linking
  12. Error Management
  13. Exception Management
  14. Extended Attributes
  15. File Management
  16. File Names
  17. File Systems
  18. Generic IOCtl Commands
  19. Memory Management
  20. Message Management
  21. National Language Support
  22. Pipes
  23. Program Execution Control
  24. Queues
  25. Semaphores
  26. Timers
  27. Notices
  28. Glossary

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