锘??xml version="1.0" encoding="utf-8" standalone="yes"?>91久久亚洲,色婷婷av一区二区三区软件,中文一区一区三区免费在线观看http://www.aygfsteel.com/huabingl/archive/2007/03/05/59652.html#101994ttttMon, 05 Mar 2007 13:29:00 GMThttp://www.aygfsteel.com/huabingl/archive/2007/03/05/59652.html#101994

tt 2007-03-05 21:29 鍙戣〃璇勮
]]>
re: OpenLDAP蹇熶笂鎵?/title><link>http://www.aygfsteel.com/huabingl/archive/2006/11/19/65886.html#82050</link><dc:creator>鏉嶽鍖垮悕]</dc:creator><author>鏉嶽鍖垮悕]</author><pubDate>Sun, 19 Nov 2006 08:40:00 GMT</pubDate><guid>http://www.aygfsteel.com/huabingl/archive/2006/11/19/65886.html#82050</guid><description><![CDATA[Softerra LDAP Browser 2.6 鍝湁鍟婏紵<img src ="http://www.aygfsteel.com/huabingl/aggbug/82050.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/huabingl/" target="_blank">鏉嶽鍖垮悕]</a> 2006-11-19 16:40 <a href="http://www.aygfsteel.com/huabingl/archive/2006/11/19/65886.html#82050#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>re: OpenLDAP蹇熶笂鎵?/title><link>http://www.aygfsteel.com/huabingl/archive/2006/08/28/65886.html#66097</link><dc:creator>binge</dc:creator><author>binge</author><pubDate>Mon, 28 Aug 2006 01:35:00 GMT</pubDate><guid>http://www.aygfsteel.com/huabingl/archive/2006/08/28/65886.html#66097</guid><description><![CDATA[鍒氬鍟?鎰熸ц璇嗗厛.鏈涙ゼ涓婃彁鐐逛竴涓嬮渶瑕佹繁鍏ョ殑綰茶<img src ="http://www.aygfsteel.com/huabingl/aggbug/66097.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/huabingl/" target="_blank">binge</a> 2006-08-28 09:35 <a href="http://www.aygfsteel.com/huabingl/archive/2006/08/28/65886.html#66097#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>re: OpenLDAP蹇熶笂鎵?/title><link>http://www.aygfsteel.com/huabingl/archive/2006/08/27/65886.html#65978</link><dc:creator>絎戝樆鍢葷郴</dc:creator><author>絎戝樆鍢葷郴</author><pubDate>Sun, 27 Aug 2006 03:05:00 GMT</pubDate><guid>http://www.aygfsteel.com/huabingl/archive/2006/08/27/65886.html#65978</guid><description><![CDATA[涓嶆繁鍏?<img src ="http://www.aygfsteel.com/huabingl/aggbug/65978.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/huabingl/" target="_blank">絎戝樆鍢葷郴</a> 2006-08-27 11:05 <a href="http://www.aygfsteel.com/huabingl/archive/2006/08/27/65886.html#65978#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>re: 涓涓畝鍗曠殑ThreadPool鍒嗘瀽http://www.aygfsteel.com/huabingl/archive/2006/07/18/58451.html#58670fisherfisherMon, 17 Jul 2006 18:59:00 GMThttp://www.aygfsteel.com/huabingl/archive/2006/07/18/58451.html#58670
錛嶏紞錛嶏紞錛嶏紞錛嶏紞錛嶏紞
鍏充簬涓轟粈涔堣閲囩敤ThreadPool錛屽師鏂囧凡緇忔彁鍒頒簡錛氬垱寤轟竴涓嚎紼嬫槸闇瑕佸紑閿鐨勶紝濡傛灉綰跨▼鏁伴噺榪囧ぇ鐨勮瘽錛宑pu灝變細嫻垂寰堝ぇ鐨勭簿鍔涘仛綰跨▼鍒囨崲銆?
錛嶏紞錛嶏紞錛嶏紞錛嶏紞錛嶏紞

綰跨▼姹犵殑鐩殑涓嶆槸reuse錛岃屾槸overload shield.榪欐槸鍒濇秹澶氱嚎紼嬬紪紼嬬殑浜虹粡甯鎬細鐘殑姒傚康鎬ч敊璇紝涔熸槸瀵逛簬綰跨▼姹犲姛鑳芥渶甯歌鐨勮瑙?

鍐典笖錛屼綘鎸囧嚭鐨勫師鏂囧凡緇忚鐨勫緢鏄庣櫧浜嗭紝浣犱技涔庢病鏈夌悊瑙e師鏂囩殑鎰忔?
鍘熸枃錛?
Why a Thread Pool?
When programming the crawler in the previous section, a problem that would soon present itself is the number of threads to use. A crawler may have to visit tens of thousands of pages, and you certainly do not want to create tens of thousands of threads because each thread imposes a certain amount of overhead. If the number of threads grows too large, the computer will be spending all of its time switching between threads, rather than just executing them.

To solve this problem, you must create a thread pool. The thread pool is given some fixed number of threads to use. The thread pool will assign its tasks to each of these threads. As the threads finish with old tasks, new ones are assigned. This causes the program to use a fixed number of threads, not to be continually creating new threads.

錛嶏紞錛嶏紞錛嶏紞錛嶏紞錛嶏紞錛嶏紞錛嶏紞錛嶏紞錛?

鍐嶈錛岃繖綃囨枃绔犲お鑰佷簡錛岃java娌℃湁鎻愪緵鍐呭緩鐨勭嚎紼嬫睜瀹炵幇錛宩ava5.0宸茬粡鎻愪緵浜嗗唴寤虹殑綰跨▼姹?img src ="http://www.aygfsteel.com/huabingl/aggbug/58670.html" width = "1" height = "1" />

fisher 2006-07-18 02:59 鍙戣〃璇勮
]]>
主站蜘蛛池模板: 安仁县| 大连市| 凌源市| 米易县| 多伦县| 泰兴市| 海口市| 麻江县| 台北县| 临漳县| 鸡西市| 建昌县| 通辽市| 虞城县| 万载县| 澄迈县| 清新县| 江安县| 即墨市| 丹阳市| 焉耆| 龙南县| 常山县| 凉城县| 宣汉县| 蓝山县| 哈巴河县| 炉霍县| 乐清市| 贵港市| 涿州市| 利辛县| 广河县| 凌源市| 靖安县| 修文县| 湟中县| 怀柔区| 七台河市| 鹤峰县| 颍上县|