]> granicus.if.org Git - apache/commitdiff
Explain the worker MPM
authorRyan Bloom <rbb@apache.org>
Mon, 6 Aug 2001 15:55:43 +0000 (15:55 +0000)
committerRyan Bloom <rbb@apache.org>
Mon, 6 Aug 2001 15:55:43 +0000 (15:55 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89938 13f79535-47bb-0310-9956-ffa450edef68

server/mpm/MPM.NAMING
server/mpm/worker/worker.c

index 62b60a0328966733b05ab79a2cecb3f06b8cf778..b6fe5790cee47af7c3e7e633554a2d2525699700 100644 (file)
@@ -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.
 
index 9503611a7c05113d3abd85c1aaba5e7641cbc614..3d1b8736c17a9c2d25ae2b8efeb9072e02fbfc31 100644 (file)
  * 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"