JavaÏß³Ì×ܽá
Ò»Ìáµ½Ï̺߳ÃÏñÊǼþºÜÂé·³ºÜ¸´ÔÓµÄÊ£¬ÊÂʵÉÏȷʵÈç´Ë£¬Éæ¼°µ½Ï̵߳ıà³ÌÊǺܽ²¾¿¼¼Çɵġ£Õâ¾ÍÐèÒªÎÒÃDZ任˼ά·½Ê½£¬Á˽âÏ̻߳úÖƵıȽÏͨÓõļ¼ÇÉ£¬Ð´³ö¸ßЧµÄ¡¢²»ÒÀÀµÓÚij¸öJVMʵÏֵijÌÐòÀ´¡£±Ï¾¹½ö½ö¾ÍJava¶øÑÔ£¬¸÷¸öÐéÄâ»úµÄʵÏÖÊDz»Í¬µÄ¡£Ñ§Ï°Ïß³Ìʱ£¬×îÁîÎÒÓ¡ÏóÉî¿ÌµÄ¾ÍÊÇÄÇÖÖ²»È·¶¨ÐÔ¡¢Ã»Óб£ÕÏÐÔ£¬¸÷¸öÏ̵߳ÄÔËÐÐÍêÈ«ÊÇÒÔ²»¿ÉÔ¤Áϵķ½Ê½ºÍËÙ¶ÈÍƽø£¬ÓеÄÒ»¸ö³ÌÐòÔËÐÐÁËN´Î£¬Æä½á¹û²îÒìÐԺܴó¡£
1¡¢Ê²Ã´ÊÇỊ̈߳¿Ïß³ÌÊDZ˴˻¥Ïà¶ÀÁ¢µÄ¡¢ÄܶÀÁ¢ÔËÐеÄ×ÓÈÎÎñ£¬²¢ÇÒÿ¸öÏ̶߳¼ÓÐ×Ô¼ºµÄµ÷ÓÃÕ»¡£ËùνµÄ¶àÈÎÎñÊÇͨ¹ýÖÜÆÚÐԵؽ«CPUʱ¼äƬÇл»µ½²»Í¬µÄ×ÓÈÎÎñ£¬ËäÈ»´Ó΢¹ÛÉÏ¿´À´£¬µ¥ºËµÄCPUÉÏͬʱֻÔËÐÐÒ»¸ö×ÓÈÎÎñ£¬µ«ÊÇ´Óºê¹ÛÀ´¿´£¬Ã¿¸ö×ÓÈÎÎñËƺõÊÇͬʱÁ¬ÐøÔËÐеġ££¨µ«ÊÇJAVAµÄÏ̲߳»ÊÇ°´Ê±¼äƬ·ÖÅäµÄ£¬ÔÚ±¾ÎĵÄ×îºóÒýÓÃÁËÒ»¶ÎÍøÓÑ·ÒëµÄJAVAÔÖøÖжÔÏ̵߳ÄÀí½â¡££©
2¡¢ÔÚjavaÖУ¬Ïß³ÌÖ¸Á½¸ö²»Í¬µÄÄÚÈÝ£ºÒ»ÊÇjava.lang.ThreadÀàµÄÒ»¸ö¶ÔÏó£»ÁíÍâÒ²¿ÉÒÔÖ¸Ï̵߳ÄÖ´ÐС£Ï̶߳ÔÏóºÍÆäËûµÄ¶ÔÏóÒ»Ñù£¬ÔÚ¶ÑÉÏ´´½¨¡¢ÔËÐС¢ËÀÍö¡£µ«²»Í¬Ö®´¦ÊÇÏ̵߳ÄÖ´ÐÐÊÇÒ»¸öÇáÁ¿¼¶µÄ½ø³Ì£¬ÓÐËü×Ô¼ºµÄµ÷ÓÃÕ»¡£
¿ÉÒÔÕâÑùÏ룬ÿ¸öµ÷ÓÃÕ»¶¼¶ÔÓ¦Ò»¸öỊ̈߳¬Ã¿¸öÏß³ÌÓÖ¶ÔÓ¦Ò»¸öµ÷ÓÃÕ»¡£
ÎÒÃÇÔËÐÐjava³ÌÐòʱÓÐÒ»¸öÈë¿Úº¯Êýmain()º¯Êý£¬Ëü¶ÔÓ¦µÄÏ̱߳»³ÆΪÖ÷Ï̡߳£Ò»¸öÐÂÏß³ÌÒ»µ©±»´´½¨£¬¾Í²úÉúÒ»¸öе÷ÓÃÕ»£¬´ÓÔÖ÷Ïß³ÌÖÐÍÑÀ룬Ҳ¾ÍÊÇÓëÖ÷Ï̲߳¢·¢Ö´ÐС£
4¡¢µ±Ìáµ½Ïß³Ìʱ£¬ºÜÉÙÊÇÓб£Õϵġ£ÎÒÃDZØÐëÁ˽⵽ʲôÊÇÓб£ÕϵIJÙ×÷£¬Ê²Ã´ÊÇÎÞ±£ÕϵIJÙ×÷£¬ÒÔ±ãÉè¼ÆµÄ³ÌÐòÔÚ¸÷ÖÖjvmÉ϶¼Äܺܺõع¤×÷¡£±ÈÈ磬ÔÚijЩjvmʵÏÖÖУ¬°ÑjavaÏß³ÌÓ³ÉäΪ±¾µØ²Ù×÷ϵͳµÄÏ̡߳£ÕâÊÇjavaºËÐĵÄÒ»²¿·Ö¡£
5¡¢Ï̵߳Ĵ´½¨¡£
´´½¨Ïß³ÌÓÐÁ½ÖÖ·½Ê½£º
A¡¢¼Ì³Ðjava.lang.ThreadÀà¡£
class ThreadTest extends Thread{
public void run() {
System.out.println ("someting run here£¡");
}
public void run(String s){
System.out.println ("string in run is " + s);
}
public sta
Ïà¹ØÎĵµ£º
ËùÓйؼü×Ö¶¼ÊÇСдµÄ ×ÖĸÏ»®ÏßÒ»¶¨ÔÚÇ°Ãæ¡£Êý×Ö¿ªÍ·µÄ±êʶ·ûÊÇ·Ç·¨µÄ¡£²»ÄÜÓпոñ¡£Ö®¼ä²»ÄÜÓÐÔËËã·û ±êʶ·û Çø·Ö´óСд
ÀýÈ磺abcºÍAbcÊÇÁ½¸ö²»Í¬µÄ±êʶ·û ±êʶ·û²»ÄÜÊǹؼü×Ö Èç¹û±êʶ·ûÓɶà¸öµ¥´Ê¹¹³É£¬ÄÇô´ÓµÚ¶þ¸öµ¥´Ê¿ªÊ¼£¬Ê××Öĸ´óд
ʾÀý£ºisText ¡¢ canRunTheCar µÈ ¾¡Á¿ÉÙÓôø$·ûºÅµÄ±êʶ· ......
¡¡¡¡JavaÓïÑÔµÄÊäÈëÊä³ö¹¦ÄÜÊÇÊ®·ÖÇ¿´ó¶øÁé»îµÄ£¬ÃÀÖв»×ãµÄÊÇ¿´ÉÏÈ¥ÊäÈëÊä³öµÄ´úÂë²¢²»ÊǺܼò½à£¬ÒòΪÄãÍùÍùÐèÒª°ü×°Ðí¶à²»Í¬µÄ¶ÔÏó¡£ÔÚJavaÀà¿âÖУ¬IO²¿·ÖµÄÄÚÈÝÊǺÜÅÓ´óµÄ£¬ÒòΪËüÉæ¼°µÄÁìÓòºÜ¹ã·º:±ê×¼ÊäÈëÊä³ö£¬ÎļþµÄ²Ù×÷£¬ÍøÂçÉϵÄÊý¾ÝÁ÷£¬×Ö·û´®Á÷£¬¶ÔÏóÁ÷£¬zipÎļþÁ÷....±¾ÎĵÄÄ¿µÄÊÇΪ´ó¼Ò×öÒ»¸ö¼òÒªµÄ½éÉÜ ......
java¼ÓÃܼ¼ÊõÊÕ¼¯ http://coreoak.javaeye.com/blog/91576
¹Ø¼ü×Ö: java¼ÓÃܼ¼Êõ
ÔÚchinaitlabÉÏÃæÕÒµ½¹ØÓÚjava¼ÓÃܼ¼ÊõµÄÎÄÕ£¬ Õª³ÏÂÀ´£¬ ÈÕºóºÃºÃѧϰ£¬Á´½ÓµØÖ·£ºhttp://java.chinaitlab.com/base/719984_2.html
×î½üÔÚÑо¿JAVA CLASS LOADING¼¼Êõ£¬ÒÑʵÏÖÁËÒ»¸ö×Ô¶¨ÒåµÄ¼ÓÔØÆ÷¡£¶ÔÄ¿Ç°×Ô¶¨Òå¼ÓÔ ......
ËùÓеijÌÐò¿ª·¢Êֲᶼ°üº¬Á˸÷ÖÖ¹æÔò¡£Ò»Ð©Ï°¹ß×ÔÓɳÌÐòÈËÔ±¿ÉÄܶÔÕâЩ¹æÔòºÜ²»ÊÊÓ¦£¬µ«ÊÇÔÚ¶à¸ö¿ª·¢ÈËÔ±¹²Í¬Ð´×÷µÄÇé¿öÏ£¬ÕâЩ¹æÔòÊDZØÐèµÄ¡£Õâ²»½ö½öÊÇΪÁË¿ª·¢Ð§ÂÊÀ´¿¼ÂÇ£¬¶øÇÒÒ²ÊÇΪÁ˺óÆÚά»¤¿¼ÂÇ¡£
ÃüÃû¹æ·¶
¶¨ÒåÕâ¸ö¹æ·¶µÄÄ¿µÄÊÇÈÃÏîÄ¿ÖÐËùÓеÄÎĵµ¶¼¿´ÆðÀ´ÏñÒ»¸öÈËдµÄ£¬Ôö¼Ó¿É¶ÁÐÔ£¬¼õÉÙÏîÄ¿×éÖÐÒòΪ ......