in reply to Threads Doubt
regardless of whether you thread or not. My guess is that using 2 threads in this manner would be more efficient, but only if you're on a dual-processor system (I'm not even sure a hyper-threaded/dual-core processor would help).while (sysread (MYFILE, $myBuffer, 10*1024*1024) > 0) { # process buffer line by line }
|
|---|