Hi everyone,

I'm not sure who's maintaining the sapi/servlet module now... I think it
might be Alex Akilov.
I've been looking at the servlet code... and I'm curious in how the servlet
handles multiple threads ?

The servlet has some member variables.... namely..

    char slash=System.getProperty("file.separator").charAt(0);
    HttpServletRequest request;
    HttpServletResponse response;
    ServletInputStream stream;

    static int startup_count = 0;

    protected boolean display_source_mode = false;

Mistake me if I'm wrong.. but won't these variables get corrupted when multiple 
threads are running on the same instance of this servlet?
As well.. I'm curious in knowing how the zend engine will handle multiple threads...
>From what I can see of the code (and understand) multiple threads will access the 
>same instance of the zend engine.. it this ok?

Cheers,
Keith.



-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to