semAvailable()
The function semAvailable() returns the number of available resources in the given semaphore.
Synopsis
int semAvailable(string id);
Parameters
| Parameter | Meaning | 
|---|---|
| id | The name used to address the semaphore. CAUTION:  The semaphores are detected manager
                                    globally. | 
Return value
The number of available resources.
Errors
Missing/incorrect arguments
Description
The function semAvailable() returns the number of available resources in the given semaphore.
An example can be found here: semAcquire()
Assignment
Thread programming
Availability
CTRL
