Re: threads vs. processes
joe_at_invalid.address
Date: 05/08/03
- Next message: Valentin Nechayev: "Re: threads vs. processes"
- Previous message: Chuck Dillon: "Re: Visibility of global variables in shared libraries"
- In reply to: Valentin Nechayev: "Re: threads vs. processes"
- Next in thread: Valentin Nechayev: "Re: threads vs. processes"
- Reply: Valentin Nechayev: "Re: threads vs. processes"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Thu, 08 May 2003 20:41:44 GMT
Valentin Nechayev <netch@segfault.kiev.ua> writes:
> >>> joe@invalid.address wrote:
>
> > >> I agree that the standard says that a process that is waiting
> > >> for anything other than a CPU is blocked. However, it looks to
> > >> me like the standard does not allow that to happen when
> > >> reading/writing a descriptor that select() has said is
> > >> active. It says that when select() says a descriptor is ready
> > >> to read, a call to an input function on it with O_NONBLOCK
> > >> clear will not block.
> >> If that call had itself been the I/O operation, it would not
> >> have blocked. It cannot, and does not, make future guarantees.
> > I'll just point out once more that the standard doesn't say
> > this. It doesn't say that the operation is allowed to block in the
> > future, it says it's not allowed to block. I don't see the
> > stipulation you're making in the standard.
>
> Standard is not idealistic concept written by old men of wisdom in
> elephant bone tower. At least for Posix and SUS, standard is written form
> of facts of a few widely used systems, facts of practice.
> Your reading is incorrect because it is incorrect for real systems.
> For real systems, the following is true:
> - If file object is declared as 'ready for reading', it is ready for
> reading without blocking until the first consequent read call is done
> and if data isn't discarded by another call on this object.
Ok, but what makes you think I disagree with that?
> - If file object is declared as 'ready for writing', it is ready for
> writing without blocking until the first consequent write call is
> done and if non-blocking writeability isn't discarded by another
> call on this object.
Same comment here.
> If you can't find this in standard, either standard is flawed or you
> make flaw. But your reading is incorrect in any case.
Well, we're wrong together then, because I agree with what you said
here. I'm not sure what you thought I was saying.
Joe
- Next message: Valentin Nechayev: "Re: threads vs. processes"
- Previous message: Chuck Dillon: "Re: Visibility of global variables in shared libraries"
- In reply to: Valentin Nechayev: "Re: threads vs. processes"
- Next in thread: Valentin Nechayev: "Re: threads vs. processes"
- Reply: Valentin Nechayev: "Re: threads vs. processes"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|