Re: data written to file missed by reader
- From: "Kaz Kylheku" <kkylheku@xxxxxxxxx>
- Date: 14 Sep 2006 16:29:00 -0700
David Schwartz wrote:
Kaz Kylheku wrote:
Also, be sure that you don't have multiple threads or processes sharing
the same file descriptor. Every reader must use its own, separately
opened fd.
That's not true if one of two things is the case:
1) The file descriptor is protected by a mutex that is acquired before
a seek and released after the read/write, or
2) You only use operations with built-in seeks like pread/pwrite.
That's equivalent to making your own file descriptor abstraction, to
which the original comments then apply. :)
.
- References:
- data written to file missed by reader
- From: seanmkirkpatrick
- Re: data written to file missed by reader
- From: Kaz Kylheku
- Re: data written to file missed by reader
- From: David Schwartz
- data written to file missed by reader
- Prev by Date: Re: Overriding System Calls
- Next by Date: Re: newbie questions
- Previous by thread: Re: data written to file missed by reader
- Next by thread: Re: Overriding System Calls
- Index(es):
Relevant Pages
|