Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

JavaỊ̈߳ºÐÂÌØÕ÷ Ìõ¼þ±äÁ¿

JavaỊ̈߳ºÐÂÌØÕ÷-Ìõ¼þ±äÁ¿
 
Ìõ¼þ±äÁ¿ÊÇJava5Ïß³ÌÖкÜÖØÒªµÄÒ»¸ö¸ÅÄ¹ËÃû˼Ò壬Ìõ¼þ±äÁ¿¾ÍÊDZíʾÌõ¼þµÄÒ»ÖÖ±äÁ¿¡£µ«ÊDZØÐë˵Ã÷£¬ÕâÀïµÄÌõ¼þÊÇûÓÐʵ¼Êº¬ÒåµÄ£¬½ö½öÊǸö±ê¼Ç¶øÒÑ£¬²¢ÇÒÌõ¼þµÄº¬ÒåÍùÍùͨ¹ý´úÂëÀ´¸³ÓèÆ京Òå¡£
 
ÕâÀïµÄÌõ¼þºÍÆÕͨÒâÒåÉϵÄÌõ¼þ±í´ïʽÓÐ×ÅÌìÈÀÖ®±ð¡£
 
Ìõ¼þ±äÁ¿¶¼ÊµÏÖÁËjava.util.concurrent.locks.Condition½Ó¿Ú£¬Ìõ¼þ±äÁ¿µÄʵÀý»¯ÊÇͨ¹ýÒ»¸öLock¶ÔÏóÉϵ÷ÓÃnewCondition()·½·¨À´»ñÈ¡µÄ£¬ÕâÑù£¬Ìõ¼þ¾ÍºÍÒ»¸öËø¶ÔÏó°ó¶¨ÆðÀ´ÁË¡£Òò´Ë£¬JavaÖеÄÌõ¼þ±äÁ¿Ö»ÄܺÍËøÅäºÏʹÓã¬À´¿ØÖƲ¢·¢³ÌÐò·ÃÎʾºÕù×ÊÔ´µÄ°²È«¡£
 
Ìõ¼þ±äÁ¿µÄ³öÏÖÊÇΪÁ˸ü¾«Ï¸¿ØÖÆÏ̵߳ȴýÓ뻽ÐÑ£¬ÔÚJava5֮ǰ£¬Ï̵߳ĵȴýÓ뻽ÐÑÒÀ¿¿µÄÊÇObject¶ÔÏóµÄwait()ºÍnotify()/notifyAll()·½·¨£¬ÕâÑùµÄ´¦Àí²»¹»¾«Ï¸¡£
 
¶øÔÚJava5ÖУ¬Ò»¸öËø¿ÉÒÔÓжà¸öÌõ¼þ£¬Ã¿¸öÌõ¼þÉÏ¿ÉÒÔÓжà¸öÏ̵߳ȴý£¬Í¨¹ýµ÷ÓÃawait()·½·¨£¬¿ÉÒÔÈÃÏß³ÌÔÚ¸ÃÌõ¼þϵȴý¡£µ±µ÷ÓÃsignalAll()·½·¨£¬ÓÖ¿ÉÒÔ»½ÐѸÃÌõ¼þϵĵȴýµÄÏ̡߳£ÓйØCondition½Ó¿ÚµÄAPI¿ÉÒÔ¾ßÌå²Î¿¼JavaAPIÎĵµ¡£
 
Ìõ¼þ±äÁ¿±È½Ï³éÏó£¬Ô­ÒòÊÇËû²»ÊÇ×ÔÈ»ÓïÑÔÖеÄÌõ¼þ¸ÅÄ¶øÊdzÌÐò¿ØÖƵÄÒ»ÖÖÊֶΡ£
 
ÏÂÃæÒÔÒ»¸öÒøÐдæÈ¡¿îµÄÄ£Äâ³ÌÐòΪÀýÀ´½Ò¸ÇJava¶àÏß³ÌÌõ¼þ±äÁ¿µÄÉñÃØÃæÉ´£º
 
ÓÐÒ»¸öÕË»§£¬¶à¸öÓû§£¨Ị̈߳©ÔÚͬʱ²Ù×÷Õâ¸öÕË»§£¬ÓеĴæ¿îÓеÄÈ¡¿î£¬´æ¿îËæ±ã´æ£¬È¡¿îÓÐÏÞÖÆ£¬²»ÄÜ͸֧£¬ÈκÎÊÔͼ͸֧µÄ²Ù×÷¶¼½«µÈ´ýÀïÃæÓÐ×ã¹»´æ¿î²ÅÖ´ÐвÙ×÷¡£
 
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.locks.Condition;
import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReentrantLock;
/**
* JavaỊ̈߳ºÌõ¼þ±äÁ¿
*
* @author leizhimin 2009-11-5 10:57:29
*/
public class Test {
        public static void main(String[] args) {
                //´´½¨²¢·¢·ÃÎʵÄÕË»§
                MyCount myCount = new MyCount("95599200901215522", 10000);
          &nb


Ïà¹ØÎĵµ£º

Java²Ù×÷Excel·½·¨±È½Ï

1. Java¶ÁÈ¡Excel·½Ê½¶Ô±È
ÔÚJavaÖжÁдMS ExcelÎļþÖ÷ÒªÓÐÁ½ÖÖµäÐ͵ķ½·¨
l         Java-To-ComµÄ·½Ê½£º
£¨£±£©   jCom
£¨£²£©   Jacob
l         Ö±½ÓExcelÎļþ¶Áд
£¨£³£©   jExcel
£¨£´£©&nbs ......

JavaỊ̈߳º²¢·¢Ð­×÷ ËÀËø

JavaỊ̈߳º²¢·¢Ð­×÷-ËÀËø
 
Ï̷߳¢ÉúËÀËø¿ÉÄÜÐÔºÜС£¬¼´Ê¹¿´ËÆ¿ÉÄÜ·¢ÉúËÀËøµÄ´úÂ룬ÔÚÔËÐÐʱ·¢ÉúËÀËøµÄ¿ÉÄÜÐÔÒ²ÊÇС֮ÓÖС¡£
 
·¢ÉúËÀËøµÄÔ­ÒòÒ»°ãÊÇÁ½¸ö¶ÔÏóµÄËøÏ໥µÈ´ýÔì³ÉµÄ¡£
 
ÔÚ¡¶JavaỊ̈߳ºÏ̵߳Äͬ²½ÓëËø¡·Ò»ÎÄÖУ¬¼òÊöËÀËøµÄ¸ÅÄîÓë¼òµ¥Àý×Ó£¬µ«ÊÇËù¸øµÄÀý×ÓÊDz»ÍêÕûµÄ£¬ÕâÀï¸ø³öÒ»¸öÍêÕûµÄÀ ......

JavaỊ̈߳ºÐÂÌØÕ÷ Ëø£¨ÉÏ£©

JavaỊ̈߳ºÐÂÌØÕ÷-Ëø£¨ÉÏ£©
 
ÔÚJava5ÖУ¬×¨ÃÅÌṩÁËËø¶ÔÏó£¬ÀûÓÃËø¿ÉÒÔ·½±ãµÄʵÏÖ×ÊÔ´µÄ·âËø£¬ÓÃÀ´¿ØÖƶԾºÕù×ÊÔ´²¢·¢·ÃÎʵĿØÖÆ£¬ÕâЩÄÚÈÝÖ÷Òª¼¯ÖÐÔÚjava.util.concurrent.locks °üÏÂÃ棬ÀïÃæÓÐÈý¸öÖØÒªµÄ½Ó¿ÚCondition¡¢Lock¡¢ReadWriteLock¡£
 
Condition
Condition ½« Object ¼àÊÓÆ÷·½·¨£¨wait¡¢notify ......

JavaỊ̈߳ºÐÂÌØÕ÷ Ëø£¨Ï£©

JavaỊ̈߳ºÐÂÌØÕ÷-Ëø£¨Ï£©
 
ÔÚÉÏÎÄÖÐÌáµ½ÁËLock½Ó¿ÚÒÔ¼°¶ÔÏó£¬Ê¹ÓÃËü£¬ºÜÓÅÑŵĿØÖÆÁ˾ºÕù×ÊÔ´µÄ°²È«·ÃÎÊ£¬µ«ÊÇÕâÖÖËø²»Çø·Ö¶Áд£¬³ÆÕâÖÖËøΪÆÕͨËø¡£ÎªÁËÌá¸ßÐÔÄÜ£¬JavaÌṩÁ˶ÁдËø£¬ÔÚ¶ÁµÄµØ·½Ê¹ÓöÁËø£¬ÔÚдµÄµØ·½Ê¹ÓÃдËø£¬Áé»î¿ØÖÆ£¬ÔÚÒ»¶¨³Ì¶ÈÉÏÌá¸ßÁ˳ÌÐòµÄÖ´ÐÐЧÂÊ¡£
 
JavaÖжÁдËøÓиö½Ó¿Újava ......

JavaỊ̈߳ºÐÂÌØÕ÷ ÐźÅÁ¿

JavaỊ̈߳ºÐÂÌØÕ÷-ÐźÅÁ¿
 
JavaµÄÐźÅÁ¿Êµ¼ÊÉÏÊÇÒ»¸ö¹¦ÄÜÍê±ÏµÄ¼ÆÊýÆ÷£¬¶Ô¿ØÖÆÒ»¶¨×ÊÔ´µÄÏû·ÑÓë»ØÊÕÓÐןÜÖØÒªµÄÒâÒ壬ÐźÅÁ¿³£³£ÓÃÓÚ¶àÏ̵߳ĴúÂëÖУ¬²¢Äܼà¿ØÓжàÉÙÊýÄ¿µÄÏ̵߳ȴý»ñÈ¡×ÊÔ´£¬²¢ÇÒͨ¹ýÐźÅÁ¿¿ÉÒÔµÃÖª¿ÉÓÃ×ÊÔ´µÄÊýÄ¿µÈµÈ£¬ÕâÀï×ÜÊÇÔÚÇ¿µ÷“ÊýÄ¿”¶þ×Ö£¬µ«²»ÄÜÖ¸³öÀ´ÓÐÄÄЩÔڵȴý£¬ÄÄЩ×ÊÔ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ