java thread volatile Àí½â
Java ThreadÓÐÒ»¸ö volatile¹Ø¼ü×Ö£¬Ö÷ÒªÓÃÀ´·ÀÖ¹¶àÏ̷߳ÃÎʹ«¹²±äÁ¿£¬²»Äܼ°Ê±±»ÆäËüÏß³ÌÕýÈ··ÃÎÊ, ¶øÔì³ÉµÄ²»Í¬²½ÎÊÌâ¡£
±ÈÈçThreadA ºÍThreadB ͬʱ·ÃÎÊÒ»¸ö int a = 0; ²¢ÇÒÐ޸ģ¬
¿ÉÄÜ»áÔì³É ThreadA ÐÞ¸Äa±äÁ¿ºó£¬ThreadB·ÃÎÊa±äÁ¿»¹ÊÇÔÀ´µÄÖµ¡£
Òò´ËÒª¼ÓÉÏ volatile int a = 0;
¶àÏß³ÌÆäʵÊÇcpuÄóöÒ»µã×ÊÔ´µ¥¶ÀÈ¥×öÁíÍâһЩÊÂÇ飬Ï̻߳á°ÑһЩ±äÁ¿·Åµ½Ò»¸öС¼Ä´æÆ÷ÖÐ,
ÕâÑù·ÃÎÊÊý¾ÝµÄ£¬²»ÄÜÂíÉϸüÐÂͬ²½µ½ÄÚ´æÖÐÈ¥¡£Òò´Ë¼ÓÉÏvolatile £¬ÈÃËùÓеÄÏ̶߳¼·ÃÎÊͬһ¸öµØ·½£¬ÕâÑùÊý¾Ý¶¼»áͬ²½¡£µ«ÐÔÄÜϽµÁË(MS¶¼Ö±½Ó·ÃÎÊÄÚ´æ)¡£
Ïà¹ØÎĵµ£º
create PROCEDURE pagelist
@tablename nvarchar(50),
@fieldname nvarchar(50)='*',
@pagesize int output,--ÿҳÏÔʾ¼Ç¼ÌõÊý
@currentpage int output,--µÚ¼¸Ò³
@orderid nvarchar(50),--Ö÷¼üÅÅÐò
@sort int,--ÅÅÐò·½Ê½£¬1±íʾÉýÐò£¬0±íʾ½µÐòÅÅÁÐ
......
¾àÀëJava7µÄMR°æ±¾·¢²¼ÓжÎʱ¼äÁË£¬Í¨¹ý°²×°ÊÔÓÃÖ®ºóµÄ×ÜÌå¸Ð¾õÊÇ£ºËÙ¶ÈÓÖ¿ìÁË¡£×ÐϸÔĶÁÁËJava7µÄÏà¹ØÎĵµ·¢ÏÖ£¬Java7ÓµÓÐÈçϵÄһЩеÄÌØÐÔ¡£
Ê×ÏÈÊÇÄ£¿é»¯ÌØÐÔ£ºÈç¹ûÄú°²×°ºÍʹÓùýNetBeans6.7µÄ»°£¬ÊDz»ÊÇ»áÓÐÒ»¸öºÜ´óµÄ¸Ð¾õ£¬¾ÍÊÇNetBeans6.7µÄÆô¶¯ËٶȱÈÒÔǰ¿ìÁ˺ܶ࣬µ±È»²¢²»ÊÇNetBeansÒѾʹÓÃÁËJava7£¬¶øÊÇNetB ......
½áºÏDelphi
¿Í»§¶Ë×ÀÃæ¿ª·¢µÄÓÅÊÆºÍJavaµÄÎȽ¡Ç¿×³ÌØÐÔ£¬²ÉÓÃDelphi
Client + Java ServerµÄϵͳ¼Ü¹¹Ó¦¸ÃÊǺÜÓÐÊг¡µÄ£¬¾¹ýÒ»¶Îʱ¼äµÄʵ¼ÊÏîĿʵ¼ù£¬ÊµÏּܹ¹ÊÇÕâôʵÏֵ쬹©ÌÖÂÛ£º
1.ºǫ́ӦÓ÷þÎñ²ã¿É²ÉÓûùÓÚSpring+HibernateµÄÇáÁ¿¼¶J2EEʵÏÖ£¬²¢Ê¹ÓÃApache XML-RPC
Ìṩ¿Í»§¶Ëµ÷Óýӿڣ»
2.ǰ̨²ÉÓà Delphi
......
First
Parsing an XML Document
To read an XML document, you need a DocumentBuilder object, which you get from a DocumentBuilderFactory, like this:DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
DocumentBuilder builder = factory.newDocumentBuilder();
You can now read a docu ......
JavaÖУ¬Jniµ÷ÓÃDLLÎļþÊÔÑé
ËùÓÐÎļþ¾ùÔÚE:\·¾¶Ï¡£
°²×°jdk1.6.0_07
°²×°ÁËVC++6.0
µÚÒ»²½£¬
HelloWorld.java
µÚ¶þ²½£¬
E:\>javac HelloWorld.java
µÃµ½
HelloWorld.class
µÚÈý²½£¬
E:\>javah HelloWorld
µÃµ½
HelloWorld.h
µÚËIJ½£¬
±àдһ¸öCÎļþ
HelloWorldImp.c
µÚÎå²½£¬
ʹÓÃcl±àÒ ......