scsh-users
[Top] [All Lists]

Re: Threads Tutorial / Design Paper?

To: RT Happe <rthappe@web.de>
Subject: Re: Threads Tutorial / Design Paper?
From: sperber@informatik.uni-tuebingen.de (Michael Sperber [Mr. Preprocessor])
Date: Wed, 29 Jan 2003 09:05:55 +0100
Cc: <scsh@zurich.ai.mit.edu>
>>>>> "RT" == RT Happe <rthappe@web.de> writes:

RT> On Fri, 17 Jan 2003, Michael Sperber [Mr.  Preprocessor] wrote:
RT> >
>> Meanwhile, feel free to ask questions :-)

RT> A basic question:  which Scheme operations (e.g. variable lookup or
RT> mutation, function calls) are atomic w.r.t. context switches (i.e. run
RT> from start to end before the next thread takes over).  Or, should we
RT> always lock shared variables during access? 

Yes, for now.  (That is, until we get scsh merged with the Scheme 48
with lockless synchronization.  I'd encourage you to create
abstractions which will make the transition easier.)  The current VM
does variable access atomically (context switching happens at the
Scheme level), but this might change with SMP support.

-- 
Cheers =8-} Mike
Friede, Völkerverständigung und überhaupt blabla

<Prev in Thread] Current Thread [Next in Thread>