Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Shared memory with IPC::Shareable

by kscaldef (Pilgrim)
on Apr 12, 2005 at 23:52 UTC ( [id://447214]=note: print w/replies, xml ) Need Help??


in reply to Shared memory with IPC::Shareable

What version are you using? At least in 0.60, any locks are released in an END block if you forget to (assuming your program exits normally). However, if you have an older version, this might be explained by a performance optimization that IPC::Shareable uses. When you have a write lock on a segment, the changes you make are not immediately written to the shared memory segment. Rather, they are deferred until the unlock happens, to avoid freezing and thawing repeatedly. So, you can see how it might appear that you are updating the shared object, but if you don't unlock other processes will never see it.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://447214]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (8)
As of 2024-04-19 08:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found