English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2005-06-11 (07:46)
From: Christophe Raffalli <raffalli@u...>
Subject: Re: [Caml-list] Threads
Jonathan Bryant a écrit :

>I'm confused.  In the documentation on the threads library it says that
>the threads implementation is shared time on only a single processor. 
>Is that for VM and system threads, or are the POSIX threads able to take
>advantage of multiple processors?  I would think they would be able to
>because (unless I'm mistaken) they're just wrappers around the C system
No there is a global mutex for caml thread. The only thing you can do is 
have one Caml thread and many C threads running in the same time.

This starts really to be an annoying limitation of the Caml runtime now 
that you can have easily two dual core processors in one machine ... 
(means four CPU)

>Caml-list mailing list. Subscription management:
>Archives: http://caml.inria.fr
>Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
>Bug reports: http://caml.inria.fr/bin/caml-bugs