> As long as each thread has a separate file handle, they’re independent of 
> each other, since each file handle remembers its own offset in the file.

Ah, durr, you’re right.  Apologies, I once had the displeasure of debugging an 
ancient codebase that used the same Unix file descriptor with unlocked reads 
and writes across at least half a dozen threads.  The original query brought 
some memories I had long suppressed.

J.E., please disregard my original answer.  Jens is right, two independent file 
handles reading from the same file on their own threads should be A-okay!

Dan

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to