From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: weis Received: (from weis@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id LAA18587 for caml-redistribution; Tue, 22 Feb 2000 11:48:33 +0100 (MET) Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id VAA09695 for ; Mon, 21 Feb 2000 21:37:38 +0100 (MET) Received: from ruby (kenny82.zip.com.au [61.8.18.210]) by nez-perce.inria.fr (8.8.7/8.8.7) with ESMTP id VAA16842 for ; Mon, 21 Feb 2000 21:37:34 +0100 (MET) Received: from maxtal.com.au (IDENT:root@localhost [127.0.0.1]) by ruby (8.9.3/8.9.3) with ESMTP id HAA21530 for ; Tue, 22 Feb 2000 07:38:30 +1100 Sender: weis Message-ID: <38B1A244.2B0F5832@maxtal.com.au> Date: Tue, 22 Feb 2000 07:38:28 +1100 From: skaller Organization: Maxtal X-Mailer: Mozilla 4.51 [en] (X11; I; Linux 2.2.12 i586) X-Accept-Language: en MIME-Version: 1.0 To: caml-list@inria.fr Subject: Re: Thread feature missing References: <20000211111749.34427@pauillac.inria.fr> <20000213073403Q.garrigue@kurims.kyoto-u.ac.jp> <38A7B721.172F585C@univ-savoie.fr> <20000215170653.54672@pauillac.inria.fr> <38AA8A8B.17558090@univ-savoie.fr> <20000218101403.40695@pauillac.inria.fr> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Xavier Leroy wrote: > Again, I'd argue that a design that calls for thousands of threads is > broken. See the periodic and lively discussions on > comp.programming.threads on this topic. I have an application that _requires_ thousands of threads of control. It has nothing to do with the 'design'. Of course, the threads spend most of the time doing nothing, and the current implementation uses callbacks not hardware threads. However, programming in this environment directly is bad; the programmer wants to write threads. I was thinking of using the bytecode interpreter threads to implement this. Is this not feasible? [Hardware threads are too slow, I need to create 500 threads per second, with a life of about 5 mins, which means about 20000 active threads: the overhead of 4K is per thread is small, only ~80Meg] -- John (Max) Skaller, mailto:skaller@maxtal.com.au 10/1 Toxteth Rd Glebe NSW 2037 Australia voice: 61-2-9660-0850 checkout Vyper http://Vyper.sourceforge.net download Interscript http://Interscript.sourceforge.net