锘??xml version="1.0" encoding="utf-8" standalone="yes"?>97在线观看免费,久久蜜桃精品,天天色综合天天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灝變細(xì)嫻垂寰堝ぇ鐨勭簿鍔涘仛綰跨▼鍒囨崲銆?
錛嶏紞錛嶏紞錛嶏紞錛嶏紞錛嶏紞

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

鍐典笖錛屼綘鎸囧嚭鐨勫師鏂囧凡緇忚鐨勫緢鏄庣櫧浜嗭紝浣犱技涔庢病鏈夌悊瑙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 鍙戣〃璇勮
]]>
主站蜘蛛池模板: 漯河市| 房产| 雷州市| 红桥区| 马山县| 博客| 唐山市| 东莞市| 仁化县| 南川市| 吐鲁番市| 顺义区| 定结县| 修文县| 汝南县| 临猗县| 扶风县| 江门市| 香河县| 互助| 新余市| 台北市| 大余县| 和平区| 龙南县| 自治县| 聊城市| 高台县| 迁安市| 新巴尔虎右旗| 依兰县| 伊川县| 兴国县| 富裕县| 富锦市| 克什克腾旗| 湖州市| 晋江市| 太原市| 涞源县| 金堂县|