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

LinuxÉ豸Çý¶¯³ÌÐò ÓëÓ²¼þͨÐÅ18051101072

I/O ¶Ë¿ÚºÍ I/O ÄÚ´æ
ÿÖÖÍâÉ趼ÊÇͨ¹ý¶Áд¼Ä´æÆ÷À´½øÐпØÖÆ¡£
ÔÚÓ²¼þ²ã£¬ÄÚ´æÇøºÍ I/O ÇøÓòûÓиÅÄîÉϵÄÇø±ð: ËüÃǶ¼ÊÇͨ¹ýÏòÔÚµØÖ·×ÜÏߺͿØÖÆ×ÜÏß·¢³öµçƽÐźÅÀ´½øÐзÃÎÊ£¬ÔÙͨ¹ýÊý¾Ý×ÜÏ߶ÁдÊý¾Ý¡£
ÒòΪÍâÉèÒªÓëI\O×ÜÏßÆ¥Å䣬¶ø´ó²¿·ÖÁ÷ÐÐµÄ I/O ×ÜÏßÊÇ»ùÓÚ¸öÈ˼ÆËã»úÄ£ÐÍ£¨Ö÷ÒªÊÇ x86 ¼Ò×壺ËüΪ¶ÁºÍд I/O ¶Ë¿ÚÌṩÁ˶ÀÁ¢µÄÏß·ºÍÌØÊâµÄ CPU Ö¸Á£¬ËùÒÔ¼´±ãÄÇЩûÓе¥¶ÀI/O ¶Ë¿ÚµØÖ·¿Õ¼äµÄ´¦ÀíÆ÷£¬ÔÚ·ÃÎÊÍâÉèʱҲҪģÄâ³É¶ÁдI\O¶Ë¿Ú¡£ÕâÒ»¹¦ÄÜͨ³£ÓÉÍâΧоƬ×飨PC ÖеÄÄϱ±ÇÅ£©»ò CPU Öеĸ½¼Óµç·ʵÏÖ£¨Ç¶ÈëʽÖеķ½·¨£© ¡£
Linux ÔÚËùÓеļÆËã»úƽ̨ÉÏʵÏÖÁË I/O ¶Ë¿Ú¡£µ«²»ÊÇËùÓеÄÉ豸¶¼½«¼Ä´æÆ÷Ó³Éäµ½
I/O ¶Ë¿Ú¡£ËäÈ»ISAÉ豸ÆÕ±éʹÓà I/O ¶Ë¿Ú£¬µ«´ó²¿·Ö PCI É豸Ôò°Ñ¼Ä´æÆ÷Ó³É䵽ij¸öÄÚ´æµØÖ·Çø£¬ÕâÖÖ I/O
ÄÚ´æ·½·¨Í¨³£ÊÇÊ×Ñ¡µÄ¡£ÒòΪËüÎÞÐèʹÓÃÌØÊâµÄ´¦ÀíÆ÷Ö¸ÁCPU
ºË·ÃÎÊÄÚ´æ¸üÓÐЧÂÊ£¬ÇÒ±àÒëÆ÷ÔÚ·ÃÎÊÄÚ´æʱÔڼĴæÆ÷·ÖÅäºÍѰַģʽµÄÑ¡ÔñÉÏÓиü¶à×ÔÓÉ¡£
I/O ¼Ä´æÆ÷ºÍ³£¹æÄÚ´æ
ÔÚ½øÈëÕⲿ·ÖѧϰµÄʱºò£¬Ê×ÏÈÒªÀí½âÒ»¸ö¸ÅÄside
effect£¬ÊéÖÐÒëΪ±ß¼ÊЧӦ£¬µÚ¶þ°æÒëΪ¸±×÷Óá£ÎÒ¾õµÃ²»¹ÜËüÊÇÔõô±»·­ÒëµÄ£¬¶¼²»¿ÉÄܾ«×¼±í´ïÔ­×÷ÕßµÄÒâ˼£¬ËùÒÔÎÒ¸öÈËÈÏΪ¼Çסside
effect¾ÍºÃ¡£ÏÂÃæÀ´½²½²side effectµÄº¬Òå¡£ÎÒÏÈÌù³öÁ½¸öÍøÉÏÒÑÓеÄÁ½ÖÖ˵·¨£¨ÔÚÕâÀïллÁ½Î»¸ßÈ˵ķÖÏí£©£º
µÚÒ»ÖÖ˵·¨£º
3. side effect£¨ÒëΪ±ß¼ÊЧӦ»ò¸±×÷Óã©£ºÊÇÖ¸¶Áȡij¸öµØַʱ¿ÉÄܵ¼Ö¸õØÖ·ÄÚÈÝ·¢Éú±ä»¯£¬±ÈÈ磬ÓÐЩÉ豸µÄÖжÏ״̬¼Ä´æÆ÷Ö»ÒªÒ»¶ÁÈ¡£¬±ã×Ô¶¯ÇåÁã¡£I/O¼Ä´æÆ÷µÄ²Ù×÷¾ßÓÐside effect£¬Òò´Ë£¬²»ÄܶÔÆä²Ù×÷²»ÄÜʹÓÃcpu»º´æ¡£
Ô­ÎÄÍøÖ·£º
http://qinbh.blog.sohu.com/62733495.html
µÚ¶þÖÖ˵·¨£º
˵һÏÂÎÒµÄÀí½â£ºI/O¶Ë¿ÚÓëʵ¼ÊÍⲿÉ豸Ïà¹ØÁª£¬Í¨¹ý·ÃÎÊI/O¶Ë¿Ú¿ØÖÆÍⲿÉ豸£¬“±ß¼ÊЧӦ”ÊÇÖ¸¿ØÖÆÉ豸£¨¶ÁÈ¡»òдÈ룩ÉúЧ£¬·ÃÎÊI/O¿ÚµÄ
Ö÷ҪĿµÄ¾ÍÊDZ߼ÊЧӦ£¬²»Ïñ·ÃÎÊÆÕͨµÄÄڴ棬ֻÊÇÔÚÒ»¸öλÖô洢»ò¶ÁÈ¡Ò»¸öÊýÖµ£¬Ã»ÓбðµÄº¬ÒåÁË¡£ÎÒÊÇ»ùÓÚARMƽ̨Àí½âµÄ£¬ÔÚ¡¶linuxÉ豸Çý¶¯³Ì
Ðò¡·µÚ¶þ°æÖеÄ˵·¨ÊÇ“¸±×÷ÓÔ£¬²»ÊÇ“±ß¼ÊЧӦ”¡£
Ô­ÎÄÍøÖ·£º
http://linux.chinaunix.net/bbs/viewthread.php?tid=890636&page=1#pid6312646
½áºÏÒÔÉÏÁ½ÖÖ˵·¨ºÍ×Ô¼º¿´¡¶LinuxÉ豸Çý¶¯³ÌÐò£¨µÚ3°æ£©¡·µÄÀí½â£¬ÎÒ¸öÈËÈÏΪ¿ÉÒÔÕâÑù½âÊÍ£º
side effect
ÊÇÖ¸£º·ÃÎÊI/O¼Ä´æÆ÷ʱ£¬²»½ö½ö»áÏñ·ÃÎÊÆÕͨÄ


Ïà¹ØÎĵµ£º

ʵսLinux Bluetooth±à³Ì£¨Èý£© HCI²ã±à³Ì

1. HCI²ãЭÒé¸ÅÊö£º
HCIÌṩһÌ×ͳһµÄ·½·¨À´·ÃÎÊBluetoothµ×²ã¡£ÈçͼËùʾ£º
´ÓͼÉÏ¿ÉÒÔ¿´³ö£¬Host Controller Interface(HCI)  ¾ÍÊÇÓÃÀ´¹µÍ¨HostºÍModule¡£Hostͨ³£¾ÍÊÇPC£¬ ModuleÔòÊÇÒÔ¸÷ÖÖÎïÀíÁ¬½ÓÐÎʽ£¨USB,serial,pc-cardµÈ£©Á¬½Óµ½PCÉϵÄbluetooth Dongle¡£
ÔÚHostÕâÒ»¶Ë£ºapplication,SDP,L2capµÈЭÒé ......

linuxÃüÁîÐУ¨Ò»£©

С¼¼ÇÉ£¬¶ÔÓÚlinuxÀÏÄñÀ´Ëµ²»Ö¹Ò»Ìᣬµ«ÊǶÔÓÚÎÒÕâÖÖÐÂÊÖ»¹ÓкÜÓаïÖúµÄ¡£
1. ÃüÁîÐеıðÃû£º
    sudo gedit ~/.bashrc
ÔÚ´ò¿ªµÄÎļþÖÐʹÓãºalias  ¼òдÃüÁî=“ÒªÌæ»»µÄÃüÁî”
È磺alias l=“ls -l”
       alias install=“sudo apt- ......

LinuxÏÂ×¢²áApacheΪϵͳ·þÎñ

vi /etc/rc.d/rc.local
Ôö¼Ó£º/usr/local/httpd/bin/apachectl start
2£º[×¢²áΪService]
cp /usr/local/httpd/bin/apachectl /etc/rc.d/init.d/httpd
vi httpd
ÕÒµ½£º#!/bin/sh
ÁíÆðÒ»ÐУ¬Ôö¼Ó£º
# chkconfig: 35 70 30
ÆäÖÐËùÔö¼ÓµÄµÚ¶þÐÐÖÐÈý¸öÊý×ÖµÚÒ»¸ö±íʾÔÚÔËÐ춱ð3ºÍ5ÏÂÆô¶¯apache£¬µÚ¶þ¡¢ÈýÊǹØÓÚÆô¶¯ºÍÍ ......

ACEÖеÄThread MutexÔÚlinuxϵÄʹÓÃ

ACE¿âÖÐרÃŶÔÏß³Ìͬ²½ÌṩÁËÁ½¸öÀ࣬һ¸öÊÇACE_Thread_MutexÁíÒ»¸öÊÇACE_REcursive_Thread_Mutex¡£ ÔÚÎÒ¿´ À´£¬ÔÚlinuxϽøÐÐÏß³Ìͬ²½£¬²»ÒªÊ¹ÓÃACE_Thread_Mutex£¬ÓÃACE_REcursive_Thread_Mutex¾Í¿ÉÒÔÁË¡£Ô­ÒòºÜ ¼òµ¥£¬ÒòΪACE_Thread_Mutex²»Ö§³ÖÏß³ÌÖØÈë¡£Ò»µ©ÖØÈë(ͬһ¸öÏ̵߳÷ÓÃÁ½´ÎACE_Thread_Mutex: ......

linux svnÃüÁî´óÈ«


1¡¢½«Îļþcheckoutµ½±¾µØĿ¼
svn checkout path£¨pathÊÇ·þÎñÆ÷ÉϵÄĿ¼£©
ÀýÈ磺svn checkout svn://192.168.1.1/pro/domain
¼òд£ºsvn co
2¡¢Íù°æ±¾¿âÖÐÌí¼ÓеÄÎļþ
svn add file
ÀýÈ磺svn add test.php(Ìí¼Ótest.php)
svn add *.php(Ìí¼Óµ±Ç°Ä¿Â¼ÏÂËùÓеÄphpÎÄ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ