The invention discloses a
Web interaction system process management method and device for reducing CGI process overhead, and the method comprises the steps: firstly, building a plurality of sub-process pools in advance when a
Web server is started, and carrying out the
multiplexing processing of subsequent requests through the processes; the
parent process performs creation, task allocation, maintenance and life cycle management on the
child process, and the overhead of the existing CGI process can be greatly reduced. Secondly, the
shared memory is used for storing task queues or public data, synchronization is achieved in cooperation with semaphores, data competition is avoided, the overhead is small, and the speed is high. And thirdly, by using a
polling method, the
parent process traverses the sub-process array in sequence, and the task is allocated to the first idle sub-process, so that the effect of accurately reducing the overhead is achieved. And finally,
epoll is used for replacing select or poll, so that the expenditure is remarkably reduced, and the event
processing efficiency of multiple sub-processes is improved.