From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id SAA19596; Fri, 15 Jun 2001 18:49:39 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id SAA19805 for ; Fri, 15 Jun 2001 18:49:38 +0200 (MET DST) Received: from miss.wu-wien.ac.at (miss.wu-wien.ac.at [137.208.107.17]) by nez-perce.inria.fr (8.11.1/8.10.0) with ESMTP id f5FGnbX06119 for ; Fri, 15 Jun 2001 18:49:37 +0200 (MET DST) Received: (from mottl@localhost) by miss.wu-wien.ac.at (8.9.0/8.9.0) id SAA00060 for caml-list@inria.fr; Fri, 15 Jun 2001 18:49:32 +0200 (MET DST) Date: Fri, 15 Jun 2001 18:49:32 +0200 From: Markus Mottl To: OCAML Subject: [Caml-list] native threads not parallel? Message-ID: <20010615184931.A25835@miss.wu-wien.ac.at> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Hello, I am having problems using native threads (under Solaris; don't know about other architectures): I can't get them to run in parallel on a dual-processor machine even though I turn off the master lock on the C-side around an external function that should execute in parallel. There are four threads running (I actually create two only - ?) as I can observe with "ps -L". The two created ones reach the external Fortran routine (in LAPACK) at about the same time, obviously in parallel or at least interleaved up this point as I can see in the logged checkpoints. I turn off/on the lock around this routine as in: enter_blocking_section(); some_really_expensive_function (); leave_blocking_section(); Unfortunately, the expensive function is executed sequentially only. What could be the cause of the lack of parallelism? Am I just misunderstanding how things work? If this could be a bug, I can send you more information to the bug-tracker, of course. Regards, Markus Mottl -- Markus Mottl, mottl@miss.wu-wien.ac.at, http://miss.wu-wien.ac.at/~mottl ------------------- Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr