<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:gd="http://schemas.google.com/g/2005"><id>tag:blogger.com,1999:blog-4500363753981919783.post6291413889238482..comments</id><updated>2023-10-03T22:06:50.708+08:00</updated><title type='text'>Comments on Huan-Lin 學習筆記: ASP.NET 應用程式與非同步處理</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='https://www.huanlintalk.com/feeds/comments/default'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/4500363753981919783/6291413889238482/comments/default'/><link rel='alternate' type='text/html' href='https://www.huanlintalk.com/2013/01/aspnet-application-and-asynchronous.html'/><link rel="hub" href="http://pubsubhubbub.appspot.com/"/><author><name>Michael Tsai</name><uri>http://www.blogger.com/profile/00364693770445538641</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>5</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-4500363753981919783.post-1571331490548762910</id><published>2013-09-09T23:39:47.978+08:00</published><updated>2013-09-09T23:39:47.978+08:00</updated><title type='text'>Hi Rock, 
「佇列長度」設定5000 的確不是說只容許 5000 條 thread。ASP....</title><content type='html'>Hi Rock, <br />「佇列長度」設定5000 的確不是說只容許 5000 條 thread。ASP.NET 會從 thread pool 中取出執行緒來處理佇列中的請求,一個執行緒處理一個請求。故兩者不是直接相等的關係(文中應該也沒有將二者直接相等吧,還是我哪裡寫得太曖昧了 XD)。你說「當thread來不及處理需求時」,我想你指的是現有的 thread pool size 的數量來不及應付所有佇列中的需求時吧--所有線路全部忙線中,請等待或稍後再撥。</content><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/4500363753981919783/6291413889238482/comments/default/1571331490548762910'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/4500363753981919783/6291413889238482/comments/default/1571331490548762910'/><link rel='alternate' type='text/html' href='https://www.huanlintalk.com/2013/01/aspnet-application-and-asynchronous.html?showComment=1378741187978#c1571331490548762910' title=''/><author><name>Michael Tsai</name><uri>https://www.blogger.com/profile/00364693770445538641</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='https://www.huanlintalk.com/2013/01/aspnet-application-and-asynchronous.html' ref='tag:blogger.com,1999:blog-4500363753981919783.post-6291413889238482' source='http://www.blogger.com/feeds/4500363753981919783/posts/default/6291413889238482' type='text/html'/><gd:extendedProperty name="blogger.itemClass" value="pid-1825873726"/><gd:extendedProperty name="blogger.displayTime" value="2013/9/9 晚上11:39"/></entry><entry><id>tag:blogger.com,1999:blog-4500363753981919783.post-3205632457034423576</id><published>2013-09-09T20:46:54.977+08:00</published><updated>2013-09-09T20:46:54.977+08:00</updated><title type='text'>「佇列長度」設定5000,應該不是指可容許5000條thread,就我所知當thread來不及處理需...</title><content type='html'>「佇列長度」設定5000,應該不是指可容許5000條thread,就我所知當thread來不及處理需求時,則會開始將需求排入佇列,當佇列也滿的時候,則IIS回產生503的ERROR顯示SERVER IS TOO BUSY</content><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/4500363753981919783/6291413889238482/comments/default/3205632457034423576'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/4500363753981919783/6291413889238482/comments/default/3205632457034423576'/><link rel='alternate' type='text/html' href='https://www.huanlintalk.com/2013/01/aspnet-application-and-asynchronous.html?showComment=1378730814977#c3205632457034423576' title=''/><author><name>Rock</name><uri>https://www.blogger.com/profile/03558224852857730580</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='https://www.huanlintalk.com/2013/01/aspnet-application-and-asynchronous.html' ref='tag:blogger.com,1999:blog-4500363753981919783.post-6291413889238482' source='http://www.blogger.com/feeds/4500363753981919783/posts/default/6291413889238482' type='text/html'/><gd:extendedProperty name="blogger.itemClass" value="pid-2039983325"/><gd:extendedProperty name="blogger.displayTime" value="2013/9/9 晚上8:46"/></entry><entry><id>tag:blogger.com,1999:blog-4500363753981919783.post-8593074505722417744</id><published>2013-01-08T01:30:48.333+08:00</published><updated>2013-01-08T01:30:48.333+08:00</updated><title type='text'>我在文中加了點補充,以便釐清一些觀念。同時寫了另一篇筆記,跟您的第二個問題有關。參考看看: ASP....</title><content type='html'>我在文中加了點補充,以便釐清一些觀念。同時寫了另一篇筆記,跟您的第二個問題有關。參考看看: <a href="http://huan-lin.blogspot.tw/2013/01/aspnet-45-fire-and-forget-async-call.html" rel="nofollow">ASP.NET 4.5 非同步呼叫之射後不理</a></content><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/4500363753981919783/6291413889238482/comments/default/8593074505722417744'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/4500363753981919783/6291413889238482/comments/default/8593074505722417744'/><link rel='alternate' type='text/html' href='https://www.huanlintalk.com/2013/01/aspnet-application-and-asynchronous.html?showComment=1357579848333#c8593074505722417744' title=''/><author><name>Michael Tsai</name><uri>https://www.blogger.com/profile/00364693770445538641</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='https://www.huanlintalk.com/2013/01/aspnet-application-and-asynchronous.html' ref='tag:blogger.com,1999:blog-4500363753981919783.post-6291413889238482' source='http://www.blogger.com/feeds/4500363753981919783/posts/default/6291413889238482' type='text/html'/><gd:extendedProperty name="blogger.itemClass" value="pid-1825873726"/><gd:extendedProperty name="blogger.displayTime" value="2013/1/8 凌晨1:30"/></entry><entry><id>tag:blogger.com,1999:blog-4500363753981919783.post-8798552168354463736</id><published>2013-01-07T23:34:10.032+08:00</published><updated>2013-01-07T23:34:10.032+08:00</updated><title type='text'>1. 是。
2. 請問你的寫 log 至 db 的動作,是不是有等待它執行,或者取其回傳結果?如果是...</title><content type='html'>1. 是。<br />2. 請問你的寫 log 至 db 的動作,是不是有等待它執行,或者取其回傳結果?如果是的話,在傳回 response 之前,ASP.NET 還是會讓這些執行緒跑完。</content><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/4500363753981919783/6291413889238482/comments/default/8798552168354463736'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/4500363753981919783/6291413889238482/comments/default/8798552168354463736'/><link rel='alternate' type='text/html' href='https://www.huanlintalk.com/2013/01/aspnet-application-and-asynchronous.html?showComment=1357572850032#c8798552168354463736' title=''/><author><name>Michael Tsai</name><uri>https://www.blogger.com/profile/00364693770445538641</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='https://www.huanlintalk.com/2013/01/aspnet-application-and-asynchronous.html' ref='tag:blogger.com,1999:blog-4500363753981919783.post-6291413889238482' source='http://www.blogger.com/feeds/4500363753981919783/posts/default/6291413889238482' type='text/html'/><gd:extendedProperty name="blogger.itemClass" value="pid-1825873726"/><gd:extendedProperty name="blogger.displayTime" value="2013/1/7 晚上11:34"/></entry><entry><id>tag:blogger.com,1999:blog-4500363753981919783.post-4140674584674501129</id><published>2013-01-07T14:42:36.784+08:00</published><updated>2013-01-07T14:42:36.784+08:00</updated><title type='text'>HI~~想請教幾個問題:
1.我覺得用thread或非同步(BeginInvoke),對前端來說都是...</title><content type='html'>HI~~想請教幾個問題:<br />1.我覺得用thread或非同步(BeginInvoke),對前端來說都是非同步,只是用的程式手段不一樣,這樣子說對嗎?<br />2.使用者在網頁操作後,我希望寫個log到db裡,我用thread去做寫db的動作,預期寫db的動作是開一條新的執行緒去執行,但是實際在寫的時候發現,使用者仍然要hang住直到db寫完,想問一下原因為何,不知道你有什麼建議解決方式?<br />十分感謝</content><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/4500363753981919783/6291413889238482/comments/default/4140674584674501129'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/4500363753981919783/6291413889238482/comments/default/4140674584674501129'/><link rel='alternate' type='text/html' href='https://www.huanlintalk.com/2013/01/aspnet-application-and-asynchronous.html?showComment=1357540956784#c4140674584674501129' title=''/><author><name>deded</name><uri>https://www.blogger.com/profile/14929238606848084128</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='https://www.huanlintalk.com/2013/01/aspnet-application-and-asynchronous.html' ref='tag:blogger.com,1999:blog-4500363753981919783.post-6291413889238482' source='http://www.blogger.com/feeds/4500363753981919783/posts/default/6291413889238482' type='text/html'/><gd:extendedProperty name="blogger.itemClass" value="pid-366645013"/><gd:extendedProperty name="blogger.displayTime" value="2013/1/7 下午2:42"/></entry></feed>