in reply to Re: thread-safe mmap module ?
in thread thread-safe mmap module ?
Indeed.... thats why threads are used .... to facilitate sharing between threads....otherwise just fork. Fork and shared memory are an alternative to threads and threads::shared.
I'm not really a human, but I play one on earth My Petition to the Great Cosmic Conciousness
There may be an advantage to using shared memory in threads, notably it is the fastest IPC out there; but there are glitches....like how would you control simultaneous concurrent access to the mmap region from different threads? You are risking data corruption.
I'm not really a human, but I play one on earth My Petition to the Great Cosmic Conciousness
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: thread-safe mmap module ?
by jdd (Acolyte) on Feb 22, 2009 at 17:01 UTC | |
by zentara (Archbishop) on Feb 23, 2009 at 11:30 UTC |
In Section
Seekers of Perl Wisdom