From 6adc4b0641fb4088aa07de70e58ac746bd9f27de Mon Sep 17 00:00:00 2001 From: Ryan Bloom Date: Mon, 6 Aug 2001 15:55:43 +0000 Subject: [PATCH] Explain the worker MPM git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89938 13f79535-47bb-0310-9956-ffa450edef68 --- server/mpm/MPM.NAMING | 2 ++ server/mpm/worker/worker.c | 7 +++++++ 2 files changed, 9 insertions(+) diff --git a/server/mpm/MPM.NAMING b/server/mpm/MPM.NAMING index 62b60a0328..b6fe5790ce 100644 --- a/server/mpm/MPM.NAMING +++ b/server/mpm/MPM.NAMING @@ -10,4 +10,6 @@ The following MPMs currently exist: threads/child (= Apache/thread) spmt_os2 ...... Single Process Model with Threading on OS/2 winnt ......... Single Process Model with Threading on Windows NT + worker ........ Multi Process model with threads. One acceptor thread, + multiple worker threads. diff --git a/server/mpm/worker/worker.c b/server/mpm/worker/worker.c index 9503611a7c..3d1b8736c1 100644 --- a/server/mpm/worker/worker.c +++ b/server/mpm/worker/worker.c @@ -56,6 +56,13 @@ * University of Illinois, Urbana-Champaign. */ +/* The purpose of this MPM is to fix the design flaws in the threaded + * model. Because of the way that pthreads and mutex locks interact, + * it is basically impossible to cleanly gracefully shutdown a child + * process if multiple threads are all blocked in accept. This model + * fixes those problems. + */ + #include "apr.h" #include "apr_portable.h" #include "apr_strings.h" -- 2.40.0