in reply to IPC::Semaphore example
I have the Perl CD bookshelf (v3.0) which contains 7 of the most famous/popular/authoratative O'Reilly Perl books. I did a search to see what IPC::Semaphore related examples it may hold. The result was 1, barely described, example.
However, it did turn up this quote from Programming Perl. Ch. 16.4 "System V IPC:
Everyone hates System V IPC. It's slower than paper tape, carves out insidious little namespaces completely unrelated to the filesystem, uses human-hostile numbers to name its objects, and is constantly losing track of its own mind. Every so often, your sysadmin has to go on a search-and-destroy mission to hunt down these lost SysV IPC objects with ipcs(1) and kill them with ipcrm(1), hopefully before the system runs out of memory.
However, it does mention IPC::Shareable, which if you take a quick look at the source, does make some fairly sophisticated use of IPC::Shareable.
If the above warning hasn't put you off, you may find that IPC::Shareable is your best source (sic) of example code.
|
|---|