[Zope] No more than two threads?

Martijn Pieters mj@antraciet.nl
Thu, 23 Sep 1999 17:32:01 +0200


At 16:24 23/09/99 , Tony McDonald wrote:
>Hi,
>My start script is;
>
>#! /bin/sh
>reldir=`dirname $0`
>PYTHONHOME=`cd $reldir; pwd`
>export PYTHONHOME
>exec /home/Zope-2.0.0-solaris-2.6-sparc/bin/python \
>      $PYTHONHOME/z2.py -t 6 -p 'Zope.cgi' \
>#     -D "$@"
>         "$@"
>
>The Zope.cgi part works fine, as does the Zserver part (ie on port 8080).
>
>The thing is that if I  do
>% ps -ef | grep py
>
>I get,
>     nnle 17768 17767  0 12:57:37 ?        3:36 
> /home/Zope-2.0.0-solaris-2.6-sparc/bin/python /home/Zope-2.0.0-solari
>     nnle 17767     1  0 12:57:37 ?        0:00 
> /home/Zope-2.0.0-solaris-2.6-sparc/bin/python /home/Zope-2.0.0-solari
>     nnle 18963 18751  0 15:21:07 pts/10   0:00 grep py
>
>That means there's just two threads running, right?

No, it means there are two processes running; one for the ZDaemon (that 
monitors your Zope), and the other is the Zope process itself.

Threads run within one process.

--
Martijn Pieters, Web Developer
| Antraciet http://www.antraciet.nl
| Tel: +31-35-7502100 Fax: +31-35-7502111
| mailto:mj@antraciet.nl http://www.antraciet.nl/~mj
| PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149
------------------------------------------