[m-dev.] MT success

Peter Ross peter.ross at miscrit.be
Fri Sep 1 00:41:18 AEDT 2000


Today I built the first multithreaded Mercury program compiled under
MSVC in the hlc.par.gc grade.

It uses the pthread-win32 library to provide the threading primitives.
This simply creates the posix thread API on top of the win32 thread API.
I have had a look at the source code
( //euler/petdr/downloads/pthread-snap-2000-08-13 ) and it looks like
quite a thin layer on top of the win32 API, so there shouldn't be much
performace overhead.

For synchronization I used haskell style mutvars.  These are references
to a memory location synchronised using semaphores.

Pete
--------------------------------------------------------------------------
mercury-developers mailing list
Post messages to:       mercury-developers at cs.mu.oz.au
Administrative Queries: owner-mercury-developers at cs.mu.oz.au
Subscriptions:          mercury-developers-request at cs.mu.oz.au
--------------------------------------------------------------------------



More information about the developers mailing list