home | O'Reilly's CD bookshelfs | FreeBSD | Linux | Cisco | Cisco Exam  


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.


Previous: 8.100 IPC::Semaphore Perl in a Nutshell Next: Reference: getall
8.100 IPC::Semaphore Book Index Reference: getall

Library Navigation Links

Copyright © 2001 O'Reilly & Associates. All rights reserved.