Sujet : Re: OT: Windows (Was: Re: Open Source does not mean easily
De : cross (at) *nospam* spitfire.i.gajendra.net (Dan Cross)
Groupes : comp.unix.programmerDate : 08. Jan 2025, 13:21:59
Autres entêtes
Organisation : PANIX Public Access Internet and UNIX, NYC
Message-ID : <vllql7$sn6$2@reader2.panix.com>
References : 1 2 3 4
User-Agent : trn 4.0-test77 (Sep 1, 2010)
In article <
677e2eb8$0$375$426a34cc@news.free.fr>,
Nicolas George <
nicolas$george@salle-s.org> wrote:
Scott Lurndal, dans le message <BcmfP.289889$aTp4.50420@fx09.iad>, a
�crit�:
It is perfectly possible to poll() on a thread condition. See pipe(2).
>
It is possible to write code to wake a thread blocked in poll(). I have not
tried to deny this. It is not possible to poll() directly on a thread
condition. You have not disproved that.
I think it's important to define what you mean when you write,
"thread condition." What, exactly, is that? Perhaps you mean
a condition variable? If so, that's true, but I fail to see
the relevance: people write multithreaded code that does IO in
multiple all the time; there are some techniques that are common
for this (Scott alluded to the so-called "pipe trick", due to
Bernstein) and some that are less common. It may be harder or
easier depending on which techniques you employ, but it's all
doable.
- Dan C.