Linux °æ (¾«»ªÇø)

·¢ÐÅÈË: tcpip (¸ß¼¶²Ý°ü&»µµ°), ÐÅÇø: Linux
±ê  Ìâ: IPC»úÖÆ
·¢ÐÅÕ¾: ¹þ¹¤´ó×϶¡Ïã (2000Äê10ÔÂ13ÈÕ15:47:08 ÐÇÆÚÎå), ×ªÐÅ

 
±êÌ⣺½ø³Ì¼äͨÐŵĻúÖÆ

¹Ø¼ü×Ö£º

×÷Õߣº

ÕýÎÄ£º


½ø³ÌÖ®¼ä¡¢½ø³ÌÓëºËÐÄÖ®¼ä»¥ÏàͨÐÅ£¬ÒÔЭµ÷ËüÃǵĻ¡£LinuxÖ§³ÖһϵÁнø³Ì¼äͨÐÅ
»úÖÆ£¬Ðźź͹ܵÀÊÇÆäÖеÄÁ½ÖÖ£¬´ËÍ⻹ÓÐSVRµÄ½ø³Ì¼äͨÐÅ»úÖÆ¡£

1 ÐźÅ
ÐźÅÊÇunixϵͳ×îÔçʹÓõĽø³Ì¼äͨÐÅ·½·¨Ö®Ò»¡£ËüÃÇÓÃÀ´¶ÔÒ»¸ö»ò¶à¸ö½ø³Ì·¢ËÍÒì²½ÊÂ
¼þ¡£ÐźſÉÒÔÓɼüÅÌÖжϲúÉú£¬Ò²¿ÉÒÔÓɽø³ÌÊÔͼ¶ÁÈ¡ÐéÄâ´æ´¢Æ÷Öв»´æÔÚµÄλÖöøÒý
·¢¡£ÁíÍ⣬ÐźÅÒ²¿ÉÒÔÓÃÓÚÍâ¿Ç³ÌÐòÏòËüÃǵÄ×Ó½ø³Ì·¢ËÍ×÷Òµ¿ØÖÆÃüÁî¡£
ÓÐÒ»×éÔ¤Ïȶ¨ÒåµÄÐźţ¬ºËÐÄ¿ÉÒÔ²úÉú£¬¾ßÓÐÏàÓ¦ÓÅÏÈȨµÄ½ø³ÌÒ²¿ÉÒÔ²úÉú¡£Ê¹ÓÃkill 
-l
ÃüÁî¿ÉÒÔÁгöϵͳµÄÐźż¯ºÏ¡£ÀýÈ磬Intelƽ̨ÉÏÁгö£º
1) SIGHUP    2) SIGINT   3) SIGQUIT  4) SIGILL
 5) SIGTRAP  6) SIGIOT   7) SIGBUS   8) SIGFPE
 9) SIGKILL 10) SIGUSR1 11) SIGSEGV 12) SIGUSR2
13) SIGPIPE 14) SIGALRM 15) SIGTERM 17) SIGCHLD
18) SIGCONT 19) SIGSTOP 20) SIGTSTP 21) SIGTTIN
22) SIGTTOU 23) SIGURG  24) SIGXCPU 25) SIGXFSZ
26) SIGVTALRM   27) SIGPROF 28) SIGWINCH    29) SIGIO
30) SIGPWR
¶ÔÓÚAlphaƽ̨¶øÑÔ£¬Êý×ÖÓÖÓÐËù²»Í¬¡£½ø³Ì¿ÉÒÔÑ¡ÔñºöÂÔ²úÉúµÄ´ó²¿·ÝÐźţ¬³ýÁËÁ½¸ö
ÌØÊâµÄÖ®Í⣺ʹ½ø³ÌÍ£Ö¹ÔËÐеÄSIGSTOPºÍʹ½ø³ÌÍ˳öµÄSIGKILL¡£¶Ô´ËÍâµÄÐźţ¬½ø
³Ì¿ÉÒÔÈÎÒâÑ¡Ôñ´¦ÀíµÄ·½·¨¡£½ø³Ì¿ÉÒÔ×èÈûÐźţ¬»òÕßÓÉ×Ô¼ºµÄ´úÂë´¦ÀíÐźţ¬»òÕß½»ÓÉ

ºËÐÄÀ´´¦ÀíÐźš£
Èç¹ûÊǺËÐÄ´¦ÀíÐźţ¬Ëü½«½øÐÐÕâ¸öÐźÅÒªÇóµÄȱʡ´¦Àí¡£ÀýÈ磬½ø³ÌÊÕµ½SIGFPE£¨¸¡
µãÒç³ö£©ÐźÅʱ£¬È±Ê¡´¦ÀíÊÇcore dump²¢Í˳ö¡£ÐźÅÖ®¼äûÓÐÌìÈ»µÄÏà¶ÔÓÅÏȹØϵ¡£Èç
¹ûÁ½¸öÐźÅͬʱΪͬһ¸ö½ø³Ì²úÉú£¬ËüÃÇ¿ÉÒÔÒÔÈÎÒâ˳Ðò½»¸ø½ø³Ì´¦Àí¡£½ø³ÌҲûÓÐÈκÎ

·½·¨Çø±ð×Ô¼ºÊÕµ½µÄÊÇÒ»¸ö»¹ÊÇËÄÊ®¶þ¸öSIGCONTÐźš£LinuxÓô洢ÔÚ½ø³ÌµÄ
task_structÖеÄÐÅϢʵÏÖÐźš£ËùÖ§³ÖµÄÐźÅÊýÊܵ½×Ö³¤µÄÏÞÖÆ£¬32λ´¦ÀíÆ÷¿ÉÓÐ32¸öÐ
Å
ºÅ£¬64λ´¦ÀíÆ÷¾Í¿ÉÓÐ64λÐźš£µ±Ç°Î´´¦ÀíµÄÐźű£´æÔÚsignalÓòÖУ¬blockedÖÐΪ×è
ÈûÐźŵÄÑÚÂë¡£³ýÁËSIGSTOPºÍSIGKILLÖ®Í⣬һÇÐÐźŶ¼Äܹ»±»×èÈû¡£Èç¹ûÒ»¸ö±»×è
ÈûµÄÐźŲúÉú£¬³ý·Ç½â³ýÆä×èÈû£¬·ñÔòËü²»»á±»´¦Àí¡£Linux³ÖÓÐÿһ¸ö½ø³ÌÈçºÎ´¦Àíÿ
Ò»¸ö¿ÉÄܵÄÐźŵÄÐÅÏ¢£¨·ÅÔÚÿ¸ö½ø³ÌµÄtask_structÖ¸ÏòµÄÒ»×ésigactionÊý¾Ý½á¹¹ÖУ©
¡£
ÔÚsigactionÖ®ÖУ¬ÒªÃ´º¬ÓÐÐźŴ¦ÀíÀý³ÌµÄµØÖ·£¬ÒªÃ´·ÅÖñêÖ¾¸æËßϵͳ£º½ø³ÌÏ£ÍûºöÂ
Ô
Õâ¸öÐźţ¬»òÕß½ø³ÌÏ£ÍûºËÐÄ´¦ÀíÕâ¸öÐźš£½ø³Ìͨ¹ýϵͳµ÷ÓÃÀ´ÐÞ¸ÄÐźŴ¦Àí·½·¨£¬Õâ

Щϵͳµ÷ÓðÑÏàÓ¦ÐźŵÄsigaction»òÕßblocked½øÐÐÐ޸ġ£
²¢²»ÊÇÈκÎÒ»¸ö½ø³Ì¶¼Äܹ»·¢ÐźŸøËùÓнø³Ì£¬Ö»ÓкËÐĺͳ¬¼¶Óû§½ø³Ì²ÅÓдËȨÁ¦¡£ÆÕ

ͨ½ø³ÌÖ»ÄÜ·¢ËÍÐźŸø¾ßÓÐÏàͬuidºÍgidµÄ½ø³Ì£¬»òÕßͬһ¸ö½ø³Ì×éÖеĽø³Ì¡£Òª²úÉú
Ò»¸öÐźţ¬Ö»Òª°Ñtask_structÖÐsignalÓòµÄÏàÓ¦±ÈÌØÉèÖÃһϡ£Èç¹û½ø³ÌûÓÐ×èÈûÐźţ
¬
²¢ÇÒ´¦ÓÚ¿ÉÖжϵĵȴý״̬£¬ÄÇôËü»á±»»½ÐÑ£¬×ª±äΪÔËÐÐ̬£¬²¢È·ÈÏËüÔÚÔËÐжÓÁÐÖС£

ÕâÑù£¬µ÷¶È³ÌÐòÔÚÏÂÒ»´Îµ÷¶Èʱ½«°ÑËü×÷ΪÔËÐеĺòÑ¡½ø³ÌÖ®Ò»¡£Èç¹ûȱʡ´¦ÀíÊÇÐèÒª
µÄ£¬LinuxÄܹ»ÓÅ»¯ÐźŵĴ¦Àí¡£ÀýÈ磬Èç¹û²úÉúÁËÐźÅSIGWINCH£¨X-Window¸Ä±ä½¹
µã£©£¬¶øȱʡ´¦Àí³ÌÐòÕýÔÚʹÓã¬ÄÇôʲôҲ²»»á×ö¡£
ÐźŲ¢·ÇÔÚ²úÉúºóÁ¢¿ÌË͸ø½ø³Ì£¬¶øÊÇÒªµÈµ½½ø³ÌÖØб»ÔËÐС£Ã¿µ±Ò»¸ö½ø³Ì´Óϵͳµ÷ÓÃ

ÖÐÍ˳ö£¬ËüµÄsignalºÍblockedÓò¶¼±»¼ì²é£¬Èç¹û·¢ÏÖδ±»×èÈûµÄÐźţ¬Ôò½«Ë͸ø½ø³Ì¡£
Õâ¿´ÆðÀ´Ëƺõ²»Ì«¿É¿¿£¬µ«ÊÇÊÂʵÉÏÿ¸ö½ø³Ì×ÜÊÇÔÚ²»¶Ï½øÐÐϵͳµ÷Óã¬ÀýÈç°Ñ×Ö·ûдµ½

Öնˡ£Èç¹ûÔ¸Ò⣬½ø³Ì¿ÉÒÔÑ¡ÔñµÈ´ýÐźţ¬ÕâÊÇËü´¦Óڿɱ»ÐźŵÄÀ´ÁÙÖжϵĹÒÆð״̬¡£

LinuxµÄÐźŴ¦Àí´úÂëͨ¹ý²é¿´sigaction½á¹¹ÒÔ±ã¾ö¶¨´¦Àí·½·¨¡£
Èç¹ûÐźŵĴ¦Àí±»ÉèÖÃΪȱʡ£¬ÄÇôºËÐĽ«¸ºÔð´¦ÀíËü¡£SIGSTOPÐźŵÄȱʡ´¦ÀíÍ£Ö¹µ±
Ç°½ø³ÌµÄÔËÐв¢ÇÒʹÓõ÷¶È³ÌÐòÑ¡ÔñÏÂÒ»¸öÔËÐеĽø³Ì¡£SIGFPEÐźŵÄȱʡ´¦Àíʹ½ø³Ì
core dump²¢ÇÒÈÃËüÍ˳ö¡£½ø³ÌÒ²¿ÉÒÔÑ¡ÔñÖ¸¶¨×Ô¼ºµÄ´¦Àí´úÂë¡£¸Ã´úÂëΪһ¸öÿµ±ÐźÅ
²úÉúʱ¿Éµ÷ÓõÄÀý³Ì£¬sigaction½á¹¹±£´æÓÐÕâ¸öÀý³ÌµÄµØÖ·¡£ºËÐıØÐëµ÷Óýø³ÌµÄÐźŴ
¦
ÀíÀý³Ì£¬ÈçºÎʵÏÖÕâÒ»µãÓë¾ßÌåµÄ´¦ÀíÆ÷Ïà¹Ø£¬µ«ÊÇÎÞÂÛÈçºÎCPU±ØÐë×¢Òâµ½µ±Ç°½ø³Ì
Õý´¦ÓÚºËÐÄ̬ÔËÐУ¬²¢ÇÒ¼´½«·µ»ØÓû§Ì¬¡£Í¨¹ý¶ÔÕ»ºÍ¼Ä´æÆ÷µÄ²Ù×÷Äܽâ¾öÕâ¸öÎÊÌâ¡£½ø

³ÌµÄ³ÌÐò¼ÆÊýÆ÷±»ÉèÖõ½ÐźŴ¦ÀíÀý³ÌµÄµØÖ·£¬µ÷ÓòÎÊý±»Í¨¹ýµ÷ÓÃÖ¡»òÊǼĴæÆ÷´«µÝ¡£

µ±½ø³ÌµÃÒÔ¼ÌÐøʱ£¬¿´À´ËƺõÐźŴ¦ÀíÀý³ÌÊDZ»Õý³£µ÷Óõġ£
LinuxÊÇPOSIX¼æÈݵģ¬ËùÒÔ½ø³ÌÄܹ»ÔÚÐźŴ¦ÀíÀý³Ìµ÷ÓÃʱָ¶¨ÄÄЩÐźű»×èÈû¡£Õâ¾Í
Òâζ×ÅÔÚÐźŴ¦ÀíÀý³ÌÖиıäblockedÑÚÂë¡£Àý³Ì½áÊøʱ£¬blockedÑÚÂë±ØÐë±»»Ö¸´Ô­ÓÐ
Öµ¡£ËùÒÔLinuxÔö¼ÓÁËÒ»¸öÇåÀí½ø³Ì£¬¸Ã½ø³Ì¸ºÔð°ÑԭʼblockedÑÚÂë»Ö¸´µ½½ÓÊÕÐźŽø
³ÌµÄµ÷ÓÃÕ»µÄ¶¥¶Ë¡£Ä³Ð©Çé¿öÏ£¬¼¸¸öÐźŴ¦ÀíÀý³ÌÐèÒª±»ÓöÑÕ»·½Ê½µ÷Óã¬ÒԱ㱣֤ÿ

¸öÀý³ÌÍ˳öʱ£¬Á¢¿Ìµ÷ÓÃÏÂÒ»¸öÀý³Ì£¬Ö±ÖÁÇåÀíÀý³Ì±»µ÷Ó᣶Դˣ¬LinuxÐèÒª½øÐÐÓÅ
»¯¡£

5.2 ¹ÜµÀ
ÆÕͨµÄLinuxÍâ¿Ç¶¼ÔÊÐíÖض¨Ïò¡£ÀýÈç
$ ls | pr | lpr
°ÑlsÃüÁîµÄÊä³öÎļþÃûͨ¹ý¹ÜµÀ×÷ΪprÃüÁîµÄ±ê×¼ÊäÈ룬ºóÕ߶ÔÖ®½øÐзÖÒ³
£¨$$paginate£¿$$£©£¬×îºóprµÄ±ê×¼Êä³öÓÖͨ¹ý¹ÜµÀËÍÈëlprµÄ±ê×¼ÊäÈ룬lpr°Ñ½á¹û´òÔÚ

ȱʡ´òÓ¡»úÉÏ¡£ËùÒÔ£¬¹ÜµÀ¾ÍÊÇÁ¬½ÓÒ»¸ö½ø³ÌµÄ±ê×¼Êä³öµ½ÁíÍâÒ»¸ö½ø³ÌµÄ±ê×¼ÊäÈëµÄµ¥

Ïò×Ö½ÚÁ÷¡£½ø³ÌÎÞ·¨ÖªµÀÕâ¸öÖض¨Ïò£¬ÈÔÈ»Õý³£¹¤×÷¡£¸ºÔðÔÚ½ø³ÌÖ®¼ä½¨Á¢ÁÙʱ¹ÜµÀµÄÊÇ

Íâ¿Ç¡£
ÔÚLinuxÖУ¬¹ÜµÀÊÇͨ¹ýÁ½¸öÖ¸Ïòͬһ¸öÐéÄâÎļþϵͳi½ÚµãµÄfile½á¹¹À´ÊµÏֵģ¬i½Úµã
±¾ÉíÔòÖ¸ÏòÄÚ´æÖеÄÒ»¸öÎïÀíÒ³¡£Í¼5.1£¨ÂÔ£©ÏÔʾ£¬Ã¿¸öfileÊý¾Ý½á¹¹º¬ÓÐÖ¸Ïò²»Í¬µÄÎ
Ä
¼þ²Ù×÷Àý³ÌÏòÁ¿µÄÖ¸Õ룬һ¸öÓÃÓÚд¹ÜµÀ£¬ÁíÒ»¸öÓÃÓÚ¶Á¹ÜµÀ¡£
Õâ¾ÍÒþ²ØÁËÓë¶ÁдÆÕͨÎļþµÄÒ»°ãµÄϵͳµ÷ÓÃÖ®¼äµÄÇø±ð¡£µ±Ð´½ø³ÌÔÚд¹ÜµÀʱ£¬×Ö½Ú±»

¿½µ½¹²ÏíÊý¾ÝÒ³ÉÏ£¬¶øµ±¶Á½ø³ÌÔÚµ±¶Á¹ÜµÀʱ£¬×Ö½Ú±»´Ó¹²ÏíÊý¾ÝÒ³ÉÏ¿½³öÀ´¡£Linux 
±Ø
Ðë¶Ô¹²ÏíÊý¾ÝÒ³µÄ´æÈ¡½øÐÐͬ²½£¬ËüʹÓÃËø¡¢µÈ´ý¶ÓÁкÍÐźÅÀ´±£Ö¤¶Áд½ø³ÌÖ®¼äµÄÂÖ
Á÷¡£
µ±Ð´½ø³ÌÏëд¹ÜµÀʱ£¬ËüʹÓñê׼д¿âº¯Êý¡£ÕâЩ¿âº¯Êý¶¼´«µÝÎļþÃèÊö·û£¬¶øÎļþÃèÊö

·ûÊǽø³ÌµÄfileÊý¾Ý½á¹¹¼¯ºÏµÄË÷Òý£¬Ã¿Ò»¸ö´ú±íÒ»¸ö´ò¿ªµÄÎļþ»òÕßÒ»¸ö´ò¿ªµÄ¹ÜµÀ¡£

Linuxϵͳµ÷ÓÃʹÓÃÃèÊöÕâ¸ö¹ÜµÀµÄfileÊý¾Ý½á¹¹Ö¸ÏòµÄÀý³Ì¡£ÄǸöдÀý³ÌʹÓñíʾ¹ÜµÀµ
Äi
½ÚµãÖб£´æµÄÐÅÏ¢À´¹ÜÀíдҪÇó¡£
Èç¹ûÓÐ×ã¹»µÄ¿Õ¼ä¹©ËùÓеÄ×Ö½ÚдÈë¹ÜµÀ£¬Ö»Òª¹ÜµÀûÓÐΪ¶Á½ø³ÌËøס£¬Linux½«»áΪд
½ø³ÌËøס¹ÜµÀ£¬²¢ÇÒ°ÑËùÓеĴýд×Ö½Ú´Ó½ø³ÌµÄµØÖ·¿Õ¼ä¿½µ½¹²ÏíÊý¾ÝÒ³ÖС£Èç¹û¹ÜµÀΪ

¶Á½ø³ÌËøס£¬»òÕßûÓÐ×ã¹»µÄÊý¾Ý¿Õ¼ä£¬ÄÇô½«Ê¹µ±Ç°½ø³Ì˯ÃßÔڹܵÀi½ÚµãµÄµÈ´ý¶ÓÁУ
¬
µ÷Óõ÷¶È³ÌÐòÔËÐÐÁíÍâÒ»¸ö½ø³Ì¡£½ø³ÌµÄ״̬ÊÇ¿ÉÖжϵģ¬ËùÒÔËüÄÜÊÕµ½Ðźţ¬ÄÜÔÚдÊý

¾Ý¿Õ¼ä±äµÃ×ã¹»»òÊǹܵÀ±»½âËøÖ®ºó±»Ð´½ø³Ì»½ÐÑ¡£Ð´ÍêÊý¾ÝÖ®ºó£¬¹ÜµÀµÄi½Úµã±»½âËø£
¬
˯ÃßÔÚi½ÚµãµÈ´ý¶ÓÁеĶÁ½ø³Ì½«±»»½ÐÑ¡£
´Ó¹ÜµÀ¶ÁÊý¾ÝÓëдÊý¾Ý·Ç³£ÀàËÆ¡£
ÔÊÐí½ø³Ì×ö·Ç×èÈû¶Á£¨ÒÀÀµÓÚ´ò¿ªÎļþ»ò¹ÜµÀµÄģʽ£©£¬ÔÚ´ËÇé¿öÏ£¬Èç¹ûûÓÐÊý¾Ý¿É¶Á

»òÕ߹ܵÀ±»Ëøס£¬½«·µ»ØÒ»¸ö´íÎó¡£ÕâÒâζ׎ø³Ì¿ÉÒÔ¼ÌÐøÔËÐС£ÁíÒ»ÖÖ·½·¨ÊǵÈÔڹܵÀ
i
½ÚµãµÄµÈ´ý¶ÓÁÐÀïÖ±µ½Ð´½ø³ÌÍê³É¹¤×÷£¨¼´×èÈû¶Á--
ÒëÕß×¢£©¡£µ±Á½¸ö½ø³Ì¶¼Íê³ÉÁ˹ܵÀÉϵŤ×÷£¬¹ÜµÀi½Úµã½«±»Óë¹²ÏíÊý¾ÝÒ³Ò»Æð¶ªÆú¡£
LinuxÒ²Ö§³Ö¡°ÓÐÃû¡±¹ÜµÀ£¬Ò²±»³ÆΪFIFO£¬ÒòΪ¹ÜµÀµÄ¹¤×÷·½Ê½ÊÇÏÈÈëÏȳöµÄ¡£×îÔçдÈ
ë
ÕâÖֹܵÀµÄÊý¾ÝÒ²×îÔç±»¶Á³ö¡£ÓëÒ»°ã¹ÜµÀ²»Í¬µÄÊÇ£¬FIFO²»ÊÇÁÙʱ¶ÔÏ󣬶øÊÇÎļþϵͳ

ÖеÄʵÌ壬¿ÉÒÔÓÃmkfifoÃüÁî´´½¨³öÀ´¡£Ö»Òª½ø³ÌÓÐ×ã¹»µÄ´æȡȨÏÞ£¬¾ÍÄÜ×ÔÓɵØʹÓÃFI
F
O¡£´ò¿ªFIFOµÄ·½Ê½ºÍ´ò¿ª¹ÜµÀµÄ·½Ê½Ò²ÉÔÓв»Í¬¡£Ò»¸ö¹ÜµÀ£¨°üÀ¨ËüµÄÁ½¸öfileÊý¾Ý½á¹
¹
£¬ËüµÄÐéÄâÎļþϵͳi½ÚµãºÍ¹²ÏíÊý¾ÝÒ³£©ÊÇÒ»´ÎÐÔ²úÉúµÄ£¬¶øFIFOÊÇÒѾ­´æÔڵģ¬ÓÉÓÃ
»§¸ºÔðËüµÄ´ò¿ªºÍ¹Ø±Õ¡£Èç¹ûÔÚд½ø³Ì´ò¿ªFIFO֮ǰ£¬¶Á½ø³ÌÏÈ´ò¿ªÁËËü£¬»òÕ߶Á½ø³ÌÈ¥

¶ÁÒ»¸öûÓб»Ð´ÈëÊý¾ÝµÄ¹ÜµÀ£¬Linux±ØÐë¼ÓÒÔ´¦Àí¡£³ý´ËÖ®Í⣬FIFOÓë¹ÜµÀÍêÈ«Ïàͬ£¬
ÒòΪËüÃDzÉÓõÄÊý¾Ý½á¹¹ºÍ²Ù×÷ÊÇÒ»Öµġ£

5.3 Ì×½Ó×Ö
×¢£ºÔÚÍøÂçÕÂÍê³ÉºóÔö¼Ó¡£

5.3.1 SVRµÄ½ø³Ì¼äͨÐÅ»úÖÆ
LinuxÖ§³ÖÈýÀàSVRÊ×´´µÄ½ø³Ì¼äͨÐÅ»úÖÆ£ºÏûÏ¢¶ÓÁС¢Ðźŵƺ͹²ÏíÄÚ´æ¡£ÕâЩSVR½ø³Ì
¼äͨÐÅ»úÖƶ¼¹²ÓÃÏàͬµÄÈÏÖ¤·½·¨¡£½ø³ÌÖ»ÄÜͨ¹ýϵͳµ÷ÓÃÏòºËÐÄ´«ËÍÒ»¸öΨһµÄÒýÓñê

ʶ£¬²ÅÄÜ´æÈ¡ÕâЩ×ÊÔ´¡£ÕâЩSVR½ø³Ì¼äͨÐŶÔÏóµÄ´æȡͨ¹ý´æȡȨÏÞÀ´¿ØÖÆ£¬ÓëÎļþ´æ
È¡µÄȨÏÞ¿ØÖƷdz£ÀàËÆ¡£ÓɶÔÏóµÄ´´ÔìÕßͨ¹ýϵͳµ÷ÓÃÀ´ÉèÖöÔÏóµÄ´æȡȨÏÞ¡£ÔÚÿһÖÖ

»úÖÆÖ®ÖУ¬¶ÔÏóµÄÒýÓñêʶ±»ÓÃ×÷×ÊÔ´±íµÄË÷Òý¡£µ±È»£¬Ë÷Òý±¾Éí²¢²»¼òµ¥£¬»¹ÐèҪһЩ

²Ù×÷À´²úÉú¡£
ËùÓбíʾSVR½ø³Ì¼äͨÐŶÔÏóµÄLinuxÊý¾Ý½á¹¹¶¼°üº¬Ò»¸öipc_perm½á¹¹£¬¸Ã½á¹¹°üº¬ÁËËù

ÓÐÕߺʹ´ÔìÕß½ø³ÌµÄÓû§ºÍ×é±êʶ¡£¶ÔÏóµÄ´æȡģʽ£¨ËùÓÐÕß¡¢×éºÍÆäËü£©ÒÔ¼°¶ÔÏóµÄke

y£¨Õâ¾äËƺõÉÙÁËЩʲô£¬µ«ÊÇÔ­ÎÄÈç´Ë--
ÒëÕß×¢£©¡£Õâ¸ökeyÖ»ÊÇÓÃÓÚ¶¨Î»¶ÔÏóµÄÒýÓñêʶµÄÒ»ÖÖ·½·¨¡£Ö§³ÖÁ½Ààkey:¹«¿ªkeyºÍÃØ

ÃÜkey¡£Èç¹ûkeyÊǹ«¿ªµÄ£¬ÄÇôϵͳÖеÄÈκνø³Ì£¬Ö»ÒªÓÐ×ã¹»µÄ´æȡȨÏÞ£¬¶¼ÄÜÕÒµ½¶Ô

ÏóµÄÒýÓñêʶ¡£SVR½ø³Ì¼äͨÐŶÔÏó¾ø¶Ô²»ÄÜÓÃkeyÀ´ÒýÓ㬶øÖ»ÄÜÓÃÒýÓñêʶÀ´ÒýÓá£

5.3.2 ÏûÏ¢¶ÓÁÐ
ÏûÏ¢¶ÓÁÐÔÊÐíÒ»¸ö»òÕ߶à¸ö½ø³Ì¶Á/дÏûÏ¢¡£Linuxά»¤Ò»¸öÏûÏ¢¶ÓÁбí--
msgqueÏòÁ¿£¬ÆäÖÐÿһ¸öÔªËØÖ¸ÏòÒ»¸ömsqid_dsÊý¾Ý½á¹¹£¬¸ÃÊý¾Ý½á¹¹½«ÍêÕûµØÃèÊöÏûÏ¢

¶ÓÁС£µ±´´½¨Ò»¸öÏûÏ¢¶ÓÁÐʱ£¬´ÓϵͳÄÚ´æÖзÖÅä³öÒ»¸öеÄmsqid_dsÊý¾Ý½á¹¹£¬²åÈëÏò

Á¿Ö®ÖС£
ÿһ¸ömsqid_dsÊý¾Ý½á¹¹°üº¬ÁËÒ»¸öipc_permÊý¾Ý½á¹¹ºÍÖ¸Ïò¶ÓÁÐÖÐÏûÏ¢µÄÒ»ÅúÖ¸Õë¡£
ÁíÍ⣬Linux±£´æÓжÓÁÐÐÞ¸Äʱ¼ä£¬ÀýÈç×îºóÒ»´Îд¶ÓÁеÄʱ¼äµÈµÈ¡£msqid_dsÒ²°üº¬Á½
¸öµÈ´ý¶ÓÁУ¬Ò»¸öÓÃÓÚ¶ÓÁеÄдÕß½ø³Ì£¬ÁíÒ»¸öÓÃÓÚ¶ÓÁеĶÁÕß½ø³Ì¡£
ÿµ±½ø³ÌÊÔͼдÏûÏ¢µ½Ð´¶ÓÁÐÖÐʱ£¬ËüµÄÓÐЧÓû§±êʶºÍ×é±êʶ½«Óë¶ÓÁеÄipc_permÊý¾Ý

½á¹¹ÖеĴæȡģʽ½øÐбȽϡ£Èç¹û½ø³ÌÄܹ»Ð´¶ÓÁУ¬ÄÇôÏûÏ¢½«±»´Ó½ø³ÌµÄµØÖ·¿Õ¼äÖп½

µ½Ò»¸ömsgÊý¾Ý½á¹¹ÖУ¬²¢ÇҰѸÃÊý¾Ý½á¹¹·Åµ½ÏûÏ¢¶ÓÁеÄβ²¿¡£¸ù¾ÝÓ¦Óýø³ÌÖ®¼äµÄÔ¼
¶¨£¬Ã¿¸öÏûÏ¢±»ÓÃÒ»¸öÀàÐͱê¼Ç³öÀ´£¬ÕâÀïµÄÀàÐÍ»®·ÖÊÇÓëÓ¦ÓÃÓйصġ£È»¶ø£¬ÓÉÓÚ
LinuxÏÞÖÆÁËÄÜÏò¶ÓÁÐÖÐдµÄÏûÏ¢µÄ³¤¶ÈºÍÊýÁ¿£¬¶ÓÁÐÖÐÊ£ÓàµÄ¿Õ¼ä¿ÉÄܲ»×ãÈÝÄÉÕâ´ÎÒª
дµÄÏûÏ¢¡£ÕâÊÇ£¬½ø³Ì½«±»¼ÓÈëÏûÏ¢¶ÓÁеÄдµÈ´ý¶ÓÁÐÖ®ÖУ¬µ÷Óõ÷¶È³ÌÐòÀ´Ñ¡ÔñÒ»¸öÐÂ

µÄ½ø³ÌÔËÐС£µ±ÓÐÏûÏ¢´Ó¶ÓÁÐÖжÁ³öºó£¬Ð´µÈ´ý¶ÓÁÐÖеĽø³Ì½«±»»½ÐÑ¡£
¶ÁÏûÏ¢¶ÓÁÐÒ²ÀàËÆ¡£Í¬Ñù£¬ÐèÒª¼ì²é½ø³Ì¶ÔÓÚд¶ÓÁеĴæȡȨÏÞ¡£¶Á½ø³Ì¿ÉÒÔÑ¡Ôñ¶ÁÈ¡¶Ó

ÁÐÖеĵÚÒ»¸öÏûÏ¢£¬¶ø²»¼ÆÆäÀàÐÍ£¬»òÕßÑ¡ÔñÖ»¶ÁÌض¨ÀàÐ͵ÄÏûÏ¢¡£Èç¹ûûÓÐÏûÏ¢Âú×ã¶Á

½ø³ÌµÄ±ê×¼£¬ÄÇôËü½«±»¼ÓÈëÏûÏ¢¶ÓÁеĶÁµÈ´ý¶ÓÁУ¬È»ºóÔËÐе÷¶È³ÌÐò¡£µ±Ò»¸öÐÂÏûÏ¢

дÈë¶ÓÁÐʱ£¬½ø³Ì½«±»»½ÐÑ£¬ÖØÐÂÔËÐС£

5.3.3 ÐźŵÆ
×î¼òµ¥ÀàÐ͵ÄÐźŵÆÊÇÄÚ´æÖÐÒ»¸ö¿ÉÒÔ±»Ò»¸ö»òÕ߶à¸ö½ø³Ì²âÊÔ²¢ÉèÖõÄλÖ᣾ͽø³Ì¶ø

ÑÔ£¬²âÊÔ²¢ÉèÖòÙ×÷ÊDz»¿ÉÖжϵģ¬»òÕß˵ÊÇÔ­×ӵġ£²âÊÔ²¢ÉèÖòÙ×÷µÄ½á¹ûÊÇÐźŵƵ±

Ç°Öµ¼ÓÉÏÁËËùÉèÖõÄÊýÖµ£¬Õâ¸öÊýÖµ¿ÉÒÔËæ±ãÊÇÕýµÄ»ò¸ºµÄ¡£¸ù¾Ý²âÊÔ²¢ÉèÖòÙ×÷µÄ½á
¹û£¬½ø³Ì¿ÉÄܻᱻÆÈ˯Ãߣ¬Ö±µ½ÁíÒ»¸ö½ø³Ì¸Ä±äÐźŵƵÄֵΪֹ¡£ÐźŵƿÉÒÔÓÃÓÚʵÏÖ¹Ø

¼üÇø--Ò»´ÎÖ»ÄÜÓÐÒ»¸ö½ø³Ì½øÈëÔËÐеĹؼü´úÂëÇøÓò¡£
ÀýÈ磬¼ÙÉèÄãÓкܶà½ø³ÌÔÚͬʱ¶Áдһ¸öÊý¾ÝÎļþµÄ¼Ç¼£¬ÄãÏë¶ÔÎļþµÄ´æÈ¡½øÐÐÑϸñµÄ

Эµ÷¡£Äã¿ÉÒÔÓÃÒ»¸ö³õʼֵÊÇ1µÄÐźŵƣ¬ÔÚÎļþ²Ù×÷´úÂëµÄÇ°ºó£¬·ÅÉÏÁ½¸öÐźŵƲÙ
×÷¡£µÚÒ»¸öÐźŵƲÙ×÷ÊDzâÊÔ²¢ÇÒ¼õÉÙÐźŵƵÄÖµ£¬µÚ¶þ¸öÐźŵƲÙ×÷ÊDzâÊÔ²¢ÇÒÔö¼ÓÐÅ

ºÅµÆµÄÖµ¡£Êµ¼ÊÔËÐÐʱ£¬´æÈ¡ÎļþµÄµÚÒ»¸ö½ø³Ì½«ÊÔͼ¼õÉÙÐźŵƵÄÖµ£¬Ëüµ±È»»á³É¹¦£¬

ÕâʱÐźŵƵÄÖµ±ä³ÉÁË0¡£ÓÚÊǽø³ÌÄܹ»¼ÌÐøÏÂÈ¥£¬Ê¹ÓÃÊý¾ÝÎļþ¡£Õâʱ£¬Èç¹ûÁíÍâÒ»¸ö
½ø³ÌÒ²ÏëʹÓÃÎļþ£¬µ±ËüÊÔͼ¼õÉÙÐźŵƵÄÖµµÄʱºò£¬Ëü»áʧ°Ü£¬·µ»Ø½á¹û-1¡£¸Ã½ø³Ì½«

»á±»¹ÒÆð£¬Ö±µ½µÚÒ»¸ö½ø³ÌÍê³É¸ÃÊý¾ÝÎļþµÄ²Ù×÷¡£µÚÒ»¸ö½ø³ÌÍê³ÉÊý¾ÝÎļþ²Ù×÷ʱ£¬Ëü

Ôö¼ÓÐźŵƵÄÖµ£¬Ê¹Ö®»Øµ½1¡£ÕâʱµÈ´ý½ø³Ì¿ÉÒÔ±»»½ÐÑ£¬ËüÔö¼ÓÐźŵÆÊýÖµµÄ³¢ÊÔ½«»á
³É¹¦¡£
ÿһ¸öSVRÐźŵƶÔÏóÃèÊöÒ»¸öÐźŵÆÐòÁУ¬LinuxʹÓÃsemid_dsÊý¾Ý½á¹¹À´´ú±íÖ®¡£Ïµ
ͳÖÐËùÓеÄsemid_dsÊý¾Ý½á¹¹¶¼±»semaryÏòÁ¿ÖеÄÒ»×éÖ¸ÕëËùÖ¸Òý¡£Ã¿Ò»¸öÐźŵÆÐòÁÐ
Öк¬ÓÐsem_nsems¸öÐźŵƣ¬Ã¿Ò»¸öÐźŵÆÓÃsem_baseÖ¸ÏòµÄÒ»¸ösem Êý¾Ý½á¹¹ÃèÊö¡£
ËùÓÐÓÐȨ²Ù×÷ÐźŵÆÐòÁеĽø³Ì¿ÉÒÔͨ¹ýϵͳµ÷ÓÃÀ´¶ÔËüÃǽøÐвÙ×÷¡£ÏµÍ³µ÷ÓÿÉÒÔÖ¸¶¨

ºÜ¶à²Ù×÷£¬Ã¿¸ö²Ù×÷ÓÃÈý¸öÊäÈëÀ´ÃèÊö£ºÐźŵÆË÷Òý£¬²Ù×÷ÖµºÍÒ»×é±êÖ¾¡£ÐźŵÆË÷ÒýÊÇ

ÐźŵÆÐòÁÐÖеÄË÷Òý£¬²Ù×÷ÖµÊǽ«±»¼Óµ½ÐźŵƵ±Ç°ÖµÉϵÄÊýÖµ¡£Ê×ÏÈLinux²âÊÔÊÇ·ñËù
ÓеIJÙ×÷¶¼Äܳɹ¦¡£²Ù×÷Äܹ»³É¹¦µ±ÇÒ½öµ±²Ù×÷Öµ¼Óµ½µ±Ç°ÖµÉÏÖ®ºó½á¹û´óÓÚ0£¬»òÕß²Ù
×÷ÖµÓ뵱ǰֵ¶¼ÊÇ0¡£Èç¹ûÆäÖеÄÈκÎÐźŵƲÙ×÷ʧ°Ü£¬Linux½«¹ÒÆð½ø³Ì£¬³ý·Ç²Ù×÷±ê
Ö¾ÒªÇóϵͳµ÷ÓÃÊÇ·Ç×èÈûµÄ¡£Èç¹ûÐèÒª¹ÒÆð½ø³Ì£¬Linux½«±£´æÐźŵƲÙ×÷µÄ״̬£¬²¢°Ñ
µ±Ç°½ø³ÌËÍÈëµÈ´ý¶ÓÁС£ÊµÏֵķ½·¨ÊÇ´´Á¢²¢Ìîдһ¸ösem_queueÊý¾Ý½á¹¹£¬·ÅÔÚÐźŵÆ
¶ÔÏóµÄµÈ´ý¶ÓÁÐÖ®ÖУ¨Ê¹ÓÃsem_pendingºÍsem_pending_lastÖ¸Õ룩£¬²¢µ÷Óõ÷¶È³ÌÐòÔË
ÐÐÁíÍâÒ»¸ö½ø³Ì¡££¨Õâ¾ä»°ÊÇÒëÕ߸ù¾Ý×Ô¼ºÀí½â·­ÒëµÄ£¬Î´±ØÈ·ÇÐ--ÒëÕß×¢£©
Èç¹ûËùÓеÄÐźŵƲÙ×÷¶¼³É¹¦²¢ÇÒµ±Ç°½ø³Ì²»ÐèÒª±»¹ÒÆð£¬ÄÇôLinux¼ÌÐøÏÂÈ¥£¬¶ÔÐźÅ
µÆÐòÁÐÖÐÊʵ±µÄ³ÉÔ±½øÐвÙ×÷¡£ÏÖÔÚLinux±ØÐë¼ì²éËùÓеĵȴý¡¢Ðü¹ÒµÄ½ø³ÌÄÜ·ñ½øÐÐËü
ÃǵIJÙ×÷ÁË¡£ËüÒÀ´Î¿´Ã¿Ò»¸öÐźŵƲÙ×÷µÈ´ý¶ÓÁÐsem_pending£¬²âÊÔÕâЩ²Ù×÷ÕâÒ»´ÎÊÇ
·ñ»á³É¹¦¡£Èç¹ûÄܳɹ¦£¬Ôò´Ó¶ÓÁÐÖÐɾ³ýsem_queueÊý¾Ý½á¹¹£¬½øÐÐÐźŵƲÙ×÷£¬²¢»½ÐÑ
˯Ãß½ø³Ì£¬Ê¹ËüÔÚµ÷¶È³ÌÐòÏÂÒ»´ÎÔËÐÐʱ¾ß±¸ºòÑ¡×ʸñ¡£Linux´ÓÍ·¼ì²éµÈ´ý¶ÓÁУ¬Ö±µ½
·¢ÏÖÎÞ·¨ÔÙ½øÐÐÈκÎÐźŵƲÙ×÷£¬Ò²²»¿ÉÄÜÓиü¶à½ø³Ì±»»½ÐÑ¡£
Ðźŵƻ¹ÓÐÒ»¸öËÀËøµÄÎÊÌâ¡£µ±Ò»¸ö½ø³Ì½øÈë¹Ø¼üÇø£¬¸Ä±äÐźŵƵÄÊýÖµÖ®ºó£¬ÓÉÓÚ̱»¾

»òÕß±»É±¶øÎÞ·¨À뿪¹Ø¼üÇø£¬¾Í»á·¢ÉúËÀËø¡£Linux·ÀÖ¹ËÀËøµÄ·½·¨ÊÇά»¤ÐźŵÆÐòÁеÄ
½ÃÕý±í¡£ÕâÀïµÄ˼ÏëÊÇÓÃÕâЩ½ÃÕýÖµ°ÑÐźŵƻָ´µ½²Ù×÷֮ǰµÄÔ­ÓÐ״̬¡£½ÃÕýÖµ·ÅÔÚ
sem_undoÊý¾Ý½á¹¹ÀͬʱÔÚÐźŵÆÐòÁеÄsemid_dsÊý¾Ý½á¹¹ºÍ½ø³ÌµÄtask_structÊý¾Ý
½á¹¹Ö®ÖÐÅŶӡ£
ÿһ¸öÐźŵƲÙ×÷¶¼ÒªÇóÓÐÒ»¸ö½ÃÕýÖµ¡£LinuxΪÿ¸ö½ø³Ì¶Ôÿ¸öÐźŵÆÐòÁеIJÙ×÷×î¶à
±£´æÒ»¸ösem_undoÊý¾Ý½á¹¹¡£Èç¹ûÐèÒªµÄ½ø³ÌûÓдËÊý¾Ý½á¹¹£¬ÔòÔÚÐèҪʱ´´½¨Ò»¸ö¡£
еÄsem_undoÊý¾Ý½á¹¹Í¬Ê±ÅÅÔÚ½ø³ÌµÄtask_structÊý¾Ý½á¹¹ºÍÐźŵÆÐòÁеÄsemid_dsÊý
¾Ý½á¹¹Ö®ÖС£µ±¶ÔÐźŵÆÐòÁнøÐвÙ×÷ʱ£¬²Ù×÷ÖµµÄÏà·´Êý»á±»¼ÓÔÚ½ø³ÌµÄsem_undoÊý
¾Ý½á¹¹µÄ½ÃÕýÖµÐòÁÐÖÐÏàÓ¦ÓÚÕâ¸öÐźŵƵÄÄǸö¡£ËùÒÔ£¬Èç¹û²Ù×÷ÖµÊÇ2£¬½ÃÕýÖµ¼ÓÉϵÄ
¾ÍÊÇ-2¡£½ø³Ì±»É¾³ýʱ£¬Linux´¦ÀíËüÃǵÄsem_undoÊý¾Ý½á¹¹£¬¶ÔÐźŵƽøÐнÃÕý¡£Èç¹û
ɾ³ýÒ»×éÐźŵƣ¬ÄÇôsem_undoÊý¾Ý½á¹¹ÈÔÈ»ÅÅÔÚ½ø³ÌµÄtask_structÖ®ÖУ¬µ«ÊÇÐźŵÆ
ÐòÁеıêʶ±»ÖÃΪÎÞЧ¡£Óöµ½ÕâÖÖÇé¿ö£¬ÐźŵÆÇå³ý´úÂë¾ÍÖ»Òª¶ªÆúsem_undoÊý¾Ý½á¹¹
¼´¿É¡£

5.3.4 ¹²ÏíÄÚ´æ
¹²ÏíÄÚ´æÔÊÐíÒ»¸ö»òÕ߶à¸ö½ø³Ìͨ¹ýͬʱ³öÏÖÔÚËüÃǵÄÐéµØÖ·¿Õ¼äÄÚµÄÄÚ´æ½øÐÐͨÐÅ¡£Ðé

´æµÄÒ³ÃæÓɸ÷¸ö½ø³ÌµÄÒ³±íµÄÈë¿ÚÖ¸Òý£¬²¢²»ÐèÒª¹²ÏíÄÚ´æÔÚÿһ¸ö½ø³ÌµÄÐéÄâÄÚ´æµÄµØ

Ö·¶¼Ïàͬ¡£ÓëËùÓеÄSVR½ø³Ì¼äͨÐŶÔÏóÒ»Ñù£¬¹²ÏíÄÚ´æµÄ´æÈ¡ÓÉkeyºÍ´æȡȨÏÞ¼ì²é
À´¿ØÖÆ¡£Ò»µ©ÄÚ´æ±»¹²Ïí£¬ÎÞ·¨¶Ô½ø³ÌÈçºÎʹÓÃËü½øÐмì²é¡£±ØÐëÒÀÀµÆäËü»úÖÆ£¬ÈçÐźÅ

µÆ£¬À´¶ÔÄÚ´æµÄ´æÈ¡½øÐÐͬ²½¡£
ÿһ¸öд´½¨µÄ¹²ÏíÄÚ´æÇøÓòÓÉÒ»¸öshmid_dsÊý¾Ý½á¹¹´ú±í¡£ÕâЩÊý¾Ý½Ó±»±£´æÔÚ
shm_segsÏòÁ¿Ö®ÖС£shmid_dsÊý¾Ý½á¹¹ÃèÊöÁ˹²ÏíÄÚ´æÇøÓòµÄ´óС£¬Ê¹Óù²ÏíÄÚ´æÇøÓòµÄ

½ø³ÌµÄÊýÁ¿£¬ºÍ¹ØÓÚ¹²ÏíÄÚ´æÈçºÎÓ³Éäµ½½ø³ÌµÄµØÖ·¿Õ¼äµÄÐÅÏ¢¡£ÕýÊǹ²ÏíÄÚ´æµÄ´´½¨Õß

¿ØÖÆ×ÅÆä´æȡȨÏÞºÍÆäkeyÊÇ·ñ¹«¿ª¡£Èç¹û´´½¨Õß¾ßÓÐ×ã¹»µÄ´æȡȨÏÞ£¬Ëü¿ÉÒ԰ѹ²ÏíÄÚ
´æËø¶¨ÔÚÎïÀíÄÚ´æÖ®ÖС£
ÿһ¸öÏ£Íû¹²ÏíÄÚ´æµÄ½ø³Ì±ØÐëͨ¹ýϵͳµ÷ÓÃÓëÐéÄâÄÚ´æÏàÁª£¬´Ó¶ø²úÉúÒ»¸ö
vm_area_structÊý¾Ý½á¹¹£¬Îª´Ë½ø³ÌÃèÊö¸Ã¹²ÏíÄÚ´æ¡£½ø³Ì¿ÉÒÔÑ¡Ôñ°Ñ¹²ÏíÄÚ´æ·ÅÔÚËüµÄ

ÐéÄâµØÖ·¿Õ¼äµÄºÎ´¦£¬Ò²¿ÉÒÔÈÎÓÉLinuxÑ¡ÔñÒ»¿é×ã¹»´óµÄ¿Õ¼ä¡£ÐµÄvm_area_struct½á
¹¹·ÅÔÚshmid_dsËùÖ¸µÄvm_area_struct½á¹¹±íÖ®ÖС£vm_next_sharedºÍvm_prev_sharedÖ¸

Õë°ÑÕâЩ½á¹¹´®ÁªÆðÀ´¡£ÐéÄâÄÚ´æÔÚÏàÁªÊ±²¢Ã»ÓÐÕæÕý´´½¨³öÀ´£¬¶øÊÇÔÚµÚÒ»´ÎÓнø³ÌÊÔ

ͼ´æȡʱ´´½¨³öÀ´¡£
µ±µÚÒ»´ÎÓнø³Ì´æÈ¡¹²ÏíÐéÄâÄÚ´æµÄÒ»¸öÒ³Ãæʱ£¬·¢ÉúÒ»¸öȱҳ´íÎó¡£ÔÚLinux´¦Àíȱҳ
´íÎóʱ£¬Ëü»áÕÒµ½ÃèÊö¸ÃÐéÄâÄÚ´æµÄvm_area_structÊý¾Ý½á¹¹£¬ÆäÖаüº¬ÁËÖ¸Ïò´¦Àí¸ÃÀà

¹²ÏíÐéÄâÄÚ´æµÄÀý³ÌµÄÖ¸Õë¡£¹²ÏíÄÚ´æȱҳ´íÎó´¦Àí´úÂë²é¿´¸Ãshmid_dsÁгöµÄÒ³Ãæ¶ÔÓ¦

µÄÒ³±íÈë¿ÚµÄ±í£¬È·¶¨ÊÇ·ñÓдËÒ³´æÔÚ¡£Èç¹û²»´æÔÚ£¬¾Í·ÖÅäÒ»¸öÎïÀíÒ³Ã棬ÔÚÒ³±íÖÐΪ

Ëü´´½¨Ò»¸öÈë¿Ú¡£¸ÃÈë¿Ú²»½ö·ÅÈ뵱ǰ½ø³ÌµÄÒ³±íÖ®ÖУ¬Ò²·ÅÈë¸Ãshmid_dsÖ®ÖС£ÕâÒâζ

×ŵ±ÏÂÒ»¸öÊÔͼ´æÈ¡¸ÃÄÚ´æµÄ½ø³ÌµÃµ½Ò»¸öȱҳ´íÎóʱ£¨ÕâÀïËÆӦ˵Ã÷ΪͬһÐé´æÒ³Ãæ--

ÒëÕß×¢£©£¬¹²ÏíÄÚ´æ´íÎó´¦Àí´úÂ뽫ʹÓÃÕâ¸öд´½¨µÄÎïÀíÒ³Ãæ¡£ËùÒÔ£¬µÚÒ»¸ö´æÈ¡¹²Ïí

ÄÚ´æijҳʹµÃËü±»´´½¨£¬´ËºóÆäËü½ø³ÌµÄ´æȡʹËü±»¼ÓÈëÏàÓ¦½ø³ÌµÄÐéÄâµØÖ·¿Õ¼ä¡£
µ±½ø³Ì²»ÔÙÏëʹÓÃÐéÄâÄÚ´æʱ£¬¾ÍÓëËü¶ÏÁª¡£Ö»Òª»¹ÓÐÆäËü½ø³Ì»¹ÔÚʹÓøÃÄڴ棬¶ÏÁª¾Í

Ö»»áÓ°Ï쵱ǰ½ø³Ì¡£ËüµÄvm_area_struct±»´Óshmid_dsÊý¾Ý½á¹¹ÖÐɾ³ý¡¢È¥Å䣬²¢Ð޸ĵ±

Ç°½ø³ÌµÄÒ³±í£¬Ê¹Ô­À´Ê¹ÓõĹ²ÏíÄÚ´æÇøÓòÎÞЧ¡£µ±×îºóÒ»¸ö¹²Ïí¸ÃÄÚ´æµÄ½ø³ÌÓëËü¶Ï
Áª£¬µ±Ç°ÔÚÎïÀíÄÚ´æÖеĹ²ÏíÄÚ´æÒ³Ãæ±»ÊÍ·Å£¬¹²ÏíÄÚ´æµÄshmid_dsÊý¾Ý½á¹¹Ò²ÊÍ·Å¡£
Èç¹û¹²ÏíÐéÄâÄÚ´æûÓÐËø¶¨ÔÚÎïÀíÄڴ棬¾Í¸ü¸´ÔÓһЩ¡£Õâʱ£¬¹²ÏíÄÚ´æµÄÒ³ÃæÔÚÄÚ´æʹ

ÓÃƵ·±Ê±¿ÉÒÔ±»»»³öµ½ÏµÍ³µÄ½»»»´ÅÅÌÉÏ¡£¹²ÏíÄÚ´æÈçºÎ»»ÈëºÍ»»³öÐéÄâÄڴ棬¼û¡°ÄÚ´æ

¹ÜÀí¡±Ò»Õ¡£


  

¡ù À´Ô´:¡¤¹þ¹¤´ó×϶¡Ïã bbs.hit.edu.cn¡¤[FROM: diamond.hit.edu.cn]
[°Ù±¦Ïä] [·µ»ØÊ×Ò³] [Éϼ¶Ä¿Â¼] [¸ùĿ¼] [·µ»Ø¶¥²¿] [Ë¢ÐÂ] [·µ»Ø]
Powered by KBS BBS 2.0 (http://dev.kcn.cn)
Ò³ÃæÖ´ÐÐʱ¼ä£º210.665ºÁÃë