[m-users.] parallelism and STM

Peter Wang novalazy at gmail.com
Sun May 31 12:23:03 AEST 2015

On Sat, 30 May 2015 12:15:19 +0100, matthias.guedemann at googlemail.com (Matthias G├╝demann) wrote:
> Hi,
> my goal is to write a program that uses parallelism to increase
> performance. As for shared variables, there is a list of tasks to do and
> a list of results.
> Is STM a good choice for this in Mercury? The number of tasks is rather
> low and the treatment of the tasks will takes time. If yes, is
> stm_builtin the current implementation? I saw a thread on m-users from
> 2011 where another, apparently better, stm implementation was proposed.

Hi Matthias,

The STM implementation is not usable for real code and no one is working
on it.  You can use other concurrency primitives, such as


More information about the users mailing list