[plt-scheme] Cleanup on Servlet Timeout (Again)

From: Shriram Krishnamurthi (sk at cs.brown.edu)
Date: Thu Aug 21 16:01:42 EDT 2008

On Thu, Aug 21, 2008 at 3:51 PM, Henk Boom <lunarc.lists at gmail.com> wrote:
> On 2008-08-21, Matthew Flatt <mflatt at cs.utah.edu> wrote:
>> Forget locks. Make a process that's in charge of the resource.
>>
>>  [The process is effectively an implementation of a readers+writer lock,
>>   but this characterization is probably useful only if you're trained to
>>   think in terms of locks instead of processes. The key is that you get
>>   to implement the "lock" instead of trying to juggle primitive locks.]
>
> OK. I have semaphores on the brain right now, I just took the first OS
> course at my university and wrote that code after we went through a
> bunch of semaphore examples in class, including the regular
> reader-writer problem. When you have a shiny new hammer. . . =)

Just fyi, it so happens your shiny new hammer actually has a hidden
crack in its handle, its head is made of untemepered steel, and the
joint between the pieces lacks any fastening so at some unpredictable
point during heavy use, the head will go flying and will smash a hole
in some precious object.  But this will happen without you noticing
it, so you keep pounding away and will wonder why the nail isn't going
any further into the wall.

Apologies for being the messenger of bad news,
Shriram


Posted on the users mailing list.