Return-Path: Delivered-To: apmail-avalon-dev-archive@www.apache.org Received: (qmail 52481 invoked from network); 2 Jan 2004 14:59:37 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 2 Jan 2004 14:59:37 -0000 Received: (qmail 79994 invoked by uid 500); 2 Jan 2004 14:59:32 -0000 Delivered-To: apmail-avalon-dev-archive@avalon.apache.org Received: (qmail 79934 invoked by uid 500); 2 Jan 2004 14:59:32 -0000 Mailing-List: contact dev-help@avalon.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Avalon Developers List" Reply-To: "Avalon Developers List" Delivered-To: mailing list dev@avalon.apache.org Received: (qmail 79921 invoked from network); 2 Jan 2004 14:59:31 -0000 Received: from unknown (HELO steward.interdimensions.com) (64.115.225.4) by daedalus.apache.org with SMTP; 2 Jan 2004 14:59:31 -0000 Received: (qmail 7462 invoked from network); 2 Jan 2004 14:59:33 -0000 Received: from vishnu.interdimensions.com (172.16.0.127) by steward.interdimensions.com with SMTP; 2 Jan 2004 14:59:33 -0000 Date: Fri, 2 Jan 2004 09:59:33 -0500 (EST) From: Fernando Padilla To: dev@avalon.apache.org Subject: BlockThread Message-ID: MIME-Version: 1.0 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 Is there any reason why a new Thread is created and then kept around doing and endless sleep loop ( sleeping for measely 300 millisec ), for every block instanciation? Could we have the sleep loop be longer ( 10 sec ), and use interrupt to wake it up out of sleep if need be? Could we create a thread for assembly, then another for disassembly? (if we have the same classloader, this should work right?) just asking :) One possible way to design my application is that all "plugins" are blocks ( make sense ), but that doesn't make since if I'm having many,many "plugins" ( like 1000s, but even 100s of threads is not a good idea!! ) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@avalon.apache.org For additional commands, e-mail: dev-help@avalon.apache.org