And the code i figured out looks very similar to my forking example and doesn't perform so bad.
So... you were trying to restrict the number of concurrent threads to 4? Yes. It works for that purpose.
(I originally thought is was some attempt to prevent concurrent access to the shared hash; ie. a substitute for lock. My mistake.)
In reply to Re^3: Threads From Hell #1: How To Share A Hash
by BrowserUk
in thread Threads From Hell #1: How To Share A Hash [SOLVED]
by karlgoethebier
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |