On Thu, 23 Sep 2004 10:15:12 -0700, Jim Wintermyre <email@hidden> wrote:
>>On Wed, 22 Sep 2004 11:43:10 -0400, Peter S Lau <email@hidden> wrote:
>>> Do I recall correctly that most (if all) of the file system API's are
>>> now thread safe?
>>
>>The sync version of all the file API's that have both a sync and async
>>version are thread safe.
>
> OK, but are synchronous file system calls *serialized* at the OS
> level? i.e. if you call FSRead from one thread, if another thread
> calls FSRead is it blocked until the first call completes? This is
> still "thread-safe" but obviously has performance implications.
While (ALL) file system calls are synchronous in the kernel and are
serialized (via a FIFO command buffer) there is some intelligence to
pre-fetch and combine pending I/O where there is a performance benefit.
--
Enjoy,
George Warner,
Schizophrenic Optimization Scientist
Apple Developer Technical Support (DTS)
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Mt-smp mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden