News for hackers. Stuff that matters.
Re:Shoestring Budget? Starting to feel growth issues on you... by huhtenberg on Thursday September 11, 2008 @02:33PM (#301618)
> The general method appears to be, write the program using an event model, then create a thread per CPU, which each thread waiting on epoll() (timeouts optional).

Alternative arrangement is to have a single IO thread that deals exclusively with getting data off the wire and multiple "worker" threads that handle the actual processing. I like this model better, because it provides cleaner logic separation, run-time threading control and it has several other advantages. Though "your experience may vary".

There are no comments on this comment yet.