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

LinuxÖÐ×Ó¸¸½ø³Ì - Linux/UnixÉçÇø / ³ÌÐò¿ª·¢Çø

ÔÚLinuxÖУ¬
Èç¹û¸¸½ø³Ìµ÷ÓÃexit(0)Í˳ö£¬
ÄÇôÓɸýø³Ì´´½¨µÄÁ½¸ö×Ó½ø³Ì»áÁ¢¼´Í˳öÂ𣿣¿£¿
Ï£ÍûΧÈƸÃÎÊÌâ˵Çå³þµã£¬Ð»Ð»ÁË¡£
²»»á
Á½¸ö×Ó½ø³ÌÍÑÀëÁ˸¸½ø³Ì£¬¶ÀÁ¢ÔËÐÐ
¸¸½ø³ÌËÀµôºó£¬ÆäËùÓÐ×ÓËï½ø³Ì±»initÊÕÑø

Èç¹ûÊǶàỊ̈߳¬ÈÎÒâÒ»Ï̵߳÷ÓÃexit£¬Õû¸ö½ø³Ì¶¼Í˳ö

ÒýÓÃ
²»»á
Á½¸ö×Ó½ø³ÌÍÑÀëÁ˸¸½ø³Ì£¬¶ÀÁ¢ÔËÐÐ
¸¸½ø³ÌËÀµôºó£¬ÆäËùÓÐ×ÓËï½ø³Ì±»initÊÕÑø

Èç¹ûÊǶàỊ̈߳¬ÈÎÒâÒ»Ï̵߳÷ÓÃexit£¬Õû¸ö½ø³Ì¶¼Í˳ö


¸ßÊÖÖ¸½Ì£º
ÒýÓÃ
Èç¹ûÊǶàỊ̈߳¬ÈÎÒâÒ»Ï̵߳÷ÓÃexit£¬Õû¸ö½ø³Ì¶¼Í˳ö

exitÊÇÖÕÖ¹½ø³ÌµÄ£¬ÄÇÖÕÖ¹Ï̵߳ÄÊÇÄĸöº¯Êý£¨_exit()£©?
лл


ÒýÓÃ
ÒýÓà 1 Â¥ deep_pro µÄ»Ø¸´:
²»»á
Á½¸ö×Ó½ø³ÌÍÑÀëÁ˸¸½ø³Ì£¬¶ÀÁ¢ÔËÐÐ
¸¸½ø³ÌËÀµôºó£¬ÆäËùÓÐ×ÓËï½ø³Ì±»initÊÕÑø

Èç¹ûÊǶàỊ̈߳¬ÈÎÒâÒ»Ï̵߳÷ÓÃexit£¬Õû¸ö½ø³Ì¶¼Í˳ö


¸ßÊÖÖ¸½Ì£º
ÒýÓà 1 Â¥ deep_pro µÄ»Ø¸´:
Èç¹ûÊǶàỊ̈߳¬ÈÎÒâÒ»Ï̵߳÷ÓÃexit£¬Õû¸ö½ø³Ì¶¼Í˳ö

exitÊÇÖÕÖ¹½ø³ÌµÄ£¬ÄÇÖÕÖ¹Ï̵߳ÄÊÇÄĸöº¯Êý£¨_exit()£©?
лл



pthread_exit()


exitÊÇÖÕÖ¹½ø³ÌµÄ£¬ÄÇÖÕÖ¹Ï̵߳ÄÊÇÄĸöº¯Êý£¨_exit()£©? 

pthread_exit()Ö÷¶¯Í˳öÏß³Ì
pthread_cancel(),ÍⲿÉèÖÃÏß³ÌÍ˳öµã

Èç¹û¸¸½ø³Ìµ÷ÓÃexit(0)Í˳ö£¬ 
ÄÇôÓɸýø³Ì´´½¨µÄÁ½¸ö×Ó½ø³Ì»áÁ¢¼´Í˳öÂ𣿣¿£¿ 
Ï£ÍûΧÈƸÃÎÊÌâ˵Çå³þµã£¬Ð»Ð»ÁË¡£

¸¸½ø³ÌÍ˳öÖ®ºó,×Ó½ø³Ì»á±»i


Ïà¹ØÎÊ´ð£º

linux»·¾³ÏÂgethostbynameº¯ÊýÎÊÌâ - C/C++ / CÓïÑÔ

дÁ˸ö²âÊÔ³ÌÐòÈçÏÂ
   
  struct hostent *hp; 
char AlarmDevIP[20];  
  int x2;

hp = gethostbyname("www.google.com");
if (hp)
{ ......

linux ÏÂusbÉ豸Çý¶¯ÎÊÌ⣿

linux ÏÂusbÉ豸£¬ÔÚrootȨÏÞÏ£¬É豸¿ÉÒÔÕý³£ÕÒµ½Çý¶¯£¬ 
µ«ÔÚÆÕͨÓû§ÏÂÕÒ²»µ½É豸Çý¶¯£¬
ÔõÑù²Å¿ÉÒÔÔÚÆÕͨÓû§ÏÂʹÓÃusbÉ豸£¿
Çë¸ßÊÖÖ¸½Ì
°ï¶¥Ï¡¢

ûÓöµ½¹ý£¬ÎÒÓõÄfedoraÆÕͨÓû§Ä¬ÈϵÄÒ²ÄÜÓðɣ ......

[HJ_34] ÔÚHTMLÍøҳϣ¬ÓÃJS ´ò¿ªLINUXϵļÇʱ¾

ÈçÌ⣬ÔÚWINDOWSµ×ϵÄCODE»á£¬µ«ÔÚLINUXϲ»ÖªµÀÈçºÎʵÏÖ£¬JSµÄ´úÂëÓ¦¸ÃÊDz»Ò»ÑùµÄ¡£ Çó½Ì¡£

·Ö²»¹»ÔÙ¼Ó¡£

http://topic.csdn.net/u/20100113/08/17ba1e71-4c33-43f6-91a5-0e031c86e5ed.html
linux ......

linuxÏÂtomcatµÄ¶àÓòÃûÅäÖÃ

ÎÒµÄÎļþÊÇ·ÅÔÚwebappsÏÂÃæ
ÔÚ /etc/hosts ¼ÓÈëÁË 127.0.0.1 www.abc.com
conf/server.xml ¼ÓÁË
<Host name="www.abc.com" appBase="webapps" unpackWARs="true" autoDepl ......

linux³ÌÐòÆô¶¯ÎÊÌâ

ÎÒÓõÄLinuxϵͳÊÇFedora7£¬ÊÇÒ»¸öÉù¿¨²É¼¯È»ºó·¢ËÍÊý¾Ýµ½·þÎñÆ÷µÄÏÂλ»ú³ÌÐò£¬ÎÒÔÚ/etc/rc.d/rc.localÀïÃæ¼ÓÁË¿ª»úÆô¶¯µÄ·¾¶£¬³ÌÐòÖ±½ÓÔÚÕË»§µÇ¼֮ǰ¾ÍÆô¶¯ÁË£¬¶øÇÒÀïÃæµÄÏß³ÌÅܵÄÒ²ÓÐÎÊÌ⣬²»ÖªµÀÔõô»ØÊ£¿ÊÇÎÒ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ