javaµÄÔ×Ó²Ù×÷ºÍvolatile
Ô×Ó²Ù×÷
ËùνÔ×Ó²Ù×÷,¾ÍÊÇ"²»¿ÉÖжϵÄÒ»¸ö»òһϵÁвÙ×÷" , ÔÚÈ·ÈÏÒ»¸ö²Ù×÷ÊÇÔ×ÓµÄÇé¿öÏ£¬¶àÏ̻߳·¾³ÀïÃ棬ÎÒÃÇ¿ÉÒÔ±ÜÃâ½ö½öΪ±£»¤Õâ¸ö²Ù×÷ ÔÚÍâΧ¼ÓÉÏÐÔÄÜ°º¹óµÄËø£¬ÉõÖÁ½èÖúÓÚÔ×Ó²Ù×÷£¬ÎÒÃÇ¿ÉÒÔʵÏÖ»¥³âËø¡£ ¹ØÓÚjavaÖеÄÔ×ÓÐÔ
Ô×ÓÐÔ¿ÉÒÔÓ¦ÓÃÓÚ³ýlongºÍdoubleÖ®ÍâµÄËùÓлù±¾ÀàÐÍÖ®Éϵġ°¼òµ¥²Ù×÷¡±¡£¶ÔÓÚ¶ÁÈ¡ºÍдÈë³ölongºÍdoubleÖ®ÍâµÄ»ù±¾ÀàÐͱäÁ¿ÕâÑùµÄ²Ù×÷ £¬¿ÉÒÔ±£Ö¤ËüÃǻᱻµ±×÷²»¿É·Ö£¨Ô×Ó£©µÄ²Ù×÷À´²Ù×÷¡£ volatile
µ±ÎÒÃǶ¨ÒåÒ»¸ö±äÁ¿£¬¼ÙÉè¾Í½Ðo°É£¬ÀíÂÛÉϽ²£¬Ã¿´ÎʹÓõ½oµÄʱºò£¬¶¼Ó¦¸Ã´ÓoµÄµØÖ·À´¶ÁÈ¡Õâ¸ö±äÁ¿£¬µ«ÊÇÕâ´æÔÚÒ»¸öЧÂÊÎÊÌ⣬¾ÍÊÇÿ´Î ʹÓÃoµÄʱºò¶¼Òª´ÓÄÚ´æÖÐȥȡֵ£¬È»ºóͨ¹ýϵͳ×ÜÏß´«µ½CPU´¦Àí£¬ÕâÑù¿ªÏú»áºÜ´ó¡£ËùÒÔ±àÒëÆ÷ΪÁËÓÅ»¯ÐÔÄÜ£¬°Ño·Å½øCPUµÄCacheÖУ¬¼ÙÈç oÔÚ¸³ÖµÆÚ¼äûÓб»¸Ä±ä£¬¾ÍÖ±½Ó´ÓCPUµÄCacheÀïÈ¡oµÄ¸±±¾À´½øÐи³Öµ¡£µ«ÊÇ"bug"Ò²ÏÔ¶øÒ×¼û£¬¿ÉÄÜoÒѾ±»Ò»¸öÏ̸߳ıä¶øÖØÐÂд»ØÁËÄÚ´æ £¬µ«ÁíÒ»¸öÏ̲߳¢²»ÖªµÀ£¬ÒÀ¾É°´ÕÕÔÀ´µÄ¼Æ»®´ÓCPUµÄCacheÀï¶ÁoµÄ¸±±¾À´È¡Öµ£¬½á¹û²»ÐÒ·¢ÉúÁË¡£ ÓÚÊDZàÒëÆ÷µÄ¿ª·¢ÕßΪÁ˲¹¾ÈÕâÒ»"bug"£¬ÌṩÁËÒ»¸övolatileÈÿª·¢ÈËԱΪËûÃǵĹýʧÂñµ¥£¬»òÕß˵Ìṩ¸ø¿ª·¢ÈËÔ±ÁËÒ»¸öÑ¡ÔñЧÂʵÄȨÀû¡£ µ±±äÁ¿¼ÓÉÏÁËvolatileʱ£¬±àÒëÆ÷¾ÍÀÏÀÏʵʵµÄÿ´Î¶¼´ÓÄÚ´æÖжÁÈ¡Õâ¸ö±äÁ¿Öµ£¬·ñÔò¾Í»¹°´ÕÕÓÅ»¯µÄ·½°¸´ÓcacheÀï¶Á¡£ ÔÚÁ½¸ö»òÕ߸ü¶àµÄÏ̷߳ÃÎʵijÉÔ±±äÁ¿ÉÏʹÓÃvolatile½ÏºÃ£¬µ±Òª·ÃÎʵıäÁ¿ÒÑÔÚsynchronized´úÂë¿éÖУ¬»òÕßΪ³£Á¿Ê±£¬²»±ØʹÓá£
Ïà¹ØÎĵµ£º
create PROCEDURE pagelist
@tablename nvarchar(50),
@fieldname nvarchar(50)='*',
@pagesize int output,--ÿҳÏÔʾ¼Ç¼ÌõÊý
@currentpage int output,--µÚ¼¸Ò³
@orderid nvarchar(50),--Ö÷¼üÅÅÐò
@sort int,--ÅÅÐò·½Ê½£¬1±íʾÉýÐò£¬0±íʾ½µÐòÅÅÁÐ
......
JavaºÍÆäËûÓïÑÔ²»Í¬µÄÊÇ£¬JavaÊÇÔËÐÐÓÚJavaÐéÄâ»ú(JVM)¡£Õâ¾ÍÒâζ×űàÒëºóµÄ´úÂëÊÇÒÔ
Ò»ÖÖºÍƽ̨Î޹صĸñʽ±£´æµÄ£¬¶ø²»ÊÇijÖÖÌض¨µÄ»úÆ÷ÉÏÔËÐеĸñʽ¡£ÕâÖÖ¸ñʽºÍ´«Í³µÄ¿É
Ö´ÐдúÂë¸ñʽÓкܶàÖØÒªµÄÇø±ð¡£¾ßÌåÀ´Ëµ£¬²»Í¬ÓÚC»òÕߣÃ++³ÌÐò£¬Java³ÌÐò²»ÊÇÒ»¸ö¶À
Á¢µÄ¿ÉÖ´ÐÐÎļ ......
µÚ¶þÖÖ¼òµ¥µÄ·½·¨¾ÍÊÇ,ÔÚhttp://proguard.sourceforge.net/ÏÂÔØZIP°ü.×îеÄÊÇ4.5BETA
½âѹËõºó,Ë«»÷proguardgui.jar
ÔËÐÐÈí¼þ
×îɵ¹ÏµÄÉèÖ÷½·¨:ÉèÖúÃINPUT/OUTPUT,µãPROCESS.½á¹û¾Í³öÀ´ÁË.
Éú³ÉÁË.a.class.b.class ÓÃJAD·´±àÒë,JADÌáʾ:²»ÄÜÍêÕûµÄ·´±àÒë....,´ò¿ª±àÒëºóµÄ´úÂë±äÁ¿ºÍº¯ÊýÃûÈ«²¿±»Ì ......
µ±spider³ÌÐò·ÃÎʵ½Ò»¸öÍøÒ³£¬±ØÐë½øÐÐÒÔϼ¸Ïî»ù±¾´¦Àí£º³éÈ¡ÍøÒ³Öаüº¬µÄÎı¾;³éÈ¡ÍøÒ³Öаüº¬µÄURL£¬²¢½«ÆäÇø·ÖΪÍøÒ³Öаüº¬µÄÎı¾£»³éÈ¡ÍøÒ³Öаüº¬µÄURL£¬²¢½«ÆäÇø·ÖΪÍøÕ¾ÄÚURL»òÍøÕ¾ÍâURL¡£
2.2¸÷Ö÷Òª¹¦ÄÜ Ä£¿é£¨ÀࣩÉè¼Æ
2.2.1 spiderÀà
¸ÃÀàΪÖ÷À࣬¼Ì³Ð×ÔÏß³ÌÀà¡£Ëü±¾Ê²¢²»×ö»ñÈ¡ÍøÒ³µÄ¾ßÌå ......
Ò». ¿´Ò»¶ÎÈßÓàµÄ´úÂë
public String login(HttpServletRequest request){
OperatorService operatorService = new OperatorService();
WebContext webContext= request.getSession().getAttribute("WEB_CONTEXT_KEY");
Connection conn=null;
try{
Cone ......