Re: fread multiple files
Re: fread multiple files
- Subject: Re: fread multiple files
- From: Terry Lambert <email@hidden>
- Date: Fri, 25 Sep 2009 16:24:47 -0700
On Sep 25, 2009, at 1:35 PM, Alastair Houghton wrote:
On 25 Sep 2009, at 20:07, Terry Lambert wrote:
If the same file is being contended in multiple threads (the mutex
usage will normally not kick in unless your program is
multithreaded in the first place), then you need to stop using
stdio and switch to using aio_read or press instead, and managing
any block buffering, like that normally provided by stdio, in your
own code.
press?
I don't recognise that in this context, but I'm curious?
pread, corrected by the iPhone autocorrection into a word i knows
about instead of a system call name it doesn't.
And in which version of OS X did support for aio_read() debut? I
don't recall noticing support for the REALTIME stuff before (maybe I
just missed it somehow).
We don't support all of POSIX RT. The option set that that's in is
actially AIO, which is a subset of RT, and we don't se
_POSIX_ASYNCHRONOUS_IO in <unistd.h> because we don't support one of
the option flags to aio_fsync() in a POSIX compliant way.
And it debuted in Tiger, which from my point of view makes it an
antique.
-- Terry
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden