JAVA Ö®"Ïß³Ì"
1¡¢½ø³ÌÓëỊ̈߳º
¡¶1¡·Ê²Ã´Êǽø³Ì£ºÊÇÖ¸ÔËÐÐÖеÄÓ¦ÓóÌÐò£¬Ã¿Ò»¸ö½ø³Ì¶¼ÓÐ×Ô¼º¶ÀÁ¢µÄÄÚ´æ¿Õ¼ä£¬
Ò»¸öÓ¦ÓóÌÐò¿ÉÒÔͬʱÆô¶¯¶à¸ö½ø³Ì£¬(¾²Ì¬)±ÈÈ磨IE£¬JVM£©
¡¶2¡·Ê²Ã´ÊÇỊ̈߳ºÊÇÖ¸½ø³ÌÖеÄÒ»¸öÖ´ÐÐÁ÷³Ì£¬ÓÐʱÓгÆ֮ΪִÐÐÇé¾°£¬
Ò»¸ö½ø³ÌÓжà¸öÏß³Ì×é³É(¶¯Ì¬)
¡¶3¡·½ø³ÌÓëÏ̵߳ÄÖ÷ÒªÇø±ð£º
ÿ¸ö½ø³Ì¶¼ÐèÒª²Ù×÷ϵͳΪÆä·ÖÅä¶ÀÁ¢µÄÄÚ´æµØÖ·¿Õ¼ä£¬
¶øͬһ½ø³ÌÖеÄËùÓÐÏß³ÌÔÚͬһ¿éµØÖ·¿Õ¼äÖй¤×÷£¬
ÕâЩÏ߳̿ÉÒÔ¹²Ïíͬ Ò»¿éÄÚ´æºÍϵͳ×ÊÔ´
2¡¢Ï̵߳Ĵ´½¨(Á½ÖÖ·½Ê½)£º
¡¶1¡·¼Ì³ÐThreadÀࣨһ°ãÔÚ²»¼Ì³ÐÆäËûÀàµÄÇé¿öÏ£©
¡¶2¡·ÊµÏÖRunnable½Ó¿Ú£¨Ò»°ãÔڼ̳ÐÆäËûÀàµÄÇé¿öÏ£©
3¡¢Ï̴߳´½¨µÄ²½Öè:
¡¶1¡·µÚÒ»ÖÖ
(1)×Ô¶¨ÒåÏß³ÌÀà¼Ì³ÐThreadÀࣻ
(2)¸²¸ÇThreadÀàÖеÄrun()·½·¨£»
(3)´´½¨¸ÃÏß³ÌÀà¶ÔÏó£»
(4)µ÷ÓøÃÏß³ÌÀà¶ÔÏóÖеÄstart()·½·¨Æô¶¯Ï̡߳£
¡¶2¡·µÚ¶þÖÖ
(1)×Ô¶¨ÒåÏß³ÌÀàʵÏÖRunnable½Ó¿Ú£»
(2)¸²¸ÇRunnable½Ó¿ÚÖеÄrun()·½·¨£»
(3)´´½¨¸ÃÏß³ÌÀà¶ÔÏó£»
(4)´´½¨Thread¶ÔÏ󣬹¹Ôì²ÎÊýΪ¸ÃÏß³ÌÀà¶ÔÏó£»
(5)µ÷ÓÃThread¶ÔÏóÖÐ
Ïà¹ØÎĵµ£º
Java NIO APIÏê½â
ÔÚJDK
1.4ÒÔÇ°£¬JavaµÄIO²Ù×÷¼¯ÖÐÔÚjava.ioÕâ¸ö°üÖУ¬ÊÇ»ùÓÚÁ÷µÄ×èÈû£¨blocking£©API¡£¶ÔÓÚ´ó¶àÊýÓ¦ÓÃÀ´Ëµ£¬ÕâÑùµÄAPIʹÓúܷ½
±ã£¬È»¶ø£¬Ò»Ð©¶ÔÐÔÄÜÒªÇó½Ï¸ßµÄÓ¦Óã¬ÓÈÆäÊÇ·þÎñ¶ËÓ¦Óã¬ÍùÍùÐèÒªÒ»¸ö¸üΪÓÐЧµÄ·½Ê½À´´¦ÀíIO¡£´ÓJDK 1.4Æð£¬NIO
API×÷Ϊһ¸ö»ùÓÚ»º³åÇø£¬²¢ÄÜÌṩ·Ç×èÈû(non-blo ......
public class Test {
public static void main(String args[]) {
int i;
int j;
for (i = 1; i <= 9; i++) {
for (j = 1; j <= i; j++) {
if (j * i <= 9)
System.out.print(j ......
ÆäʵÕÆÎÕ
MappedByteBuffer
²¢²»ÄÑ£¬Ö»Òª¼Çס“Èý·½Èý·¨ÈýÌØÐÔ”£¨ÎÒ×Ô¼º×ܽáµÄ£¬ºÇºÇ
~~
²»ÒªÈÓ¼¦µ°Å¶¡£¡£¡££©Õâ¾ä»°¾Í¿ÉÒÔÇáËɸ㶨£¡
MappedByteBuffer
Ö»ÊÇÒ»ÖÖÌØÊâµÄ
ByteBuffer
£¬¼´ÊÇ
ByteBuffer
µÄ×ÓÀà¡£
MappedByteBuffer
½«ÎļþÖ±½ÓÓ³Éäµ½Äڴ棨ÕâÀïµÄÄÚ´æÖ¸µÄÊÇÐéÄâÄڴ棬²¢² ......
TBCPMessageFactory.java
/**
* ÎļþÃû: TBCPMessageFactory.java
*/
package tbcpstack;
import java.text.MessageFormat;
import org.apache.log4j.Logger;
import TBCPException;
/**
*
* TODO TBCPÏûÏ¢¹¹½¨¹¤³§
*/
public class TBCPMessageFactory {
/**
* Logger for this class
......
ת×ÔInfoQ£¬×÷Õß Charles Humble ÒëÕß ÕÅÁú
±¾ÔÂ3ÈÕSunµÄJ2SE 5.0ʵÏÖÒÑÖÕ½á·þÎñÖÜÆÚ£¨End of Service Life£¬¼´EOSL£©£¬ÕâÒ»ÌìÒ²ÊÇ×îºóµÄÒ»´Î5.0¸üз¢²¼ÈÕÆÚ£¨J2SE 5.0 Update 22£©¡£Ñ°ÇóSunÖ§³ÖµÄÓû§¿ÉÒÔÑ¡ÔñÉý¼¶µ½Java 6»òÊǶ©ÔÄSunµÄJava for Business³ÌÐò¡£
SunÌṩÁ˶àÖÖ¶àÑùµÄJava¸¶·ÑÖ§³Ö¡£Java¾µäÖ§³Ö£ ......