다중 쓰레드 소켓 폴링 서버 시스템
    21.
    发明公开
    다중 쓰레드 소켓 폴링 서버 시스템 失效
    用于多用途插座的服务器系统

    公开(公告)号:KR1020040055920A

    公开(公告)日:2004-06-30

    申请号:KR1020020082392

    申请日:2002-12-23

    Abstract: PURPOSE: A server system for polling a multithread socket is provided to cover a weak point of a single thread model and offer a performance better than a simple multithread model by keeping the processing threads and dynamically assigning the socket generated when a connection is requested to the processing threads. CONSTITUTION: A server socket thread(10) assigns one client socket(20) to one connection request transmitted through the network. A socket pool(200) stores the client socket approved from the server socket thread. A thread pool(400) processes the multi-request of a client by having the threads(450-1¯450-n), and returns the client socket to the socket pool after each thread processes the request of the client socket having the data once. A polling thread(300) selects the client socket having the data from the socket pool depending on a registration order, and assigns the selected client socket to each thread.

    Abstract translation: 目的:提供一种用于轮询多线程套接字的服务器系统,以覆盖单线程模型的弱点,并提供比简单多线程模型更好的性能,通过保留处理线程并动态分配在请求连接时生成的套接字 处理线程。 构成:服务器套接字线程(10)为通过网络发送的一个连接请求分配一个客户端套接字(20)。 套接字池(200)存储从服务器套接字线程批准的客户端套接字。 线程池(400)通过拥有线程(450-1¯450-n)来处理客户端的多请求,并且在每个线程处理具有数据的客户端套接字的请求之后,将客户端套接字返回到套接字池 一旦。 轮询线程(300)根据注册顺序从套接字池中选择具有数据的客户机套接字,并将所选客户端套接字分配给每个线程。

Patent Agency Ranking