Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #8612
| NNTP-Posting-Date | Thu, 24 Nov 2011 16:44:01 -0600 |
|---|---|
| From | "Richard Cornford" <Richard@litotes.demon.co.uk> |
| Newsgroups | comp.lang.javascript |
| References | <n4htc7pvev38hjrea5vhvi9dj4r4u062ff@4ax.com> |
| Subject | Re: Timeouts and Thread(?) Interruption/Execution |
| Date | Thu, 24 Nov 2011 22:44:01 -0000 |
| MIME-Version | 1.0 |
| Content-Type | text/plain; format=flowed; charset="iso-8859-1"; reply-type=original |
| Content-Transfer-Encoding | 7bit |
| X-Priority | 3 |
| X-MSMail-Priority | Normal |
| X-Newsreader | Microsoft Outlook Express 6.00.3790.4657 |
| X-MimeOLE | Produced By Microsoft MimeOLE V6.00.3790.4913 |
| Message-ID | <aLadnSf--f8vVVPTnZ2dnUVZ7vGdnZ2d@giganews.com> (permalink) |
| Lines | 39 |
| X-Usenet-Provider | http://www.giganews.com |
| X-Trace | sv3-d66Refd4NHn26BcnrGCwykFD5b9XaT4FB5lGSVvolp4sPLVX38CYYgxmjbIZHOpOWP1gSGniaYGqQ0F!Xn3OQ0t65BeNEdYjSqPiOHhCw3ft1DRory2mKJVX7NxSVXS+upguJ7YEEaLVxlzCJwbvVXTo |
| X-Complaints-To | abuse@giganews.com |
| X-DMCA-Notifications | http://www.giganews.com/info/dmca.html |
| X-Abuse-and-DMCA-Info | Please be sure to forward a copy of ALL headers |
| X-Abuse-and-DMCA-Info | Otherwise we will be unable to process your complaint properly |
| X-Postfilter | 1.3.40 |
| X-Original-Bytes | 2476 |
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.stben.net!border3.nntp.ams.giganews.com!Xl.tags.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!local2.nntp.ams.giganews.com!news.giganews.com.POSTED!not-for-mail |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.javascript:8612 |
Show key headers only | View raw
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