[OpenLayers-Dev] threading/synchronicity in javascript

Eric Lemoine eric.c2c at gmail.com
Sat Nov 1 04:53:15 EDT 2008


If JavaScript code was preemptable I think 1 web app out of 2 would be
unusable because of the many bugs it'd include :-)

2008/11/1, Erik Uzureau <euzuro at gmail.com>:
> Dear OpenLayers users & dev,
>
> Pardon the non-geo post, but I am wondering if anyone out there has come up
> across issues with
> synchronicity in javascript?
>
> After pouring over this stuff for several hours, I think I am pretty
> resolved to just say "ok, javascript
> is event-driven and not truly multithreaded, so there is no need to worry".
>
> In the off-chance that someone out there might have information otherwise,
> please let me know.
>
> Below are two of the links that have fed my brain for the last few hours:
>
> debate:
> http://stackoverflow.com/questions/124764/are-mutexes-needed-in-javascript
>
> implementation of a mutex in js:
> http://www.developer.com/lang/jscript/article.php/3592016
> (note that his actual code for this *only* runs in ie, which obviously docks
> it a fair amount of credit)
>
> cheers,
> erik
>



More information about the Dev mailing list