[plt-scheme] Do servlets run in parallel threads?

From: Matthias Felleisen (matthias at ccs.neu.edu)
Date: Mon Jan 14 21:12:58 EST 2008

On Jan 14, 2008, at 9:10 PM, Henk Boom wrote:

> On 14/01/2008, Matthias Felleisen <matthias at ccs.neu.edu> wrote:
>>
>> Each servlet invocation runs in a separate thread. -- Matthias
>>
>
> Good, this tells me that each servlet invocation has it's own
> parameters. Putting a sleep statement in my servlet and loading up
> around 10 tabs of the site in Firefox suggests to me that the server
> waits for one invocation to finish before starting a new one, though.
> Is it guaranteed to do this?

No. It shouldn't be guaranteed. It has been a while since I have  
worked on the server but I would be surprised if the architecture had  
changed that much.

Try the same experiments with servlets that run infinite loops. --  
Matthias




Posted on the users mailing list.