![]() |
|
Problems? Is your data what you think it is? | |
PerlMonks |
Re^4: Unexpected output from fork (Win32)by iburrell (Chaplain) |
on Aug 09, 2004 at 16:46 UTC ( #381293=note: print w/replies, xml ) | Need Help?? |
There is a good explanation for why the file handles are shared but the buffers are not. The buffering is done by Perl, in the IO layer, so each process gets its own memory and buffers. The low-level read is done by the OS, and it shares the file handle. There is a cache in the OS, but that doesn't have any behavior effect on the processes, other than the read being faster.
In Section
Seekers of Perl Wisdom
|
|