Messages in this thread | | | From | (bill davidsen) | Subject | Re: So, Poll is not scalable... what to do? | Date | 12 Nov 2003 23:23:07 GMT |
| |
In article <LAW12-F60bw5TYIo9WF0002bec8@hotmail.com>, kirk bae <justformoonie@hotmail.com> wrote: | If poll is not scalable, which method should I use when writing | multithreaded socket server? | | What is the most efficient model to use? | | Is there a "standard" model to use when writing a scalable multithreaded | socket serve such as "io completion ports" on windows? |
In many cases people just run a thread per socket and use blocking i/o. Then the thread either does the work required or make an entry on a "work to do" queue.
You've had other suggestions, this is just for completeness. -- bill davidsen <davidsen@tmr.com> CTO, TMR Associates, Inc Doing interesting things with little computers since 1979. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |