On Sat, Dec 5, 2009 at 3:17 PM, weepy <
jona...@gmail.com> wrote:
> Hi
>
> Given multiple inbound requests, how is threading and scopes handled ?
>
> E.g. I'm writing a server that validates input.
>
> function myfunc(state, move) {
> var x = 1
>
> // various processing that will change x to another value.
>
> return x
> }
>
> If there are multiple inbound requests, that call myfunc, are there
> every more than one threads simultaneously within the function?
No, never. Only one thing happens at a time.