In article [EMAIL PROTECTED],
Ronald G Minnich [EMAIL PROTECTED] wrote:
On Wed, 4 Oct 2000, FengYue wrote:
It seems that mmap on /dev/zero is more portable.
no really, It won't work at all correctly on linux, and on Tru64 it does
the totally wrong thing, but the (fd = -1, MAP_ANONYMOUS)
Hi, excluding the extra kernel calls of open()/close() on /dev/zero,
which one of the following would be more efficient:
1) Using mmap on /dev/zero
2) Using mmap with MAP_ANON flag
The purpose is, ofcourse, to share the memory (RW) among all child
processes.
It seems that mmap on /dev/zero
On Wed, 4 Oct 2000, FengYue wrote:
It seems that mmap on /dev/zero is more portable.
no really, It won't work at all correctly on linux, and on Tru64 it does
the totally wrong thing, but the (fd = -1, MAP_ANONYMOUS) does the right
thing on tru64.
It's disappointing that this works so
3 matches
Mail list logo