Version française
Home     About     Download     Resources     Contact us    
Browse thread
Q: How i can use Mutex and thread ..
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Laurent Colombet <Laurent.Colombet@c...>
Subject: Q: How i can use Mutex and thread ..

 Hi,

  I have the following error :

        Objective Caml version 2.00

# let forks = Array.create 5 (Mutex.create());;
The external function `caml_mutex_new' is not available

  and i think that it's the same thing with ocmal 2.01 :

        Objective Caml version 2.01

# let forks = Array.create 5 (Mutex.create());;
Reference to undefined global `Mutex'
#

  could somebody help me ?

    thanks in advance

     Laurent

P.S. Examples of Ocaml programs using thread are welcome