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

java Ïß³Ì

 
Ï̵߳Ĵ´½¨ºÍÆô¶¯
      
javaÓïÑÔÒѾ­ÄÚÖÃÁ˶àÏß³ÌÖ§³Ö£¬ËùÓÐʵÏÖRunnable½Ó¿ÚµÄÀ඼¿É±»Æô¶¯Ò»¸öÐÂỊ̈߳¬ÐÂÏ̻߳áÖ´ÐиÃʵÀýµÄrun()·½·¨£¬µ±run()·½·¨Ö´ÐÐÍê±Ïºó£¬Ï߳̾ͽáÊøÁË¡£Ò»µ©Ò»¸öÏß³ÌÖ´ÐÐÍê±Ï£¬Õâ¸öʵÀý¾Í²»ÄÜÔÙÖØÐÂÆô¶¯£¬Ö»ÄÜÖØÐÂÉú³ÉÒ»¸öÐÂʵÀý£¬ÔÙÆô¶¯Ò»¸öÐÂÏ̡߳£
     
ThreadÀàÊÇʵÏÖÁËRunnable½Ó¿ÚµÄÒ»¸öʵÀý£¬Ëü´ú±íÒ»¸öÏ̵߳ÄʵÀý£¬²¢ÇÒ£¬Æô¶¯Ï̵߳ÄΨһ·½·¨¾ÍÊÇͨ¹ýThreadÀàµÄstart()ʵÀý·½·¨£º
Thread t = new Thread();
t.start();
      
start()·½·¨ÊÇÒ»¸önative·½·¨£¬Ëü½«Æô¶¯Ò»¸öÐÂỊ̈߳¬²¢Ö´ÐÐrun()·½·¨¡£ThreadÀàĬÈϵÄrun()·½·¨Ê²Ã´Ò²²»×ö¾ÍÍ˳öÁË¡£×¢Ò⣺ֱ½Óµ÷ÓÃrun()·½·¨²¢²»»áÆô¶¯Ò»¸öÐÂỊ̈߳¬ËüºÍµ÷ÓÃÒ»¸öÆÕͨµÄjava·½·¨Ã»ÓÐʲôÇø±ð¡£
       Òò´Ë£¬ÓÐÁ½¸ö·½·¨¿ÉÒÔʵÏÖ×Ô¼ºµÄỊ̈߳º
      ·½·¨1£º×Ô¼ºµÄÀàextend Thread£¬²¢¸´Ð´run()·½·¨£¬¾Í¿ÉÒÔÆô¶¯ÐÂÏ̲߳¢Ö´ÐÐ×Ô¼º¶¨ÒåµÄrun()·½·¨¡£ÀýÈ磺
public class MyThread extends Thread {
    public run() {
       
System.out.println("MyThread.run()");
    }
}
ÔÚºÏÊʵĵط½Æô¶¯Ị̈߳ºnew MyThread().start();
 ·½·¨2£ºÈç¹û×Ô¼ºµÄÀàÒѾ­extendsÁíÒ»¸öÀ࣬¾ÍÎÞ·¨Ö±½Óextends Thread£¬´Ëʱ£¬±ØÐëʵÏÖÒ»¸öRunnable½Ó¿Ú£º
public class MyThread extends OtherClass implements Runnable {
    public
run() {
        System.out.println("MyThread.run()");
    }
}
ΪÁËÆô¶¯MyThread£¬ÐèÒªÊ×ÏÈʵÀý»¯Ò»¸öThread£¬²¢´«Èë×Ô¼ºµÄMyThreadʵÀý£º
MyThread myt = new MyThread();
Thread t = new
Thread(myt);
t.start();
ÊÂʵÉÏ£¬µ±´«ÈëÒ»¸öRunnable
target²ÎÊý¸øThreadºó£¬ThreadµÄrun()·½·¨¾Í»áµ÷ÓÃtarget.run()£¬²Î¿¼JDKÔ´´úÂ룺
public void run() {
    if (target != null) {
       
target.run();
    }
}
Ï̻߳¹ÓÐһЩName, ThreadGroup, isDaemonµÈÉèÖã¬ÓÉÓÚºÍÏß³ÌÉè¼Æģʽ¹ØÁªºÜÉÙ£¬ÕâÀï¾Í²»¶à˵ÁË¡£
Ïß³Ìͬ


Ïà¹ØÎĵµ£º

sql 2005 ´æ´¢¹ý³Ì·ÖÒ³ java ´úÂë

 create PROCEDURE pagelist
@tablename nvarchar(50),
@fieldname nvarchar(50)='*',         
@pagesize int output,--ÿҳÏÔʾ¼Ç¼ÌõÊý
@currentpage int output,--µÚ¼¸Ò³
@orderid nvarchar(50),--Ö÷¼üÅÅÐò
@sort int,--ÅÅÐò·½Ê½£¬1±íʾÉýÐò£¬0±íʾ½µÐòÅÅÁÐ ......

Javaͬ²½´úÂëתÒì²½´úÂë

Javaͬ²½´úÂëתÒì²½´úÂë
Kagula
2009-11-18
ÕªÒª
Thread   Thread Group
¸ÅÒª
   ÀûÓÃJavaÔ´Â룬½éÉÜͬ²½´úÂëתÒì²½´úÂë¿ò¼ÜµÄʹÓã¬Ï°벿·Ý¸½¿ò¼ÜÔ´´úÂ룬ÔĶÁ±¾ÎÄ֮ǰ¿ÉÒԲο¼¡¶Java¶àÏß³Ì_±à³ÌÄ£ÐÍÑо¿¡·http://blog.csdn.net/lee353086/archive/2008/01/10/2033587.aspx
 
ÕýÎÄ
Tes ......

Ìá¸ßjava»¥ÁªÍøÍøÕ¾ÏîÄ¿ËÙ¶ÈÎÊÌâ

 ±ØÐëµÄ³ÐÈÏjava»¥ÁªÍøÏîÄ¿Ç¿ÊƲ»ÔÚÕâÀï,ÊÇÐèÒª´óÁ¿¸¨Öú¹¤×÷²ÅÄÜÌá¸ßËÙ¶È

1 Ç°ÌáÓиöºÃÓ²¼þ
2 È«Õ¾html¾²Ì¬»¯ (·Çα¾²Ì¬)
3 ÕûºÏapache+tomcat »òÕßiis+tomcat Ö®ÀàµÄ µ±È»ÆäËûjava webÈÝÆ÷Ò²ÄÜÕûºÏ
4 squid ¼ÓËÙ
5 ¸ºÔؾùºâ apache
´óÌå¿ò¼ÜʵÏÖ¼´ÊÇÈç´Ë
Èç¹û»¹³Á½þÔÚ db connect µÈ¶ÔÏóûÓÐclos ......

Java 2 SDK »·¾³

 
rem ¿´µ½ºÜ¶à³õѧÕß·´¸´ÎÊÕâ¸öÎÊÌ⣬дÁËÒ»¸öºÜ¼òµ¥µÄÒ»¸ö½Å±¾£¬ÓÃÓÚ×Ô¶¯ÉèÖû·¾³±äÁ¿¡£°Ñ´úÂ뿽±´£¬Áí´æΪjavaEnv.bat¡£°²×°ÍêJava 2 SDKÖ®ºó£¬¿ªÒ»¸öÃüÁîÐд°¿Ú,ÊäÈëjavaEnv java2SDKDir(java2SDKDirÊÇÄãµÄjavaµÄ°²×°Ä¿Â¼£¬²»´ø·¾¶×îºóµÄ\¡£Èç¹û°²×°Â·¾¶ÖÐÓпոñ£¬ÇëÓÃjavaEnv "java2SDKDir"¸ñʽ)²¢ÔËÐС£(×¢£ºÒ ......

java¶ÔÊý¾Ý¿âÖÐNULLµÄ´¦Àí

 javaÖÐnullµÄ¸ÅÄî:javaÖУ¬null±íʾÀà»ò±äÁ¿ÊÇ¿Õ£¬²»´ú±íÈκζÔÏó»òʵÀý£¬¿ÉÒÔ½«null¸³¸øÒýÓÃÀàÐͱäÁ¿£¬µ«²»¿ÉÒÔ½«null¸³¸ø»ù±¾ÀàÐͱäÁ¿¡£Êý¾Ý¿âÖÐNULLµÄ¸ÅÄî:Êý¾Ý¿âÖУ¬null±íʾδÌîд¡¢Î´Öª¡¢²»¿ÉÓõĸÅÄºÍjava²»Í¬µÄÊÇÊý¾Ý¿âÖпÉÒÔ½«null¸³¸øÈκÎÊý¾ÝÀàÐÍ¡£ÕâÑùÒ»À´£¬ÎÒÃÇ´ÓÊý¾Ý¿âÖжÁÈ¡×ֶεÄÖµºó£¬ÔÚjava³ÌÐò ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ