<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Ajax and javascript don&#8217;t use threads</title>
	<atom:link href="http://www.javascriptkata.com/2007/06/04/ajax-and-javascript-dont-use-threads/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.javascriptkata.com/2007/06/04/ajax-and-javascript-dont-use-threads/</link>
	<description>Advanced katas for javascripters</description>
	<lastBuildDate>Fri, 30 Jul 2010 18:10:52 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: jQuery &#8211; 當Javascript Ajax遇上Loop &#124; 亞特蘭提斯 Net Atlantis</title>
		<link>http://www.javascriptkata.com/2007/06/04/ajax-and-javascript-dont-use-threads/comment-page-1/#comment-845</link>
		<dc:creator>jQuery &#8211; 當Javascript Ajax遇上Loop &#124; 亞特蘭提斯 Net Atlantis</dc:creator>
		<pubDate>Fri, 06 Nov 2009 16:57:27 +0000</pubDate>
		<guid isPermaLink="false">http://javascriptkata.timmyontime.com/?p=45#comment-845</guid>
		<description>[...] 解決方法雖然是找到了，但是為什麼會這樣? 可以睇睇國外高手的Blog文: Ajax and javascript don’t use threads Ajax, javascript and threads : the final [...]</description>
		<content:encoded><![CDATA[<p>[...] 解決方法雖然是找到了，但是為什麼會這樣? 可以睇睇國外高手的Blog文: Ajax and javascript don’t use threads Ajax, javascript and threads : the final [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ajax y Javascript no usan hilos</title>
		<link>http://www.javascriptkata.com/2007/06/04/ajax-and-javascript-dont-use-threads/comment-page-1/#comment-302</link>
		<dc:creator>Ajax y Javascript no usan hilos</dc:creator>
		<pubDate>Thu, 20 Sep 2007 15:41:19 +0000</pubDate>
		<guid isPermaLink="false">http://javascriptkata.timmyontime.com/?p=45#comment-302</guid>
		<description>[...] no es asÃ­. Lo cierto, tal y como hemos podido leer en algÃºn que otro artÃ­culo es como si la &#8220;mÃ¡quina&#8221; o hilo de ejecuciÃ³n que interpreta el javascript se [...]</description>
		<content:encoded><![CDATA[<p>[...] no es asÃ­. Lo cierto, tal y como hemos podido leer en algÃºn que otro artÃ­culo es como si la &#8220;mÃ¡quina&#8221; o hilo de ejecuciÃ³n que interpreta el javascript se [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: &#160; A long-time javascript function fires an XHR call&#160;by&#160;The Third Part</title>
		<link>http://www.javascriptkata.com/2007/06/04/ajax-and-javascript-dont-use-threads/comment-page-1/#comment-301</link>
		<dc:creator>&#160; A long-time javascript function fires an XHR call&#160;by&#160;The Third Part</dc:creator>
		<pubDate>Mon, 18 Jun 2007 03:34:45 +0000</pubDate>
		<guid isPermaLink="false">http://javascriptkata.timmyontime.com/?p=45#comment-301</guid>
		<description>[...] ä»ŽDan Simardçš„ä¸¤Â ç¯‡æ–‡ç« ä»¥åŠè¯»è€…çš„ä¸€äº›è¯„è®ºä¸­ï¼Œæˆ‘ä»¬çœ‹åˆ°åœ¨ä¸€ä¸ªæ‰§è¡Œæ—¶é—´å¾ˆé•¿çš„javascriptå‡½æ•°ï¼ˆæ¯”å¦‚longtimeF()ï¼‰ä¸­çš„æŸä¸ªæ—¶é—´ç‚¹æ‰§è¡Œä¸€ä¸ªajaxçš„è¯·æ±‚ã€‚å¯ä»¥è‚¯å®šçš„æ˜¯browserè‚¯å®šä¼šå¯åŠ¨ä¸€ä¸ªthreadsæ¥æ‰§è¡Œè¿™ä¸ªXHRçš„å¼‚æ­¥è¯·æ±‚ï¼Œè¿™ä¸ªthreadséšç€responseçš„åˆ°æ¥è€Œç»“æŸï¼Œè€Œcallbackå‡½æ•°å¹¶ä¸åœ¨è¿™ä¸ªçº¿ç¨‹å†…æ‰§è¡Œã€‚ [...]</description>
		<content:encoded><![CDATA[<p>[...] ä»ŽDan Simardçš„ä¸¤Â ç¯‡æ–‡ç« ä»¥åŠè¯»è€…çš„ä¸€äº›è¯„è®ºä¸­ï¼Œæˆ‘ä»¬çœ‹åˆ°åœ¨ä¸€ä¸ªæ‰§è¡Œæ—¶é—´å¾ˆé•¿çš„javascriptå‡½æ•°ï¼ˆæ¯”å¦‚longtimeF()ï¼‰ä¸­çš„æŸä¸ªæ—¶é—´ç‚¹æ‰§è¡Œä¸€ä¸ªajaxçš„è¯·æ±‚ã€‚å¯ä»¥è‚¯å®šçš„æ˜¯browserè‚¯å®šä¼šå¯åŠ¨ä¸€ä¸ªthreadsæ¥æ‰§è¡Œè¿™ä¸ªXHRçš„å¼‚æ­¥è¯·æ±‚ï¼Œè¿™ä¸ªthreadséšç€responseçš„åˆ°æ¥è€Œç»“æŸï¼Œè€Œcallbackå‡½æ•°å¹¶ä¸åœ¨è¿™ä¸ªçº¿ç¨‹å†…æ‰§è¡Œã€‚ [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ajax and javascript donâ€™t use threads &#124; Javascript Kata at thirstymind.org</title>
		<link>http://www.javascriptkata.com/2007/06/04/ajax-and-javascript-dont-use-threads/comment-page-1/#comment-300</link>
		<dc:creator>Ajax and javascript donâ€™t use threads &#124; Javascript Kata at thirstymind.org</dc:creator>
		<pubDate>Fri, 15 Jun 2007 23:53:51 +0000</pubDate>
		<guid isPermaLink="false">http://javascriptkata.timmyontime.com/?p=45#comment-300</guid>
		<description>[...] Ajax and javascript donâ€™t use threads &#124; Javascript Kata: according to this i&#8217;m not cool, i want to be cool, but again a decision i didn&#8217;t have input on and don&#8217;t have enough time to put up a fight. [...]</description>
		<content:encoded><![CDATA[<p>[...] Ajax and javascript donâ€™t use threads | Javascript Kata: according to this i&#8217;m not cool, i want to be cool, but again a decision i didn&#8217;t have input on and don&#8217;t have enough time to put up a fight. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Norman</title>
		<link>http://www.javascriptkata.com/2007/06/04/ajax-and-javascript-dont-use-threads/comment-page-1/#comment-299</link>
		<dc:creator>Norman</dc:creator>
		<pubDate>Fri, 15 Jun 2007 02:27:56 +0000</pubDate>
		<guid isPermaLink="false">http://javascriptkata.timmyontime.com/?p=45#comment-299</guid>
		<description>Those are thread communication stuffs.

Request thread send a message to main thread and ask main thread to fire the onComplete event.</description>
		<content:encoded><![CDATA[<p>Those are thread communication stuffs.</p>
<p>Request thread send a message to main thread and ask main thread to fire the onComplete event.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ajax Girl &#187; Blog Archive &#187; Ajax, javascript and threads : the final truth</title>
		<link>http://www.javascriptkata.com/2007/06/04/ajax-and-javascript-dont-use-threads/comment-page-1/#comment-298</link>
		<dc:creator>Ajax Girl &#187; Blog Archive &#187; Ajax, javascript and threads : the final truth</dc:creator>
		<pubDate>Thu, 14 Jun 2007 12:47:14 +0000</pubDate>
		<guid isPermaLink="false">http://javascriptkata.timmyontime.com/?p=45#comment-298</guid>
		<description>[...] Simard has been writing about threading and JavaScript and came up with his Final [...]</description>
		<content:encoded><![CDATA[<p>[...] Simard has been writing about threading and JavaScript and came up with his Final [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pablo Cabrera</title>
		<link>http://www.javascriptkata.com/2007/06/04/ajax-and-javascript-dont-use-threads/comment-page-1/#comment-297</link>
		<dc:creator>Pablo Cabrera</dc:creator>
		<pubDate>Thu, 14 Jun 2007 11:34:06 +0000</pubDate>
		<guid isPermaLink="false">http://javascriptkata.timmyontime.com/?p=45#comment-297</guid>
		<description>To prevent the alert, confirm, etc... from pausing the script execution, you could overwrite the default function with some custom dialogs, so you never get the default dialogs halting your script. This way you can guarantee that your callbacks will execute just after your current running code</description>
		<content:encoded><![CDATA[<p>To prevent the alert, confirm, etc&#8230; from pausing the script execution, you could overwrite the default function with some custom dialogs, so you never get the default dialogs halting your script. This way you can guarantee that your callbacks will execute just after your current running code</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob Desbois</title>
		<link>http://www.javascriptkata.com/2007/06/04/ajax-and-javascript-dont-use-threads/comment-page-1/#comment-296</link>
		<dc:creator>Rob Desbois</dc:creator>
		<pubDate>Tue, 05 Jun 2007 08:25:00 +0000</pubDate>
		<guid isPermaLink="false">http://javascriptkata.timmyontime.com/?p=45#comment-296</guid>
		<description>This is an important point - not guarantee-able of course, given that it&#039;s totally down to browser implementation, but I&#039;d hate to meet the browser that spawned a new thread for each AJAX request!

It should also be remembered that whilst you need to bear in mind the volatility of shared variables, the ordering of AJAX responses should *never* be relied on or even thought about - that&#039;s what asynchronous means!</description>
		<content:encoded><![CDATA[<p>This is an important point &#8211; not guarantee-able of course, given that it&#8217;s totally down to browser implementation, but I&#8217;d hate to meet the browser that spawned a new thread for each AJAX request!</p>
<p>It should also be remembered that whilst you need to bear in mind the volatility of shared variables, the ordering of AJAX responses should *never* be relied on or even thought about &#8211; that&#8217;s what asynchronous means!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: BK</title>
		<link>http://www.javascriptkata.com/2007/06/04/ajax-and-javascript-dont-use-threads/comment-page-1/#comment-295</link>
		<dc:creator>BK</dc:creator>
		<pubDate>Mon, 04 Jun 2007 16:30:18 +0000</pubDate>
		<guid isPermaLink="false">http://javascriptkata.timmyontime.com/?p=45#comment-295</guid>
		<description>I agree with you on the fact that the main thread will be used BUT, from my experience, I&#039;m not quite sure on the order of the requests... Maybe it depends on the browser used but using IE, I often got functions interupted by the new incoming response.

Briefly, say I have CallPage1, CallPage2 and DoSomething. Both CallPage are async.

CallPage1 called
CallPage2 called
DoSomething called
CallPage1 Returned (DoSomething is now paused)
DoSomething ended
CallPage2 Returned

This is important to know if you use any shared variable because you can&#039;t rely on the fact that it won&#039;t change during the process of your sub. If it&#039;s not clear, tell me.</description>
		<content:encoded><![CDATA[<p>I agree with you on the fact that the main thread will be used BUT, from my experience, I&#8217;m not quite sure on the order of the requests&#8230; Maybe it depends on the browser used but using IE, I often got functions interupted by the new incoming response.</p>
<p>Briefly, say I have CallPage1, CallPage2 and DoSomething. Both CallPage are async.</p>
<p>CallPage1 called<br />
CallPage2 called<br />
DoSomething called<br />
CallPage1 Returned (DoSomething is now paused)<br />
DoSomething ended<br />
CallPage2 Returned</p>
<p>This is important to know if you use any shared variable because you can&#8217;t rely on the fact that it won&#8217;t change during the process of your sub. If it&#8217;s not clear, tell me.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
