threads library in Objective Caml

From: Frank Christoph (christo@nextsolution.co.jp)
Date: Tue Apr 15 1997 - 05:51:38 MET DST


Date: Tue, 15 Apr 1997 12:51:38 +0900
Message-Id: <199704150351.MAA00453@sparc3.co.jp>
From: Frank Christoph <christo@nextsolution.co.jp>
To: caml-list@inria.fr
Subject: threads library in Objective Caml
In-Reply-To: <E0wGiAL-0003qE-00@heaton.cl.cam.ac.uk>

>>>>> "Pawel" == Pawel Wojciechowski <Pawel.Wojciechowski@cl.cam.ac.uk> writes:
> The potential advantage of threads is that on a multiprocessor shared memory
> machine, each thread can run on a different processor. However, in the
> (O)Caml documentation is written as follows: "The `threads' library is
> implemented by time-sharing on a single processor. It will not take
> advantage of multi- -processor machines. Using this library will therefore
> never make programs run faster".

You make it sound like the only point of threads is to take advantage of
parallelism when the program is running on a multiprocessor machine. A lot of
people use threads for reasons that have nothing to do with (objective notions
of) performance, for example in GUI programming. By your logic, there
would seem to be no point in emulating concurrency on a sequential machine at
all.

-- 
Frank Christoph                 Next Solution Co.      Tel: 0424-98-1811
christo@nextsolution.co.jp                             Fax: 0424-98-1500



This archive was generated by hypermail 2b29 : Sun Jan 02 2000 - 11:58:10 MET