I have some socket questions about socket reading performance.
Is it possible below? (This is my first question.)
1. Two or more select() with each having a area socket id.
1 thread has select() with socketid range 3~500
2 thread has select() with socketid range 501-1000
2. 1 select() with multiple reading threads.
1 thread has select() with whole socketid range(eg. 3-1024)
2,3 threads have each reading operation from socketid queue
that 1 thread put the socket id into it when select() occurs
a reading event.
(kind of thread pool.)
Finally, I wonder which method is faster.
1. 1 thread reading with select()
2. above no .1
3. above no .2
or another socket implementation methods that you know.
Sent via Deja.com http://www.deja.com/
Before you buy.