Reference: new
Author: Ellen Siever, Stephen Spainhour & Nathan Patwardhan
Date: 1999-07-02T01:49:03Z

#

| Chapter 8 Standard Modules |

## new

    $sem = new IPC::Semaphore(key, nsems, flags)

Creates a new semaphore set associated with key and containing nsems semaphores. Uses flags to set the permissions. Creates the new set if the following are true:

- key is equal to IPC_PRIVATE.

- key doesn't already have an associated semaphore identifier and `FLAGS & IPC_CREAT` is true.

8.100 IPC::Semaphore |  | Reference: getall