Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[Caml-list] native threads not parallel?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2001-06-15 (16:49)
From: Markus Mottl <mottl@m...>
Subject: [Caml-list] native threads not parallel?

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:


    some_really_expensive_function ();


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.

Markus Mottl

Markus Mottl,,
Bug reports:  FAQ:
To unsubscribe, mail  Archives: