[r6rs-discuss] perhaps i should be formal, but....

From: Shiro Kawai <shiro>
Date: Thu Mar 15 04:16:15 2007

From: John Cowan <cowan_at_ccil.org>
Subject: Re: [r6rs-discuss] perhaps i should be formal, but....
Date: Thu, 15 Mar 2007 02:25:19 -0400

> Shiro Kawai scripsit:
>
> > A bit of off-topic, but I'd like to point out that such "smart"
> > string implementation tends to have difficulty with preemptive
> > threads. Presumably such a string object has some indication of
> > the kind of representation, and a pointer to the actual string body.
> > What if one thread replaces the kind and a pointer (for "upgrading"
> > the string kind by string-set!) and another thread accesses it
> > inbetween?
>
> "I want to say just one word to you, just one word ... Locks."

Are you suggesting using mutex for _every_ string access?
Seriously?

--shiro
Received on Thu Mar 15 2007 - 04:15:43 UTC

This archive was generated by hypermail 2.3.0 : Wed Oct 23 2024 - 09:15:01 UTC