in reply to Using kernel-space threads with Perl

or is there a strategy I can use that won't involve copying the entire contents of memory into each iThread?

Sure. You can create a shared memory segment, and have your threads or forks read from the shmem. See SysV shared memory --pure perl for a rudimentary example

Or, you could create a 3.5 gig ramdisk, and have your workers read from it.


I'm not really a human, but I play one on earth.
Old Perl Programmer Haiku ................... flash japh
  • Comment on Re: Using kernel-space threads with Perl

Replies are listed 'Best First'.
Re^2: Using kernel-space threads with Perl
by aberman (Initiate) on Mar 22, 2011 at 20:26 UTC
    This is all very good information (as expected). This is my first real try at parallelizing a large problem, so I'm sure I've made some mistakes with it. I'll try to implement some of these ideas later this week and get back to the thread on it. I'll also post any resulting (working) code at the end to help out others with this problem. Thanks all!