Mailinglist Archive: opensuse (2459 mails)

< Previous Next >
Re: [opensuse] GSOC 2008
  • From: Sam Clemens <clemens.sam1@xxxxxxxxx>
  • Date: Thu, 20 Mar 2008 18:05:06 -0400
  • Message-id: <47E2DF92.2040709@xxxxxxxxx>
Anders Johansson wrote:
debayan wrote:
No but even if you fork off separate processes, you get non-blocking IO
programs using pipes.... why use threads just for that then??

To avoid having to implement an event loop to check and see what
happened to the IO?

you don't need that. The process blocks until the IO completes,
then the scheduler puts the process back on the CPU.

To be able to use all your CPU cores?

Let the process scheduler handle that.
It knows when a process has I/O ready to read or not.

Also, not all kernel activities are non-blocking


To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx

< Previous Next >