in reply to Re^2: Threads From Hell #1: How To Share A Hash
in thread Threads From Hell #1: How To Share A Hash [SOLVED]
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.)
|
|---|