Good Day BrowserUk,
Your 'C' example brought up a very good point, and one that I've been pulling my hair out ever since your response. I re-wrote the script to use 'fork' to see how multiple processes would run. To my amazement the higher the fork number the greater the throughput. Since the test machine has 6 core and with 6 forks, all cores are running at 100%, adding more processes should not improve the wps. But it did! I just got better and better throughput.
But, because I'm using a file, I could look at the contents and the more processes, the more corrupt the file became. A little while ago, I found my problem.
The 'flock' function wasn't working with the 'sys...' functions ( sysread, syswrite, etc ). I still want to check this out, but I wanted you to know that my new good numbers are way less than what I originally published.
Regards...Ed
"Well done is better than well said." - Benjamin Franklin
In reply to Re^2: SysV shared memory (Look-Alike) -- pure perl
by flexvault
in thread SysV shared memory (Look-Alike) -- pure perl
by flexvault
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |