Process Model-apache

Source: Internet
Author: User

Relatively thick focus, with MPM encapsulation process model, a variety of strategies can choose


Data structure of MPM

The scoreboard shares the memory and holds the status information of the child process, mainly for the parent process to control the subprocess.
Each time a task is executed, the child process checks to see if it is the same family as the running main process, otherwise gracefully exits. (Running_generation family Number)
Describes threads (in child processes) Information: State, Access, run

Thread connection Information

To know the state of the system, traverse the scoreboard
Terminate the communication pipeline (Pipe of Death)


Process Model
Prefork
Leader/follow
Listener (Leader, worker, idle person)
Worker
Mixed processes and Threads: multiple threads under child processes

Each process has a listening thread. Mutually exclusive to the Accept_mutex.

(Too many processes to start, add sleep Gap)


WinNT MPM
   multithreading + completion port signal Model
   
   
       Listening The thread user listens, is not responsible for connection processing, the worker thread is responsible for connection requests only; Roles can be exchanged
      ap_mpm_pod_check
      
strong> Signal Processing
Exit
     sigterm
    sigwinch
 & Nbsp;  sigint
Non-graceful reboot
    sighup
Graceful Start
    sigusr
Ignore
    sigpipe

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.