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

JAVA NIO ÖÐÎÄ1

 
If the requested address is not a valid virtual memory address (it doesn't belong to any of
the memory segments of the executing process), the page cannot be validated, and
a segmentation fault is generated. This vectors control to another part of the kernel and
usually results in the process being killed.
Èç¹û±»ÇëÇóµÄµØÖ·²»ÊÇÒ»¸öÓÐЧÐéÄâÄÚ´æµØÖ·£¨Ëü²»ÊôÓÚÈκε±Ç°½ø³ÌµÄÄÚ´æ¶ÎÖУ©£¬ÔòÒ³²»Äܱ»È·ÈÏ£¬Ò»¸ö¶Î´íÎó»á±»Éú³É¡£¿ØÖƻᱻתÒƵ½Äں˵ıðµÄ²¿·Ö£¬³£³£µ¼Ö½ø³Ì±»É±ËÀ
Once the faulted page has been made valid, the MMU is updated to establish the new virtualto-
physical mapping (and if necessary, break the mapping of the stolen page), and the user
process is allowed to resume. The process causing the page fault will not be aware of any of
this; it all happens transparently.
Ò»µ©Ò³´íÎó±»È·ÈÏÓÐЧ£¬MMU¾Í»á¸üУ¬°ÑеÄÐéÄâ-ÎïÀíÓ³Éä¼ûÁËÆðÀ´£¨Èç¹û±ØÐ룬°Ñ±»ÍµµÄÒ³ÃæµÄÓ³Éäµ·»Ù£©£¬È»ºóÓû§½ø³Ì¾Í±»ÔÊÐí¼ÌÐøÁË¡£µ¼ÖÂÁËÒ³´íÎóµÄ½ø³Ì¶Ô´ËÒ»ÎÞËùÖª£¬¶ÔËü¶øÑÔÕâЩÊÇ͸Ã÷µÄ¡£
This dynamic shuffling of memory pages based on usage is known as demand paging. Some
sophisticated algorithms exist in the kernel to optimize this process and to prevent thrashing, a
pathological condition in which paging demands become so great that nothing else can get
done.
Õâ¸ö¶¯Ì¬»ùÓÚʹÓõÄÄÚ´æ²½·¨±»³Æ×÷°´Ðè·ÖÒ³¡£ÄÚºËÖÐһЩÀϵ½µÄËã·¨»áÓÅ»¯Õâ¸ö¹ý³Ì·ÀֹŹ´ò£¨Ì«±¯²ÒÁË£¬ÏµÍ³³ÌÐòÔ±ÈÕ×Ó°µÎÞÌìÈÕ°¡£©
£¬Ö¸Ò»¸öÎÞ·¨¿ØÖƵÄÇé¿öÏ£¬Ò³ÇëÇó±äµÃÌ«´óÒÔÖÁÓÚ¿¨ËÀÁË¡£
1.4.4 File I/O
File I/O occurs within the context of a filesystem. A filesystem is a very different thing from a
disk. Disks store data in sectors, which are usually 512 bytes each. They are hardware devices
that know nothing about the semantics of files. They simply provide a number of slots where
data can be stored. In this respect, the sectors of a disk are similar to memory pages; all are of
uniform size and are addressable as a large array.
1.4.4 Îļþ I/O
ÎļþI/O·¢ÉúÔÚÎļþϵͳÉÏÏÂÎÄÖС£Ò»¸öÎļþϵͳºÍ´ÅÅÌÊǷdz£²»Ò»ÑùµÄ¶«¶«¡£´ÅÅÌ°ÑÊý¾Ý´æÔÚÉ


Ïà¹ØÎĵµ£º

Java_Ïß³Ì×ܽá

 ×ªÖÁ£ºhttp://sllereak.blog.163.com/blog
--ʲôÊÇÏß³Ì
 *Ïß³ÌÊÇÒ»¸ö³ÌÐòÀïÃ治ͬµÄÖ´Ðз¾¶
 *³ÌÐòÖ´ÐÐÔÚͬһʱ¼äÀïÃ棬ÿһ¸öÖ´ÐеķÖÖ§¾ÍÊÇÒ»¸öÏß³Ì
 *Ò»¸ö³ÌÐòµÄMain()·½·¨ÖеÄÖ´ÐÐÏß·³ÆΪ³ÌÐòµÄÖ÷Ïß³Ì
--½ø³ÌºÍÏß³Ì
 *½ø³ÌÊÇÒ»¸ö¾²Ì¬µÄ¸ÅÄµ±´úÂë±»javaÐéÄâ»ú¼ÓÔص½code segmentÖ ......

JAVAÖÐÕýÔò±í´ïʽµÄÓ¦ÓÃ2

 public static void main(String[] args)
    {
        InputStream is = CommonUtil.getStream("http://wz.csdn.net/");
        String regex = "(?<=href=\")[^\"]*";//²éÕÒÍøÒ³ÖÐËù ......

JavaÁ¬½Ó¸÷ÖÖÊý¾Ý¿â

´ËÎÄÖеĴúÂëÖ÷ÒªÁгöÁ¬½ÓÊý¾Ý¿âµÄ¹Ø¼ü´úÂ룬ÆäËû·ÃÎÊÊý¾Ý¿â´úÂëÊ¡ÂÔ
¡¡¡¡1¡¢Oracle8/8i/9iÊý¾Ý¿â£¨thinģʽ£©
¡¡¡¡¡¡¡¡Class.forName("oracle.jdbc.driver.OracleDriver").newInstance();
¡¡¡¡¡¡¡¡String url="jdbc:oracle:thin:@localhost:1521:orcl";
¡¡¡¡¡¡¡¡//orclΪÊý¾Ý¿âµÄSID
¡¡¡¡¡¡¡¡String user="test";
¡ ......

ÂÔÂÛ»ùÓÚJAVA/JSPµÄÍøÉÏÊéµêϵͳ

¡¾ÕªÒª
JAVAÓïÑÔÊÇÄ¿Ç°InternetÉÏ´óÐ͵ÄWEBÓ¦ÓóÌÐò¿ª·¢Ê±Ê¹ÓõÃ×îÈÈÃŵıà³ÌÓïÑÔ£¬±¾ÎÄÃèÊöÁËJAVAºÍJSP¼¼ÊõµÄÌØÕ÷ÒÔ¼°ÔÚ»¥ÁªÍøÉϵÄʹÓÃÇé¿ö£¬½éÉÜÕâÁ½ÖÖ¼¼ÊõµÄÖØÒª±à³Ì·½·¨ºÍÁ½ÕßÖ®¹ØµÄÁªÏµ£¬²¢Íê³ÉÒ»¸ö»ùÓÚÕâÖÖ¼¼ÊõµÄÍøÉÏÊéµêϵͳ¡£
¡¾¹Ø¼ü×ÖJAVA, JavaBeans, Servlet, JSP, ÍøÂç±à³Ì, µç×ÓÉÌÎñ, ÍøÉÏÊéµê
Abstract
A ......

Java¶ÁÈ¡´óÎļþ

Óöµ½¹ýÕâÑùÒ»¸öÇé¿ö£¬ÐèÒªÓÃjava¶ÁÈ¡Ò»¸ö200MµÄÎı¾¸ñʽÎļþ£¬¶øÇÒ»¹ÐèÒª¶ÔÎļþµÄÄÚÈÝ×ö½âÎö£¬½øÐзִʡ£Èç¹ûÓÃJVMµÄĬ
ÈÏÉèÖã¬ÀûÓÃScannerÀàÖ»ÄܶÁ³ö4M´óСÄÚÈÝ£¬ÓÚÊÇÎÒ¾ÍÔÚÍøÉÏËÑË÷£¬µ«ÊÇÍøÉÏûÓÐÕÒµ½Ò»ÆªÎÄÕÂÊÇÎÒËùÐèÒªµÄÄÚÈÝ¡£ÓÚÊÇÎÒÖ»ºÃ·­thinking
in
java£¬·¢ÏÖÁËÒ»¸öjavaµÄnioÀïÓиöMappedByteBufferÀ࣬ËûµÄ×÷Ó ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ