[mercury-users] Threads

Thomas Charles Conway conway at hydra.cs.mu.oz.au
Fri Feb 12 08:20:28 AEDT 1999


On Thu, Feb 11, 1999 at 09:43:31PM EST, Ralph Becket wrote:
> What's the status of the work on adding threads to Mercury?

RSN. The runtime engine can be compiled to be thread-safe (using
a grade containing .par, eg asm_fast.gc.par). I have a bunch of
stuff which will go into the extras directory including 'spawn':

	:- pred spawn(pred(io__state, io__state), io__state, io__state).
	:- mode spawn(pred(di, uo) is cc_multi, di, uo) is cc_multi.

which starts up the given closure as a coroutine. There is also
stuff for semaphores, etc.

Probably won't make it in until mid march - now rather than being
a self-determining postgrad, I'm a tutor in the department, and my
teaching committments will be taking all my time for the next little
while.

Thomas
-- 
Thomas Conway <conway at cs.mu.oz.au> )O+
To a killer whale, otters are like hairy popcorn -- Paul Dayton



More information about the users mailing list