¹ØÓÚLinuxÐźŵÄ×ܽá
±ê×¼ÐźÅÓëʵʱÐźÅ
0-31 Õâ 32 ¸öÐźųÆΪ±ê×¼Ðźš£
´Ó 32 µ½ 63 Ö®¼äµÄ 32 ¸öÐźųÆΪʵʱÐźš£
¿ÉÒÔͨ¹ý man 7
signal ²é¿´¶Ô“±ê×¼ÐźŔºÍ“ʵʱÐźŔÏêϸµÄÃèÊö¡£
ÐźÅÅŶÓ
ÿ¸ö½ø³ÌÓµÓÐÒ»¸öÐźŵȴý¶ÓÁС£ÔÚ task_struct ÖÐÓÐÒ»¸ö struct sigpending pending Óò£¬
¾ÍÊǽø³ÌµÄÐźŵȴý¶ÓÁС£
µ±ÏòÒ»¸ö½ø³Ì·¢ËÍÐźÅʱ£¬ÐźŻáÏȱ»ËÍÈë½ø³ÌµÄÐźŵȴý¶ÓÁУ¬È»ºóµÈµ½½ø³Ì±»µ÷¶Èµ½È¥´¦ÀíÐźŵÄʱºò£¬»á´ÓÐźÅ
µÈ´ý¶ÓÁÐÖÐÒÀ´ÎÈ¡³öÐźŽøÐд¦Àí¡£
±ê×¼ÐźŲ»ÄÜÅŶӣ¬¶øʵʱÐźſÉÒÔÅŶӣº
¼ÙÉè½ø³ÌÆÁ±ÎÁËÒ»¸ö±ê×¼Ðźţ¬µ±¸øËüÁ¬Ðø·¢ËͶà¸öÏàͬ
µÄ±ê×¼Ðźţ¬ÔòÖ»ÓеÚÒ»¸ö±»·ÅÈë½ø³ÌµÄÐźŵȴý¶ÓÁÐÖУ¬ºóÐøµÄ¶¼±»¶ªÆú¡£
¼ÙÉè½ø³ÌÆÁ±ÎÁËÒ»¸öʵʱÐźţ¬µ±¸øËüÁ¬Ðø·¢ËͶà¸öÏàͬµÄʵʱÐźţ¬ÔòËùÓÐ
µÄÐźŶ¼±»·ÅÈë½ø³ÌµÄÐźŽÓÊÕ¶ÓÁÐÖС£
ʵʱÐźÅÊÇÔÚ POSIX.4 ʵʱÐźÅÀ©Õ¹Öж¨ÒåµÄ¡£
ÐźÅÆÁ±Î
½ø³Ì¿ÉÒÔÆÁ±ÎËü²»Ïë½ÓÊÕµÄÐźš£
ÔÚ task_struct ÖÐÓÐÒ»¸ö block Óò£¬Ö¸¶¨Á˽ø³ÌÒªÆÁ±ÎµÄÐźż¯ºÏ¡£
ÆÁ±ÎÐźÅ
´øÀ´µÄÓ°Ï죺
1¡¢
µ±ÏòÒ»¸ö½ø³ÌͶµÝÐźÅʱ£¬Èç¹û·¢ÏÖ½ø³ÌÆÁ±ÎÁË´ËÐźţ¬Ôò¼´Ê¹´Ë½ø³Ì´¦ÓÚ˯Ãß״̬£¬Ò²²»»½ÐÑËü¡££¨·ñÔò˯ÃߵĽø³Ì»á±»»½ÐÑ£©¡£
2¡¢
µ±½ø³Ì¿ªÊ¼´¦ÀíËüµÄÐźŵȴý¶ÓÁеÄʱºò£¬¶ÔÓÚ±»ÆÁ±ÎµÄÐźţ¬²»×ö´¦Àí¡£ËùÒÔÕâЩÐźŻáÒ»Ö±´ýÔڵȴý¶ÓÁÐÖУ¬Ö±µ½½ø³Ì½â¿ª¶ÔÏàÓ¦ÐźŵÄÆÁ±Î£¬²ÅÄܱ»´¦Àí¡£(°´ÕÕÒÔÉÏÀí½â£¬Ò²¾ÍÊÇËä˵ijЩÐźű»ÆÁ±Î£¬µ«ÊÇÕâ¸öÐźŻᱻ±£´æÔÚpendingÀֻÊÇÔÚ½ø³Ì´ÓÄں˷µ»Ø´¦ÀíÐźÅʱ²»´¦Àí±»×èÈû£¨ÆÁ±Î£©µÄÐźţ¬Ö±µ½¸ÃÐźű»½â³ýÆÁ±Î)
µ«
ÊÇ KILL ºÍ TERM ÕâÁ½ÖÖÐźÅÊDz»ÄÜÆÁ±ÎµÄ¡£
·¢ËÍÐźŵĴ¦Àí¹ý³Ì
Óû§¿Õ¼ä¿ÉÒÔͨ¹ý kill() »ò sigqueue() Á½¸öϵͳµ÷ÓÃÀ´ÏòÒ»¸ö½ø³Ì·¢ËÍÐźš£
Äں˿ռäµÄÈë¿ÚÊÇ sys_kill()£º
sys_kill()
==> kill_something_info() ==> kill_proc_info() ==>
send_sig_info() ==> deliver_signal() ==> send_signal()
1¡¢ Ê×ÏÈ£¬¸ù¾Ý PID ÕÒµ½¶ÔÓ¦µÄÄ¿±ê½ø³Ì¡£ ÕâÊÇͨ¹ý
find_task_by_pid() ʵÏֵġ£
2¡¢ Èç¹ûÄ¿±ê½ø³Ì¶ÔÐźŵĴ¦ÀíÐÐΪÊÇ“ºöÂÔ”£¬ÔòÎÞÐèͶµÝ
3¡¢
Ïà¹ØÎĵµ£º
0 Äñ¸çµÄLinux˽·¿²Ë
1 GNU\Linux±à³ÌÖ¸ÄÏ
2 LinuxÉ豸Çý¶¯¿ª·¢Ïê½â.pdf
3 ÉîÈëÀí½âlinuxÄÚºË.pdf
4 Linux_ÄÚºËÍêȫעÊÍ_V11.pdf or Linux_ÄÚºË×¢ÊÍ.pdf
5 LINUXÄÚºËÔ´´úÂëÇé¾°·ÖÎö\scene(ÉÏ).pdf and scene(ÏÂ).pdf
Ä¿Ç°ÒѾµ½LinuxÉ豸Çý¶¯¿ª·¢Ïê½â.pdfÁË£¬¶øÇÒ±àÒëÉý¼¶ÄÚºËÒѾ³É¹¦£¬³õ²½±àдÁ˼òµ¥µÄÄ£¿é¡£ ......
Ò»¡¢Òý×Ó
Ç°¶Îʱ¼ä¿´µ½ÁËapple¹«Ë¾·¢²¼ÁËiphone os4.0µÄÔ¤ÀÀÊÓƵ£¬iphoneÖÕÓÚ´òËãÖ§³Ö¶àÈÎÎñÁË£¬ÓÈÆäÊǶÔÓÚÔ¤ÀÀÊÓƵÖеÄskypeÈí¼þµÄչʾÈÃÈËÓ¡ÏóÉî¿Ì¡£
Ò»°ãÀ´Ëµ£¬Ïë×öÒ»ÃûÕý¹æµÄiphoneÓ¦Óÿª·¢ÕßÓ¦µ±ÖÁÉÙ×¼±¸Èý¼þÊÂÇ飺
£¨1£©Ò»Ì¨appleµÄµçÄÔ
¿ÉÒÔÊÇmac book»òÕßmac mini£¬¹úÄڱȽϓ½Ú¼ó”µÄ¹«Ë¾´ó¶¼Ñ¡ ......
°²×°²½Ö裺
Ø °²×°tomcatÇ°ÏÈÒª±£Ö¤°²×°ÁËJDK£¬¿ÉÒÔÓÃÃüÁî²é¿´ÊÇ·ñ°²×°ÁËJDK£º
[root@wxr webapps]# java -version
java version "1.6.0_19"
Java(TM) SE Runtime Environment (build 1.6.0_19-b04)
Java HotSpot(TM) Client VM (build 16.2-b04, mixed mode, sharing)
Ø ÏÂÔØTom ......
Linux ÄÚºËÈíÖжÏ(softirq)Ö´ÐзÖÎö
Author: sinister
Email: sinister@whitecell.org
Homepage:http://www.whitecell.org
Date: 2007-01-11
±¾ÎÄ¶Ô Linux ÄÚºËÈíÖжϵÄÖ´ÐÐÁ÷³Ì½øÐÐÁË·ÖÎö£¬²¢¾¡¿ÉÄܵĽáºÏµ±Ç°ÔË
Ðл·¾³ÏêϸµØд³öÎÒµÄÀí½â£¬µ«Õâ²¢²»±íÃ÷ÎÒµÄÀí½âÒ»¶¨ÕýÈ·¡£Õâ±¾ ......
¶þ¡¢ÐÅ ºÅ »ú ÖÆ
ÉÏ Ò»½ÚÖнéÉÜÁËÐźŵĻù±¾¸ÅÄÔÚÕâÒ»½ÚÖУ¬ÎÒÃǽ«½éÉÜÄÚºËÈçºÎʵÏÖÐźŻúÖÆ¡£¼´ÄÚºËÈçºÎÏòÒ»¸ö½ø³Ì·¢ËÍÐźš¢½ø³ÌÈçºÎ½ÓÊÕÒ»¸öÐźš¢½ø³ÌÔõÑù¿ØÖÆ×Ô¼º¶ÔÐÅ ºÅµÄ·´Ó¦¡¢ÄÚºËÔÚʲôʱ»ú´¦ÀíºÍÔõÑù´¦Àí½ø³ÌÊÕµ½µÄÐźš£»¹Òª½éÉÜÒ»ÏÂsetjmpºÍlongjmpÔÚÐźÅÖÐÆðµ½µÄ×÷Óá£
1¡¢Äں˶ÔÐźŵĻ ......