Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #8612
| From | "Richard Cornford" <Richard@litotes.demon.co.uk> |
|---|---|
| Newsgroups | comp.lang.javascript |
| References | <n4htc7pvev38hjrea5vhvi9dj4r4u062ff@4ax.com> |
| Subject | Re: Timeouts and Thread(?) Interruption/Execution |
| Date | 2011-11-24 22:44 +0000 |
| Message-ID | <aLadnSf--f8vVVPTnZ2dnUVZ7vGdnZ2d@giganews.com> (permalink) |
Gene Wirchenko wrote: > Dear JavaScripters: > > Something else that the texts do not seem to cover: > > Suppose that I have a form and a timeout. The form has > validation on the fields. If a timeout occurs during the execution of > validation code, what happens? The timeout waits until the executing code finishes. > Is the validation code terminated? No. > Interrupted then resumed > somehow? No. > Executed in parallel with the timeout code? In principle, if a web page consisted of a frameset (or embedded IFRAMEs) so there were multiple ECMAScript global objects (one for each frame/window) and the timeout was set in one frame/window and the other code was executing in another then it may be possible for the two to execute in parallel, but I have not yet seen that possibility demonstrated in any actual environment (and I have seen test code that should have been able to demonstrate that behaviour if it did exist). > Or is this undefined? The specification makes no provision for the interruption of executing code or for parallel execution, and does not provide any of the tools that would be necessary in order to render doing that 'safe'. Richard.
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Timeouts and Thread(?) Interruption/Execution Gene Wirchenko <genew@ocis.net> - 2011-11-24 14:29 -0800 Re: Timeouts and Thread(?) Interruption/Execution "Richard Cornford" <Richard@litotes.demon.co.uk> - 2011-11-24 22:44 +0000 Re: Timeouts and Thread(?) Interruption/Execution Dr J R Stockton <reply1147@merlyn.demon.co.uk> - 2011-11-25 20:47 +0000
csiph-web