caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Xavier Leroy <xavier.leroy@inria.fr>
To: Malika Boulkenafed <Malika.Boulkenafed@inria.fr>
Cc: caml-list@inria.fr
Subject: [Caml-list] Re: [Caml-list] verrou distribué en ocaml
Date: Mon, 27 May 2002 10:12:00 +0200	[thread overview]
Message-ID: <20020527101200.B15615@pauillac.inria.fr> (raw)
In-Reply-To: <3CECAFAD.A2FAF3FB@inria.fr>; from Malika.Boulkenafed@inria.fr on Thu, May 23, 2002 at 11:00:29AM +0200

> supposons qu'un processus p1 execute 
> Condition.wait token.cond token.mutex
> 
> et un deuxieme processus p2 exécute :
> Condition.signal token.cond 
> 
> sachant que nous somme dans un contexte distribué, p1 et p2 ne
> s'executent pas sur la même machine.
> la question est: est ce que Condition.signal exécuté par p2 peut
> réveiller p1 sachant que la variable token joue le rôle d'un jeton
> transmis entre p1 et p2.

Non, ça ne marchera pas: les "condition variables" et les mutexes ne
fonctionnent qu'entre les threads d'un même processus, et sont
inutilisables dans un contexte distribué.

Pour synchroniser un programme distribué, il faut des modèles
différents, p.ex. à base d'envois de messages.  Un excellent exemple
est JoCaml: http://pauillac.inria.fr/jocaml/

- Xavier Leroy
-------------------
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


      reply	other threads:[~2002-05-27  8:12 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-05-23  9:00 Malika Boulkenafed
2002-05-27  8:12 ` Xavier Leroy [this message]

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=20020527101200.B15615@pauillac.inria.fr \
    --to=xavier.leroy@inria.fr \
    --cc=Malika.Boulkenafed@inria.fr \
    --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;
as well as URLs for NNTP newsgroup(s).