Home > other >  I can design the select concurrency model?
I can design the select concurrency model?

Time:09-30

 
3000//# define FD_SETSIZE select each polling 3000 connections

The SOCKET g_SocketList [10000].//maximum support 10000 connections

The main thread:
While (true)
{
.
Accept ()
.
}

Thread 1: the select () 1 ~ 3000 connection
Thread 2: connect the select () 3001 ~ 6000
Thread 3: select (6001 ~ 9000) connection
Thread 4: select (9001 ~ 10000) connection



Above is the pseudo code,
I have been using IOCP previously, but I can't do concurrent processing different connection, so recently learned under the select, the also don't know much about, excuse me, can I this design?
  • Related