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

linux signalº¯Êý

CÓïÑÔÖеijéÏóº¯Êý¶¨ÒåÒ²¾ÍÊÇʹÓÃÁ˺¯ÊýÖ¸Õ룬ÕâÀïÓÃsignalº¯Êý½âÊÍһϳéÏóº¯Êý¶¨ÒåµÄº¬ÒåºÍ¹æÔò¡£
signalº¯Êý¶¨ÒåΪ£º
void (   * signal (int signum , void (*handler)(int)  )   )(int);
 
¿ÉÒÔÕâÑù¶¨Òå
typedef  void(* handler) (int)
handler signal(int signum,handler)
 
ͨË×µÄ˵£º
signal ÊÇÒ»¸öº¯Êý Õâ¸öº¯ÊýÓÐÁ½¸ö²ÎÊýÒ»¸öΪint signum £¬Ò»¸öÊÇÒ»¸öº¯ÊýÖ¸Õë handler£¬handler ÊÇÒ»¸öÓÐÒ»¸öint²ÎÊý ÇÒ·µ»ØÖµÎªvoidµÄº¯ÊýÖ¸Õë¡£ signal ·µ»ØÒ»¸öº¯ÊýÖ¸Õë void £¨*£©£¨int£©
¼´signalº¯Êý ¸øsignum  Õâ¸öÐźŰ²×°ÐźŴ¦Àíº¯Êý handler £¬Èç¹û°²×°³É¹¦Ôò·µ»Ø ´¦Àíº¯ÊýÖ¸Õë¼´hander
 
×÷Ϊº¯Êý²ÎÊýµÄº¯ÊýÖ¸ÕëÓÐÒ»¸öרÃŵÄÃû³Æ½Ð×ö»Øµ÷£¬Äã¿ÉÒÔ°ÑÈÎÒâÂú×ã»Øµ÷º¯Êý²ÎÊýÌØÕ÷±êµÄº¯ÊýµØÖ·×÷Ϊ²ÎÊý´«¸øsignal¡£
ÔÚÕâÀïÒòΪsignal¶ÔÓÚsig²ÎÊý¿ÉÒÔÖ¸¶¨Óû§×Ô¶¨ÒåµÄÐźŴ¦Àíº¯Êý£¬ËùÒÔÄã¿ÉÒÔ°ÑÄãÒª´¦ÀíµÄÕâ¸ösigµÄº¯ÊýµØÖ·×÷Ϊ²ÎÊý´«¸øsignal£¬ÄÇôϵͳ½ÓÊÕµ½¶ÔÓ¦sigµÄʱºò¾Í»áͨ¹ýÄã´«½øÈ¥µÄµØÖ·µ÷ÓÃÄãµÄÕâ¸öº¯Êý¡£


Ïà¹ØÎĵµ£º

Linux½ø³Ì¼äͨѶËùʹÓõÄϵͳµ÷Óú¯Êý


´°Ìå¶¥¶Ë
Ë÷Òý£º
1.fork¡¢execºÍexit¶ÔIPC¶ÔÏóµÄÓ°Ïì
2.fcntl¼ÇÂ¼Ëø
3.¹ÜµÀºÍFIFOµÄÊôÐÔ
4.¹ÜµÀºÍFIFOµÄÏÞÖÆ
5.pipeº¯Êý
6.popenºÍpclose
7.mkfifoº¯Êý
8.System V IPC¹²ÐÔÃèÊö
9.msqid_ds½á¹¹
10.msggetº¯Êý
11.msgsndº¯Êý
12.msgrcvº¯Êý
13.msgctlº¯Êý
14.ÔÚSystem VÏûÏ¢¶ÓÁÐÉÏʹÓÃselectºÍpoll
15.sem ......

Linux½ø³Ì¼äͨѶ֮¹²ÏíÄÚ´æ

¹²ÏíÄÚ´æ:
ʹÓù²ÏíÄÚ´æºÍʹÓÃmalloc()À´·ÖÅäÄÚ´æÇøÓòºÜÏàËÆ¡£Ê¹Óù²ÏíÄÚ´æµÄ·½·¨ÊÇ£º
    1 ¶ÔÒ»¸ö½ø³Ì/Ïß³ÌʹÓÃshmget()·ÖÅäÄÚ´æÇøÓò¡£
    2 ʹÓÃshmat()·ÅÖÃÒ»¸ö»ò¶à¸ö½ø³Ì/Ïß³ÌÔÚ¹²ÏíÄÚ´æÖУ¬Ò²¿ÉÒÔÓÃshmctl()À´»ñÈ¡ÐÅÏ¢»òÕß¿ØÖƹ²ÏíÇøÓò¡£
    3 ʹÓÃshmdt()´Ó¹²Ïí ......

linuxºÍUnix

Ò»¡¢Àí½âLinuxµÄµ¥Óû§¶àÈÎÎñ£¬¶àÓû§¶àÈÎÎñ¸ÅÄ
Linux ÊÇÒ»¸ö¶àÓû§¡¢¶àÈÎÎñµÄ²Ù×÷ϵͳ£»ÎÒÃÇÓ¦¸ÃÁ˽ⵥÓû§¶àÈÎÎñºÍ¶àÓû§¶àÈÎÎñµÄ¸ÅÄ
1¡¢Linux µÄµ¥Óû§¶àÈÎÎñ£»
µ¥Óû§¶àÈÎÎñ£»±ÈÈçÎÒÃÇÒÔbeinan µÇ¼ϵͳ£¬½øÈëϵͳºó£¬ÎÒÒª´ò¿ªgedit À´Ð´Îĵµ£¬µ«ÔÚдÎĵµµÄ¹ý³ÌÖУ¬ÎҸоõÉÙµãÒôÀÖ£¬ËùÒÔÓÖ´ò¿ªxmms À´µãÒôÀÖ£» ......

Java ʹÓÃSSHÁ¬½ÓLinux ʹÓÃpasswdÃüÁîÐÞ¸ÄÃÜÂë


ʹÓÃInputStreamºÍOutputStreamÀ´»ñµÃÃüÁîÐÐÔËÐнá¹ûºÍÊäÈëÄÚÈÝÊÇÊ×ÏÈÐèÒª¾ß±¸µÄ.
È»ºóÒª½â¾öSSHÁ¬½ÓÎÊÌâ.
ÔÚOpenSourceÏîÄ¿ÀïÕÒµ½ÁËGanymed SSH-2 for Java .ÏÂÔØºóÓÐÀý×Ó,µ«ÊÇûÓÐÕÒµ½Óйؽ»»¥ÃüÁîµÄÀý×Ó.ËùÒÔ×Ô¼ºÌ½Ë÷ÁËÒ»ÏÂ
ÔÚÍøÉÏ¿´ÓÐÀÏÍâÌÖÂÛÓÃÕâ¸öÈçºÎ¸ÄÃÜÂë,»ù±¾ÉϵÄÎÊÌâ¶¼ÊÇÒòΪÕÒ²»µ½·µ»ØµÄÌáʾ
LinuxÐÞ¸ÄÃÜ ......

Linux Find ÃüÁָͨÄÏ

ת×Ô£ºhttp://www.oracle.com/technology/global/cn/pub/articles/calish-find.html
Linux find
ÃüÁîÊÇËùÓÐ Linux ÃüÁîÖÐ×îÓÐÓõÄÒ»¸ö£¬Í¬Ê±Ò²ÊÇ×î»ìÂÒµÄÒ»¸ö¡£ËüºÜÄÑ£¬ÒòΪËüµÄÓï·¨ÓëÆäËû
Linux ÃüÁîµÄ±ê×¼Óï·¨²»Í¬¡£µ«ÊÇ£¬ËüºÜÇ¿´ó£¬ÒòΪËüÔÊÐíÄú°´ÎļþÃû¡¢ÎļþÀàÐÍ¡¢Óû§ÉõÖÁÊÇʱ¼ä´Á²éÕÒÎļþ¡£Ê¹Óà find

̟産 ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ