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

javaÖÐÀ¬»ø»ØÊÕ»úÖÆ(gc)

ÔÚjavaÓïÖÐGC
    ¼´À¬»øÊÕ¼¯»úÖÆÊÇÖ¸jvmÓÃÓÚÊÍ·ÅÄÇЩ²»ÔÙʹÓõĶÔÏóËùÕ¼ÓõÄÄÚ´æ¡£javaÓïÑÔ²¢²»ÒªÇójvmÓÐgc£¬Ò²Ã»Óй涨gcÈçºÎ¹¤×÷¡£²»¹ý³£ÓõÄjvm¶¼ÓÐgc£¬¶øÇÒ´ó¶àÊýgc¶¼Ê¹ÓÃÀàËƵÄËã·¨¹ÜÀíÄÚ´æºÍÖ´ÐÐÊÕ¼¯²Ù×÷¡£
    À¬»øÊÕ¼¯µÄÄ¿µÄÔÚÓÚÇå³ý²»ÔÙʹÓõĶÔÏó¡£gcͨ¹ýÈ·¶¨¶ÔÏóÊÇ·ñ±»»î¶¯¶ÔÏóÒýÓÃÀ´È·¶¨ÊÇ·ñÊÕ¼¯¸Ã¶ÔÏó¡£gcÊ×ÏÈÒªÅжϸöÔÏóÊÇ·ñÊÇʱºò¿ÉÒÔÊÕ¼¯¡£Á½ÖÖ³£Óõķ½·¨ÊÇÒýÓüÆÊýºÍ¶ÔÏóÒýÓñéÀú¡£
1.1.ÒýÓüÆÊý
ÒýÓüÆÊý´æ´¢¶ÔÌض¨¶ÔÏóµÄËùÓÐÒýÓÃÊý£¬Ò²¾ÍÊÇ˵£¬µ±Ó¦ÓóÌÐò´´½¨ÒýÓÃÒÔ¼°ÒýÓó¬³ö·¶Î§Ê±£¬jvm±ØÐëÊʵ±Ôö¼õÒýÓÃÊý¡£µ±Ä³¶ÔÏóµÄÒýÓÃÊýΪ0ʱ£¬±ã¿ÉÒÔ½øÐÐÀ¬»øÊÕ¼¯¡£
1.2.¶ÔÏóÒýÓñéÀú
ÔçÆÚµÄjvmʹÓÃÒýÓüÆÊý£¬ÏÖÔÚ´ó¶àÊýjvm²ÉÓöÔÏóÒýÓñéÀú¡£¶ÔÏóÒýÓñéÀú´ÓÒ»×é¶ÔÏó¿ªÊ¼£¬ÑØ×ÅÕû¸ö¶ÔÏóͼÉϵÄÿÌõÁ´½Ó£¬µÝ¹éÈ·¶¨¿Éµ½´ï£¨reachable£©µÄ¶ÔÏó¡£Èç¹ûij¶ÔÏó²»ÄÜ´ÓÕâЩ¸ù¶ÔÏóµÄÒ»¸ö£¨ÖÁÉÙÒ»¸ö£©µ½´ï£¬Ôò½«Ëü×÷ΪÀ¬»øÊÕ¼¯¡£ÔÚ¶ÔÏó±éÀú½×¶Î£¬gc±ØÐë¼ÇסÄÄЩ¶ÔÏó¿ÉÒÔµ½´ï£¬ÒÔ±ãɾ³ý²»¿Éµ½´ïµÄ¶ÔÏó£¬Õâ³ÆΪ±ê¼Ç£¨marking£©¶ÔÏó¡£
È»ºó£¬gcҪɾ³ý²»¿Éµ½´ïµÄ¶ÔÏó¡£É¾³ýʱ£¬ÓÐЩgcÖ»ÊǼòµ¥µÄɨÃè¶ÑÕ»£¬É¾³ýδ±ê¼ÇµÄ¶ÔÏ󣬲¢ÊÍ·ÅËüÃǵÄÄÚ´æÒÔÉú³ÉеĶÔÏó£¬Õâ½Ð×öÇå³ý£¨sweeping£©¡£ÕâÖÖ·½·¨µÄÎÊÌâÔÚÓÚÄÚ´æ»á·Ö³ÉºÃ¶àС¶Î£¬¶øËüÃDz»×ãÒÔÓÃÓÚеĶÔÏ󣬵«ÊÇ×éºÏÆðÀ´È´ºÜ´ó¡£Òò´Ë£¬Ðí¶àgc¿ÉÒÔÖØÐÂ×éÖ¯ÄÚ´æÖеĶÔÏ󣬲¢½øÐÐѹËõ£¨compact£©£¬ÐγɿÉÀûÓõĿռ䡣
Ϊ´Ë£¬gcÐèҪֹͣÆäËûµÄ»î¶¯»î¶¯¡£ÕâÖÖ·½·¨Òâζ×ÅËùÓÐÓëÓ¦ÓóÌÐòÏà¹ØµÄ¹¤×÷Í£Ö¹£¬Ö»ÓÐgcÔËÐС£½á¹û£¬ÔÚÏìÓ¦ÆÚ¼äÔö¼õÁËÐí¶à»ìÔÓÇëÇó¡£ÁíÍ⣬¸ü¸´Ô gc²»¶ÏÔö¼Ó»òͬʱÔËÐÐÒÔ¼õÉÙ»òÕßÇå³ýÓ¦ÓóÌÐòµÄÖжϡ£ÓеÄgcʹÓõ¥Ïß³ÌÍê³ÉÕâÏ×÷£¬ÓеÄÔò²ÉÓöàÏß³ÌÒÔÔö¼ÓЧÂÊ¡£
¼¸ÖÖÀ¬»ø»ØÊÕ»úÖÆ
2.1.±ê¼Ç£­Çå³ýÊÕ¼¯Æ÷
ÕâÖÖÊÕ¼¯Æ÷Ê×ÏȱéÀú¶ÔÏóͼ²¢±ê¼Ç¿Éµ½´ïµÄ¶ÔÏó£¬È»ºóɨÃè¶ÑÕ»ÒÔÑ°ÕÒδ±ê¼Ç¶ÔÏó²¢ÊÍ·ÅËüÃǵÄÄÚ´æ¡£ÕâÖÖÊÕ¼¯Æ÷Ò»°ãʹÓõ¥Ï̹߳¤×÷²¢Í£Ö¹ÆäËû²Ù×÷¡£
2.2.±ê¼Ç£­Ñ¹ËõÊÕ¼¯Æ÷
ÓÐʱҲ½Ð±ê¼Ç£­Çå³ý£­Ñ¹ËõÊÕ¼¯Æ÷£¬Óë±ê¼Ç£­Çå³ýÊÕ¼¯Æ÷ÓÐÏàͬµÄ±ê¼Ç½×¶Î¡£ÔÚµÚ¶þ½×¶Î£¬Ôò°Ñ±ê¼Ç¶ÔÏó¸´ÖƵ½¶ÑÕ»µÄÐÂÓòÖÐÒÔ±ãѹËõ¶ÑÕ»¡£ÕâÖÖÊÕ¼¯Æ÷ҲֹͣÆäËû²Ù×÷¡£
2.3.¸´ÖÆÊÕ¼¯Æ÷
ÕâÖÖÊÕ¼¯Æ÷½«¶ÑÕ»·ÖΪÁ½¸öÓò£¬³£³ÆΪ°ë¿Õ¼ä¡£Ã¿´Î½öʹÓÃÒ»°ëµÄ¿Õ¼ä£¬jvmÉú³ÉµÄжÔÏóÔò·ÅÔÚÁíÒ»°ë¿Õ¼äÖС£gcÔËÐÐʱ£¬Ëü°Ñ¿Éµ½´ï¶ÔÏó¸´ÖƵ½ÁíÒ»°ë¿Õ¼ä£¬´Ó¶øѹËõÁ˶ÑÕ»¡£ÕâÖÖ·½·


Ïà¹ØÎĵµ£º

javaÄÚ´æй¶

ºÜ¶àÈËÔÚ̸ÂÛÄÚ´æй¶ÎÊÌ⣬µ±È»¶ÔÓÚc/c++À´Ëµ£¬Õâ¸öÓ¦¸ÃÊÇÀϵôÑÀµÄÎÊÌ⣬µ«ÊǺܶàJavaÈËÔ±Ò²Ô½À´Ô½¶àµÃÌÖÂÛÕâ¸öÎÊÌ⣬ÎÒÕâÀïд¸öС½á£¬Ï£Íû¶Ô´ó¼ÒÓÐÒ»¶¨µÄ²Î¿¼¼ÛÖµ¡£
¡¡¡¡ÄÚ´æй©µÄ¿®Äî
¡¡¡¡1.c/c++ÊdzÌÐòÔ±×Ô¼º¹ÜÀíÄڴ棬JavaÄÚ´æÊÇÓÉGC×Ô¶¯»ØÊյġ£
¡¡¡¡ÎÒËäÈ»²»ÊǺÜÊìϤC++£¬²»¹ýÕâ¸öÓ¦¸ÃûÓз¸³£Ê¶ÐÔ´íÎó°É¡£
¡¡¡ ......

java¶ÔmysqlÊý¾Ý¿âµÄµ¼Èëµ¼³ö

//µ¼³ö
String mysql="mysqldump -uroot -proot  --opt databasename > d:/test.sql";    
java.lang.Runtime.getRuntime().exec("cmd /c "+mysql);   
//µ¼Èë
String mysql="mysqladmin -uroot -proot create databasename";    
java.lang.Runt ......

javaѧϰ×ÊÁÏÕ¾

1¡¢ http://java.sun.com/ ;;(Ó¢ÎÄ)
SunµÄJavaÍøÕ¾£¬ÊÇÒ»¸öÓ¦¸Ã¾­³£È¥¿´µÄµØ·½¡£²»Óöà˵¡£
2¡¢ http://www-900.ibm.com/developerWorks/cn/ ;;
IBMµÄdeveloperWorksÍøÕ¾£¬Ó¢ÓïºÃµÄÖ±½ÓÈ¥Ó¢ÎÄÖ÷Õ¾µã¿´¡£ÕâÀï²»µ«ÊÇÒ»¸ö¼«ºÃµÄÃæÏò¶ÔÏóµÄ·ÖÎöÉè¼ÆÍøÕ¾£¬Ò²ÊÇWeb Services£¬Java£¬Linux¼«ºÃµÄÍøÕ¾¡£Ç¿ÁÒÍƼö£¡£¡£¡
3¡¢ h ......

IBM Java ÃæÊÔÌâ

1.what is oracle.
2.what is major differenece oracle8i and oracle9i.
4.tell me some thing ur self.
5.please tell me about oops.
6.what is single inheritance.
7.what is multiple inheritance.
8.can java support multiple inheritance.
9.what is interface.
10.what is differenec between abstract c ......

Java CorbaʵÀý £¨Ô­×÷Õߣº×ÏϪ£©

ÕâƪÎÄÕºÍSUN¹«Ë¾ÌṩµÄ½Ì³ÌÀàËÆ£¬Öмä¶àÁËÒ»¸öHelloImplµÄjavaÎļþ£¬±àÒëʱµÄÃüÁîÒ²¾ÍÓÐËù²»Í¬ÁË
Ô­À´µÄÃüÁîΪ£ºServer  javac HelloServer.java HelloApp/*.java
                        ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ