Re: Threading Concept in Linux....?



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
.



Relevant Pages

  • Re: no static functions in WDK examples;
    ... information for their products to OCA? ... Windows 2k/XP/2k3 Filesystem and Driver Consulting ... You also end up with a lot of dumps logged ... There is no technical reason not to. ...
    (microsoft.public.win32.programmer.kernel)
  • Re: "All speeding unacceptable" - IAM
    ... Do you believe that if the reason isn't readily "apparent", ... If the driver had been insured, of driving age and stone cold sober ... I simply haven't seen the accident and I can't ... A child runs out in the road, a sober but speeding driver is unable to ...
    (uk.rec.driving)
  • Re: Advice Needed - Car Scratched while travelling
    ... thinks the other driver is in the wrong if some form of offence is ... >>> not give it to the police. ... >> person, vehicle, structure or animal, the driver of the motor vehicle ... >> motor vehicle for any reason does not give his name and address to any ...
    (soc.culture.singapore)
  • Re: Road rage bus driver caught on camera!
    ... However, for a "professional" in a service industry, that's why I ... especially with passengers on board, and to other road users needs to ... > this car driver was simply the final straw? ... > That would depend on the reason for the outburst. ...
    (uk.rec.driving)
  • Re: Careless drivers set to face jail
    ... if not the Police Force lawyer. ... The reason is simple, motorists are allowed take ... Police Officer was in full possession of the facts and if he says the driver ... distraction to motorists, then you are quite free to report them as such to ...
    (uk.transport)