Re: Threading Concept in Linux....?
- From: Michael Schnell <mschnell_at_lumino_dot_de@xxxxxxxxxxx>
- Date: Wed, 30 May 2007 15:16:40 +0200
Sven Geggus wrote:
ellis@xxxxxxx wrote:
And yet it seems (at least to me) that beginners are all too often
the ones that are hot for using threads.
One reason for this is that concepts like select or poll are hardly known.
For some reason, as far as concurrent IO is concerned people often think of
threading as the only possible solution for this kind of problem.
Don't you think that waiting for an event in a thread is better than wasting CPU time by polling.
If the OS provides a select() API for the event in question, it might be possible to avoid threads, though, as here the kernel driver will do the un-blocking for us, moving some of the complexity into the driver. IMHO, not a good idea for homebrew driver implementation.
-Michael
.
- References:
- Threading Concept in Linux....?
- From: Murali
- Re: Threading Concept in Linux....?
- From: phil-news-nospam
- Re: Threading Concept in Linux....?
- From:
- Re: Threading Concept in Linux....?
- From: Sven Geggus
- Threading Concept in Linux....?
- Prev by Date: Re: About Problem with '__cxa_atexit' 选项
- Next by Date: Re: i need idea
- Previous by thread: Re: Threading Concept in Linux....?
- Next by thread: Re: Threading Concept in Linux....?
- Index(es):
Relevant Pages
|