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

JavaÏ߳̽²½â

Ò» Ï̵߳Ļù±¾¸ÅÄî
Ïß³ÌÊÇÒ»¸ö³ÌÐòÄÚ²¿µÄ˳Ðò¿ØÖÆÁ÷.Ò»¸ö½ø³ÌÏ൱ÓÚÒ»¸öÈÎÎñ,Ò»¸öÏß³ÌÏ൱ÓÚÒ»¸öÈÎÎñÖеÄÒ»ÌõÖ´Ðз¾¶.
¶à½ø³Ì:ÔÚ²Ù×÷ϵͳÖÐÄÜͬʱÔËÐжà¸öÈÎÎñ(³ÌÐò)
¶àÏß³Ì:ÔÚͬһ¸öÓ¦ÓóÌÐòÖÐÓжà¸ö˳ÐòÁ÷ͬʱִÐÐ
JavaµÄÏß³ÌÊÇͨ¹ýjava.lang.ThreadÀàÀ´ÊµÏÖµÄ
JVMÆô¶¯Ê±»áÓÐÒ»¸öÓÉÖ÷·½·¨(public static void main(){})Ëù¶¨ÒåµÄÏß³Ì
¿ÉÒÔͨ¹ý´´½¨ThreadµÄʵÀýÀ´´´½¨ÐµÄÏß³Ì
ÿ¸öÏ̶߳¼ÊÇͨ¹ýij¸öÌض¨Thread¶ÔÏóËù¶ÔÓ¦µÄ·½·¨run()À´Íê³ÉÆä²Ù×÷µÄ,·½·¨run()³ÆΪÏß³ÌÌå
ͨ¹ýµ÷ÓÃThreadÀàµÄstart()·½·¨À´Æô¶¯Ò»¸öÏß³Ì
¶þ Ï̵߳Ĵ´½¨ºÍÆô¶¯
¿ÉÒÔÓÐÁ½ÖÖ·½Ê½´´½¨ÐµÄÏß³Ì:
µÚÒ»ÖÖ:
    1.¶¨ÒåÏß³ÌÀàʵÏÖRunnable½Ó¿Ú
    2.Thread myThread = new Thread(target);  //targetΪRunnable½Ó¿ÚÀàÐÍ
    3.RunnableÖÐÖ»ÓÐÒ»¸ö·½·¨:public void run();ÓÃÒÔ¶¨ÒåÏß³ÌÔËÐÐÌå
    4.ʹÓÃRunnable½Ó¿Ú¿ÉÒÔΪ¶à¸öÏß³ÌÌṩ¹²ÏíµÄÊý¾Ý
    5.ÔÚʵÏÖRunnable½Ó¿ÚµÄÀàµÄrun()·½·¨¶¨ÒåÖпÉÒÔʹÓÃThreadµÄ¾²Ì¬·½·¨public static Thread
currentThread();»ñÈ¡µ±Ç°Ï̵߳ÄÒýÓÃ
   
µÚ¶þÖÖ:
     1.¿ÉÒÔ¶¨ÒåÒ»¸öThreadµÄ×ÓÀಢÖØдÆärun·½·¨Èç:
         class MyThread extends Thread {   
             public void run() {...}
            
         }   
    2.È»ºóÉú³É¸ÃÀàµÄ¶ÔÏó:
        MyThread myThread = new MyThread();
Èý Ï߳̿ØÖƵĻù±¾·½·¨
isAlive():ÅжÏÏß³ÌÊÇ·ñ»¹"»î"×Å
getPriority():»ñµÃÏ̵߳ÄÓÅÏȼ¶ÊýÖµ
setPriority():ÉèÖÃÏ̵߳ÄÓÅÏȼ¶ÊýÖµ
Thread.sleep():½«µ±Ç°Ïß³Ì˯ÃßÖ¸¶¨ºÁÃëÊý
join():µ÷ÓÃijÏ̵߳ĸ÷½·¨,½«µ±Ç°Ïß³ÌÓë¸ÃÏß³Ì"ºÏ²¢",¼´µÈ´ý¸ÃÏ߳̽áÊø,ÔÙ»Ö¸´µ±Ç°Ï̵߳ÄÔËÐÐ
yield():Èóöcpu,µ±Ç°Ï߳̽øÈë¾ÍÐ÷¶ÓÁеȴýµ÷¶È
wait():µ±Ç°Ï߳̽øÈë¶ÔÏóµÄwait pool
notify()/notifyAll():»½ÐѶÔÏóµÄwait poolÖеÄÒ»¸ö/ËùÓеȴýÏß³Ì


Ïà¹ØÎĵµ£º

javaÓë.netµÄweb serviceÏ໥µ÷ÓÃ

Ò»:¼ò½é
±¾ÎĽéÉÜÁËJavaÓë.NET¿ª·¢µÄWeb ServicesÏ໥µ÷Óõļ¼Êõ¡£±¾ÎÄ°üÀ¨Á½¸ö²¿·Ö£¬µÚÒ»²¿·Ö½éÉÜÁËÈçºÎÓÃ.NET×ö¿Í»§¶Ëµ÷ÓÃJavaдµÄWeb Services,µÚ¶þ²¿·Ö½éÉÜÁËÈçºÎÓÃJava×ö¿Í»§¶Ëµ÷ÓÃ.NET¿ª·¢µÄWeb Services¡£ ¡¡
¡¡
¶þ:ÏîÄ¿ÐèÒªµÄ¹¤¾ß¡¡¡¡
WindowsXP Professial(IIS)
¡¡ Eclipse3.1(ÒÑ×°ºÃTomcat axis)
¡¡¡¡VS ......

java»Øµ÷

 1javaÖÐÅÅÐòËã·¨µÄ»Øµ÷
±àдͨÓõÄÅÅÐò´úÂëʱ£¬ÃæÁÙµÄÒ»¸öÎÊÌâ¾ÍÊDZØÐë¸ù¾Ý¶ÔÏóµÄʵ¼ÊÀàÐÍÀ´Ö´ÐбȽÏÔËË㣬´Ó¶øʵÏÖÕýÈ·µÄÔËËã¡£³ÌÐòÉè¼ÆµÄÖ÷ҪĿ±ê¾ÍÊÇ“½«·¢Éú±ä»¯µÄ¶«Î÷Óë±£³Ö²»±äµÄ¶«Î÷·Ö¿ª” £¬ÔÚÕâÀï±£³Ö²»±äµÄ²¿·Ö¾ÍÊdzÌÐòËã·¨£¬¶øÿ´ÎʹÓÃʱ¶¼Òª±ä»¯µÄÊǶÔÏóµÄʵ¼Ê±È½ÏËã·¨¡£ËùÒÔÎÒÃDzÉÓûص÷£¬½« ......

JavaÖеÄtransient£¬volatileºÍstrictfp¹Ø¼ü×Ö

Java
ÖеÄtransient£¬volatileºÍstrictfp¹Ø¼ü×Ö
    Èç¹ûÓÃtransientÉùÃ÷Ò»¸öʵÀý±äÁ¿£¬µ±¶ÔÏó´æ´¢Ê±£¬ËüµÄÖµ²»ÐèҪά³Ö¡£ÀýÈ磺
Java
´úÂë
class
 T {  
   transient
 
int
 a;  
//²»ÐèҪά³Ö
  
   int ......

javaÄÚ´æ¹ÜÀí¼°ÄÚ´æй¶

    ±àÕß°´£ºJavaÄÚ´æй©ÊÇÿ¸öJava³ÌÐòÔ±¶¼»áÓöµ½µÄÎÊÌ⣬³ÌÐòÔÚ±¾µØÔËÐÐÒ»ÇÐÕý³££¬¿ÉÊDz¼Êðµ½Ô¶¶Ë¾Í»á³öÏÖÄÚ´æÎÞÏÞÖƵÄÔö³¤£¬×îºóϵͳ̱»¾£¬ÄÇôÈç
ºÎ×î¿ì×îºÃµÄ¼ì²â³ÌÐòµÄÎȶ¨ÐÔ£¬·Àֹϵͳ±ÀÅÌ£¬×÷ÕßÓÃ×ÔÒѵÄÇ×Éí¾­ÀúÓë¸÷λÍøÓÑ·ÖÏí½â¾öÕâЩÎÊÌâµÄ°ì·¨¡£
   
×÷ΪInternet×îÁ÷Ðеı ......

Javaµ÷ÓÃSQL ServerµÄ´æ´¢¹ý³ÌÏê½â

1ʹÓò»´ø²ÎÊýµÄ´æ´¢¹ý³Ì
¡¡¡¡Ê¹Óà JDBC Çý¶¯³ÌÐòµ÷Óò»´ø²ÎÊýµÄ´æ´¢¹ý³Ìʱ£¬±ØÐëʹÓà call SQL תÒåÐòÁС£²»´ø²ÎÊýµÄ call תÒåÐòÁеÄÓï·¨ÈçÏÂËùʾ£º
¡¡¡¡
ÒÔÏÂÊÇÒýÓÃƬ¶Î£º
{call procedure-name}
¡¡¡¡×÷ΪʵÀý£¬ÔÚ SQL Server 2005 AdventureWorks ʾÀýÊý¾Ý¿âÖд´½¨ÒÔÏ´洢¹ý³Ì£º
¡¡¡¡
ÒÔÏÂÊÇÒýÓÃƬ¶Î£º ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ