sapi/servlet

From: Date: Wed, 14 Mar 2001 04:44:13 +0000
Subject: sapi/servlet
Groups: php.dev 
Request: Send a blank email to php-dev+get-48871@lists.php.net to get a copy of this message
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.

« previous php.dev (#48871) next »