From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.9 required=5.0 tests=AWL,SPF_FAIL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by yquem.inria.fr (Postfix) with ESMTP id 17486BB84 for ; Mon, 12 Jan 2009 18:55:37 +0100 (CET) X-IronPort-AV: E=Sophos;i="4.37,253,1231110000"; d="scan'208";a="33632330" Received: from concorde.inria.fr ([192.93.2.39]) by mail4-smtp-sop.national.inria.fr with ESMTP; 12 Jan 2009 18:55:36 +0100 Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by concorde.inria.fr (8.13.6/8.13.6) with ESMTP id n0CHtZc8001311 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=OK) for ; Mon, 12 Jan 2009 18:55:35 +0100 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvgCAKESa0lQW+UCe2dsb2JhbACUEwEBFiIEvx2Fbw X-IronPort-AV: E=Sophos;i="4.37,253,1231110000"; d="scan'208";a="19491269" Received: from main.gmane.org (HELO ciao.gmane.org) ([80.91.229.2]) by mail2-smtp-roc.national.inria.fr with ESMTP/TLS/AES256-SHA; 12 Jan 2009 18:55:35 +0100 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1LMR0e-0002Uv-0g for caml-list@inria.fr; Mon, 12 Jan 2009 17:55:32 +0000 Received: from ks300734.kimsufi.com ([91.121.65.225]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 12 Jan 2009 17:55:32 +0000 Received: from sylvain by ks300734.kimsufi.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 12 Jan 2009 17:55:32 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: caml-list@inria.fr From: Sylvain Le Gall Subject: Re: memory usage Date: Mon, 12 Jan 2009 17:55:22 +0000 (UTC) Message-ID: References: <1231746106.4376.27.camel@john-laptop> <496B6FE3.1010403@bik-gmbh.de> <1231778664.4376.228.camel@john-laptop> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: ks300734.kimsufi.com User-Agent: slrn/pre0.9.9-102 (Linux) Sender: news X-Miltered: at concorde with ID 496B8417.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; le-gall:01 threads:01 threads:01 wrote:01 module:03 let:03 let:03 exit:04 consequence:04 thread:06 thread:06 john:08 john:08 memory:09 shutdown:10 On 12-01-2009, John Lepikhin wrote: > >> > Each thread is killed after work is done >> How do you "kill" the threads? I hope this is just a figure of >> speech for "I do an orderly shutdown of each thread after work is done." > > Well, that was consequence of my bad English :-) Threads finish their > work and exit. I also made a simple wrapper to Thread.create to be sure > that all work inside threads is done: > > module MyThread = > let create f p = > let dowork _ = > (* log thread creation *) > f p; > (* log thread shutdown *) > in > Thread.create dowork () > end Do you use some kind of Thread.join ? Regards Sylvain Le Gall