[r6rs-discuss] Re: fun with threads

Per Bothner per at bothner.com
Sat Mar 24 14:12:54 EDT 2007


William D Clinger wrote:
> Per Bothner wrote:
>> I cannot sea how an application can be other
>> than seriously buggy if one thread tries to read a string
>> while another thread is updating it without first acquiring
>> a lock.
> 
> There are lots of seriously correct reasons for
> doing that.  Indeed, several partially concurrent
> garbage collectors do that, and one of my PhD
> students is writing a new partially concurrent
> garbage collector for Larceny that will do that.

I'm talking about two application threads.
A garbage collector is not an "application".
It knows about the treading model, memory system, etc.
If it is written in Scheme, it would be a special
"system Scheme" variant, not R6RS.
-- 
	--Per Bothner
per at bothner.com   http://per.bothner.com/



More information about the r6rs-discuss mailing list