From: Sylvain Le Gall <sylvain@le-gall.net>
To: caml-list@inria.fr
Subject: Re: memory usage
Date: Mon, 12 Jan 2009 17:55:22 +0000 (UTC) [thread overview]
Message-ID: <slrngmn10a.pbu.sylvain@gallu.homelinux.org> (raw)
In-Reply-To: <1231778664.4376.228.camel@john-laptop>
On 12-01-2009, John Lepikhin <john@ispsystem.com> 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
next prev parent reply other threads:[~2009-01-12 17:55 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-12 7:41 John Lepikhin
2009-01-12 8:39 ` [Caml-list] " Richard Jones
2009-01-12 9:14 ` John Lepikhin
2009-01-12 10:45 ` Sylvain Le Gall
2009-01-12 11:28 ` [Caml-list] " John Lepikhin
2009-01-12 11:41 ` Richard Jones
2009-01-12 15:03 ` John Lepikhin
2009-01-12 19:55 ` Richard Jones
2009-01-12 17:56 ` John Lepikhin
2009-01-12 20:12 ` Richard Jones
2009-01-12 21:34 ` John Lepikhin
2009-01-12 22:01 ` Richard Jones
2009-01-13 16:00 ` John Lepikhin
[not found] ` <20090112114837.GB18405@janestcapital.com>
2009-01-12 15:05 ` [Caml-list] " John Lepikhin
2009-01-12 16:29 ` Florian Hars
2009-01-12 16:44 ` John Lepikhin
2009-01-12 17:55 ` Sylvain Le Gall [this message]
2009-01-12 18:01 ` [Caml-list] " John Lepikhin
2009-01-12 18:26 ` Sylvain Le Gall
-- strict thread matches above, loose matches on Subject: below --
2008-07-11 19:49 Jean Krivine
2000-06-26 13:28 Memory usage Dorlet Emmanuel
2000-06-28 12:49 ` David Mentré
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=slrngmn10a.pbu.sylvain@gallu.homelinux.org \
--to=sylvain@le-gall.net \
--cc=caml-list@inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox