Apache HTTP Server Version 2.0

This document refers to the 2.0 version of Apache httpd, which is no longer maintained. Upgrade, and refer to the current version of httpd instead, documented at:
You may follow this link to go to the current version of this document.
| 설명: | 표준 worker MPM의 실험적인 변형 |
|---|---|
| 상태: | MPM |
| 모듈명: | mpm_leader_module |
| 소스파일: | leader.c |
이 MPM은 실험적인 상태로, 기대한대로 동작하지않을 수 있다.
이 모듈은 표준 worker MPM의 실험적인
변형이다. 이 모듈은 쓰레드간의 협동을 위해 Leader/Followers
디자인패턴을 사용한다. 더 자세한 정보는 http://deuce.doc.wustl.edu/doc/pspdfs/lf.pdf를 참고하라.
leader MPM을 사용하려면,
httpd를 컴파일할때 configure
스크립트 아규먼트에 --with-mpm=leader를
사용한다.
이 MPM은 쓰레드 동기를 위해 APR의 atomic compare-and-swap
명령을 사용한다. x86용으로 컴파일하지만 386을 지원할 필요가
없거나, SPARC용으로 컴파일하지만 UltraSPARC 칩 이전에서
실행하지 않는다면, configure 스크립트 아규먼트에
--enable-nonportable-atomics=yes를 사용하라.
그러면 APR이 오래된 CPU에는 없는 더 효율적인 명령어를 사용하여
atomic 명령을 구현한다.