JavaỊ̈߳ºÏ̵߳ĵ÷¶È ºÏ²¢
JavaỊ̈߳ºÏ̵߳ĵ÷¶È-ºÏ²¢
Ï̵߳ĺϲ¢µÄº¬Òå¾ÍÊǽ«¼¸¸ö²¢ÐÐÏ̵߳ÄÏ̺߳ϲ¢ÎªÒ»¸öµ¥Ïß³ÌÖ´ÐУ¬Ó¦Óó¡¾°Êǵ±Ò»¸öÏ̱߳ØÐëµÈ´ýÁíÒ»¸öÏß³ÌÖ´ÐÐÍê±Ï²ÅÄÜÖ´ÐÐʱ¿ÉÒÔʹÓÃjoin·½·¨¡£
joinΪ·Ç¾²Ì¬·½·¨£¬¶¨ÒåÈçÏ£º
void join()
µÈ´ý¸ÃÏß³ÌÖÕÖ¹¡£
void join(long millis)
µÈ´ý¸ÃÏß³ÌÖÕÖ¹µÄʱ¼ä×Ϊ millis ºÁÃë¡£
void join(long millis, int nanos)
µÈ´ý¸ÃÏß³ÌÖÕÖ¹µÄʱ¼ä×Ϊ millis ºÁÃë + nanos ÄÉÃë¡£
/**
* JavaỊ̈߳ºÏ̵߳ĵ÷¶È-ºÏ²¢
*
* @author leizhimin 2009-11-4 9:02:40
*/
public class Test {
public static void main(String[] args) {
Thread t1 = new MyThread1();
t1.start();
for (int i = 0; i < 20; i++) {
System.out.println("Ö÷Ï̵߳Ú" + i + "´ÎÖ´ÐУ¡");
if (i > 2) try {
//t1Ï̺߳ϲ¢µ½Ö÷Ïß³ÌÖУ¬Ö÷Ïß³ÌÍ£Ö¹Ö´Ðйý³Ì£¬×ª¶øÖ´ÐÐt1Ị̈߳¬Ö±µ½t1Ö´ÐÐÍê±Ïºó¼ÌÐø¡£
t1.j
Ïà¹ØÎĵµ£º
Ò»¡¢¹ú¼Ê»¯ºÍ Java ±à³ÌÓïÑÔ
ºÍ´ó¶àÊýʹÓÃÆäËüÓïÑԵijÌÐòÔ±²»Í¬£¬Java
³ÌÐòÔ±ÊÇ´óÁ¿¹¹½¨ÔÚ JDK ÖÐÌṩ I18N Ö§³ÖµÄ±ê×¼´úÂëµÄÊÜÒæÕß¡£´ó²¿·Ö´úÂë×î³õÀ´×Ô IBM µÄ Taligent ×Ó¹«Ë¾£¨×ԴӺϲ¢½ø
IBM ÒԺ󣩣¬´ú±íÁËÐí¶àÈËÄêµÄ¹¤×÷³É¹û£¬±È´ó¶àÊý¹«Ë¾¶À×ÔÔÚÆä²úÆ·ÖÐÌṩµÄ´úÂëÒªÇÐʵ¿ÉÐеöࡣ
ÕâЩ
´úÂë ......
ÓÃÔÚ¶àỊ̈߳¬Í¬²½±äÁ¿¡£ Ïß³ÌΪÁËÌá¸ßЧÂÊ£¬½«Ä³³ÉÔ±±äÁ¿(ÈçA)¿½±´ÁËÒ»·Ý£¨ÈçB£©£¬Ïß³ÌÖжÔAµÄ·ÃÎÊÆäʵ·ÃÎʵÄÊÇB¡£Ö»ÔÚijЩ¶¯×÷ʱ²Å½øÐÐAºÍBµÄͬ²½¡£Òò´Ë´æÔÚAºÍB²»Ò»ÖµÄÇé¿ö¡£volatile¾ÍÊÇÓÃÀ´±ÜÃâÕâÖÖÇé¿öµÄ¡£volatile¸æËßjvm£¬ ËüËùÐÞÊεıäÁ¿²»±£Áô¿½±´£¬Ö±½Ó·ÃÎÊÖ÷ÄÚ´æÖеģ¨Ò²¾ÍÊÇÉÏÃæ˵µÄA)
===================== ......
Java 1.5ÒÔÉ϶¼ÔÚÐéÄâ»úÀïÄÚ½¨Á˳ÌÐòÐÔÄܸú×ٵŦÄÜ£¬²¢ÌṩÁËJava Profiling API£¬¼ò³ÆJPA£¬Äã¿ÉÒÔËÑË÷'java
profiling'¡£JavaÒ²ÌṩÁ˼òµ¥µÄÐÔÄÜÐÔÄܸú×Ù¹¤¾ßJConsole£¬ÄÜÏÔʾÄڴ棬Ï̵߳ÈʹÓÃ×´¿ö¡£ÁíÍâÒ²ÊÇÓÉSunÌṩ£¬µ«²»°üº¬ÔÚjdk
ÀïµÄ¹¤¾ßvisualgc¿ÉÒÔͼÐη½Ê½ÏÔʾÀ¬»øÊÕ¼¯µÄÔËÐÐÇé¿ö£¬ÎªÐÔÄÜ·ÖÎöÌṩ֧³Ö¡£µÚÈý· ......
JavaỊ̈߳ºÏß³Ì״̬µÄת»»
SCJP5ѧϰ±Ê¼Ç
Ò»¡¢Ïß³Ì״̬
Ï̵߳Ä״̬ת»»ÊÇÏ߳̿ØÖƵĻù´¡¡£Ïß³Ì״̬×ܵĿɷÖΪÎå´ó״̬£º·Ö±ðÊÇÉú¡¢ËÀ¡¢¿ÉÔËÐС¢ÔËÐС¢µÈ´ý/×èÈû¡£ÓÃÒ»¸öͼÀ´ÃèÊöÈçÏ£º
1¡¢ÐÂ״̬£ºÏ̶߳ÔÏóÒѾ´´½¨£¬»¹Ã»ÓÐÔÚÆäÉϵ÷ÓÃstart()·½·¨¡£
2¡¢¿ÉÔËÐÐ״̬£ºµ±Ïß³ÌÓÐ× ......
JavaỊ̈߳ºÏ̵߳Ľ»»¥
SCJP5ѧϰ±Ê¼Ç
Ï߳̽»»¥ÊDZȽϸ´ÔÓµÄÎÊÌ⣬SCJPÒªÇ󲻺ܻù´¡£º¸ø¶¨Ò»¸ö³¡¾°£¬±àд´úÂëÀ´Ç¡µ±Ê¹Óõȴý¡¢Í¨ÖªºÍ֪ͨËùÓÐÏ̡߳£
Ò»¡¢Ï߳̽»»¥µÄ»ù´¡ÖªÊ¶
SCJPËùÒªÇóµÄÏ߳̽»»¥ÖªÊ¶µãÐèÒª´Ójava.lang.ObjectµÄÀàµÄÈý¸ö·½·¨À´Ñ§Ï°£º
void notify()
......