| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
Greg Guerin wrote:
Doug Zwick wrote:
The IPC buffers used by the streams are quite small (IIRC they are on the
order of 256 bytes).
A few months ago, I had a need to know exactly how big the pipe buffers
were, so I write a Java program to help me find out. Across several machines
running 10.4, the buffer is 16KB in length, which is larger than I expected.
However, this could vary for any number of reasons, and is not guaranteed
by any parameter or configurable value in the OS I could find. My guess is
it's wired into a kernel header file somewhere, but that's just a guess.
Below is the test program I wrote. It's an informative exercise to
intentionally try to deadlock a parent process. I recommend it highly.
This one deadlocks at 16385 or above, but ends normally at 16384 or below,
at least for me. YMMV.
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.