Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 56115 invoked from network); 21 Oct 2003 06:26:39 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 21 Oct 2003 06:26:39 -0000 Received: (qmail 1498 invoked by uid 500); 21 Oct 2003 06:26:13 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 1452 invoked by uid 500); 21 Oct 2003 06:26:13 -0000 Mailing-List: contact dev-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: dev@cocoon.apache.org Delivered-To: mailing list dev@cocoon.apache.org Received: (qmail 1439 invoked from network); 21 Oct 2003 06:26:13 -0000 Received: from unknown (HELO mail.s-und-n.de) (212.8.217.2) by daedalus.apache.org with SMTP; 21 Oct 2003 06:26:13 -0000 Received: from notes.sundn.de (ntsrv5.sundn.de [10.10.2.10]) by mail.s-und-n.de (postfix) with ESMTP id 856B0E26C1 for ; Tue, 21 Oct 2003 08:26:24 +0200 (CEST) Received: from hw0386 ([10.10.2.46]) by notes.sundn.de (Lotus Domino Release 5.0.8) with SMTP id 2003102108262316:51557 ; Tue, 21 Oct 2003 08:26:23 +0200 From: "Carsten Ziegeler" To: Subject: RE: Why is FlowInterpreter SingleThreaded? Date: Tue, 21 Oct 2003 08:29:11 +0200 Message-ID: MIME-Version: 1.0 X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 In-Reply-To: <3F93FEA1.4030408@anyware-tech.com> Importance: Normal X-MIMETrack: Itemize by SMTP Server on PBSN1/Systeme und Netzwerke(Release 5.0.8 |June 18, 2001) at 21.10.2003 08:26:23, Serialize by Router on PBSN1/Systeme und Netzwerke(Release 5.0.8 |June 18, 2001) at 21.10.2003 08:26:24, Serialize complete at 21.10.2003 08:26:24 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Sylvain Wallez wrote: > > After looking carefully, the interpreter must be SingleThreaded, even if > thread safe... > > This is because although an intepreter can handle concurrent requests, > each sitemap must have a different instance, since the interpreter holds > the scripts defined in a statement. > > So if the interpreter is made ThreadSafe, a unique instance will exist > for the whole system, and will mix all script definitions and script > global variables. Making it SingleThreaded ensures each sitemap will > have its own instance. It seems hacky, but I don't see what other means > we have to achieve this... > Ok, I understand that; so we *could* make it Poolable then, right? This is not a hugh issue anyway, but I fear that people might copy the code and use SingleThreaded in other places where it does matter. Carsten