caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Benjamin Geer <ben@socialtools.net>
To: John Goerzen <jgoerzen@complete.org>
Cc: Brian Hurt <bhurt@spnz.org>, caml-list@inria.fr
Subject: Re: [Caml-list] Threading: Using and Building
Date: Tue, 13 Apr 2004 08:44:47 +0100	[thread overview]
Message-ID: <407B9A6F.6080409@socialtools.net> (raw)
In-Reply-To: <20040413021536.GA969@complete.org>

John Goerzen wrote:
> On Mon, Apr 12, 2004 at 07:37:09PM -0500, Brian Hurt wrote:
> 
>>The threading is all user-space threading.  It doesn't take advantage of 
>>multiple CPUs, doesn't use system threads, if one thread blocks they all 
>>block, etc.

That's not true; see Xavier's explanation:

http://caml.inria.fr/archives/200211/msg00274.html

Specifically, 'while a thread is blocked on a network read, other 
threads may proceed'.

> However, Python uses true
> threads, so it is fine to call blocking system calls in threads (it will
> not block the entire program).

This is also the case in Caml; see above.

Ben

-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners


  parent reply	other threads:[~2004-04-13  7:45 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-04-12 15:19 John Goerzen
2004-04-12 17:12 ` Xavier Leroy
2004-04-13  0:37 ` Brian Hurt
2004-04-13  2:15   ` John Goerzen
2004-04-13  4:54     ` Brian Hurt
2004-04-13  7:44     ` Benjamin Geer [this message]
2004-04-13 19:47       ` David Brown

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=407B9A6F.6080409@socialtools.net \
    --to=ben@socialtools.net \
    --cc=bhurt@spnz.org \
    --cc=caml-list@inria.fr \
    --cc=jgoerzen@complete.org \
    /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;
as well as URLs for NNTP newsgroup(s).