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

Linux ÐźÅ(¼òÂԱʼÇ)

    Ò»¡¢¸ÅÒª
      Ïêϸ½éÉÜ£ºhttp://www.ibm.com/developerworks/cn/linux/l-ipc/part2/index1.html
       ÐźÅÊÇUNIXºÍLinuxϵͳÏìÓ¦½áÌõ¼þ¶ø²úÉúµÄÒ»¸öʼþ¡£½ÓÊÕµ½ÐźŵĽø³Ì»áÏàÓ¦µØ²ÉȡһЩÐж¯¡£
    £¨1£© ÔÚϵͳÖÕ¶ËÏÂÊäÈëÃüÃû: kill -l »ò trap -l ¿ÉÒԲ鿴ϵͳËùÖ§³ÖµÄÐźţ¡
    £¨2£© ÐźűàºÅ1-32 ÊÇÔçÆÚµÄÐźţ¬ÊDz»¿É¿¿Ðźţ¬ÐźÅÔÚÒ»¶¨Ìõ¼þÏ»ᶪʧ£»
    £¨3£© ÐźűàºÅ33ÒÔÉÏÊǺóÆÚ°æϵͳ±¾³öÏֵģ¬ÊÇ¿É¿¿Ðźš£ÐźÅÉú³Éʱ£¬½ø³ÌÏìÓ¦»¹Î´½áÊø£¬½«×Ô¶¯ÅŶӵȴýÏìÓ¦¡£
    £¨4£© ÐźŠ9 SIGKILL   ºÍ ÐźŠ19 SIGSTOP  ÕâÁ½¸öÐźŲ»¿ÉÒÔ±»²¶»ñ»òºöÂÔ¡£
 
 
 
    ¶þ¡¢ º¯Êý½éÉÜ:
    Í·Îļþ£º signal.h
 
   1.  Ðźż¯´¦Àí:
       sigfillset(sigset_t *set); ÉèÖÃËùÓеÄÐźŵ½setÐźż¯ÖУ»
       sigemptyset(sigset_t *set); ´ÓsetÐźż¯ÖÐÇå¿ÕËùÓÐÐźţ»
      sigaddset(sigset_t *set,int sig);ÔÚsetÐźż¯ÖмÓÈësigÐźţ»
      sigdelset(sigset_t *set,int sig);ÔÚsetÐźż¯ÖÐɾ³ýsigÐźţ»
 
   2. ÐźŴ¦Àíº¯Êý
       £¨1£©´«Í³µÄÐźŴ¦Àí½Ó¿Ú£º void (*signal(int sig, void (*func)(int )))(int),
        ÒòΪ¿É¿¿ÐźŵijöÏÖÖØй淶Á˽¡×³µÄÐźŽӿڣºint sigaction(int sig,const struct sigaction  *act,struct sigaction *oldact)£»
        ¹ØÓڽṹÌå struct sigaction £¬²éѯ man ÊÖ²á;
        struct sigaction ³ÉÔ±:
         sa_hanlder ºÍ sa_sigaction  Ö¸ÏòÐźŴ¦Àíº¯ÊýµÄÖ¸Õ룬ֻÄܶ¨ÒåÆäÖÐÒ»¸ö£¬Á½¸ö¶¼¶¨ÒåµÄ»°£¬½«Ö´ÐÐsa_handlerÖ¸ÏòµÄº¯Êý;ÆäÖпÉÒÔÖ¸Ïòºê¶¨Òå SIG_IGN£¨ºöÂÔÐźţ© ºÍ SIG_DFL£¨ÐźÅĬÈÏÐÐΪ£©£»
 
       sa_mas


Ïà¹ØÎĵµ£º

Fedora ϱàÒë linux fetion Ó¦ÓóÌÐò

Fedora ϱàÒë linux fetion Ó¦ÓóÌÐòdemo
1: °²×°±àÒë»·¾³
sudo yum install qt4-devel curl-devel gcc glibc-devel
2: È¥ http://www.libfetion.cn/Linux_demoapp_download.html ÏÂÔØ×îеÄlibfetion GUIÔ´´úÂë
3: ʹÓýâѹÃüÁî½âѹÏÂÔغóµÄÎļþ
tar -zxvf linux-fetion-***.tar.gz (***Ϊ³ÌÐò°æ±¾ºÅ)
4: ½øÈ ......

½â¾ölinux vimÂÒÂëÎÊÌâ

VimºÍËùÓеÄÁ÷ÐÐÎı¾±à¼­Æ÷Ò»Ñù£¬Vim ¿ÉÒԺܺõı༭¸÷ÖÖ×Ö·û±àÂëµÄÎļþ£¬Õ⵱Ȼ°üÀ¨ UCS-2¡¢UTF-8 µÈÁ÷ÐÐµÄ Unicode ±àÂ뷽ʽ¡£È»¶ø²»ÐÒµÄÊÇ£¬ºÍºÜ¶àÀ´×Ô Linux ÊÀ½çµÄÈí¼þÒ»Ñù£¬ÕâÐèÒªÄã×Ô¼º¶¯ÊÖÉèÖá£
Vim ÓÐËĸö¸ú×Ö·û±àÂ뷽ʽÓйصÄÑ¡Ïencoding¡¢fileencoding¡¢fileencodings¡¢termencoding (ÕâЩѡÏî¿ÉÄܵÄÈ¡ÖµÇë ......

linuxÄÚ´æ¹ÜÀíÖ®·ÇÁ¬ÐøÎïÀíµØÖ··ÖÅä(vmalloc

Ç°ÃæÎÒÃÇÒѾ­·ÖÎöÁËlinuxÈçºÎÀûÓûï°éϵͳ,slab·ÖÅäÆ÷·ÖÅäÄÚ´æ,ÓÃÕâЩ·½·¨µÃµ½µÄÄÚ´æÔÚÎïÀíµØÖ·É϶¼ÊÇÁ¬ÐøµÄ,È»¶ø,ÓÐЩʱºò,ÿ´ÎÇëÇóÄÚ´æʱ,ϵͳ¶¼·ÖÅäÎïÀíµØÖ·Á¬ÐøµÄÄÚ´æ¿éÊDz»ºÏÊʵÄ,¿ÉÒÔÀûÓÃС¿éÄÚ´æ“Á¬½Ó”³É´ó¿é¿ÉʹÓõÄÄÚ´æ.ÕâÔÚ²Ù×÷ϵͳÉè¼ÆÖÐÒ²±»³ÆΪ “ÄÚ´æÆ´½Ó”,ÏÔÈ»,ÄÚ´æÆ´½ÓÔÚÐèÒª½Ï´óÄÚ ......

ÔÚlinuxÏÂÈçºÎ²é¿´Ó²¼þÐÅÏ¢

ÔÚlinuxÏÂÈçºÎ²é¿´Ó²¼þÐÅÏ¢£¿
×î½øÏëÂò±Ê¼Ç±¾£¬Ï£ÍûÔÚlinuxÏÂÑé»ú¡£
²é¿´cpuÐÅÏ¢¿ÉÒÔʹÓÃ
cat /proc/cpuinfo
²é¿´ÏÔ¿¨Ê¹ÓÃ
lspci |grep VGA
ÎÒÖ»ÖªµÀÉÏÃæÁ½ÖÖ·½·¨£¬ÇëÎʸßÊÖ»¹ÓбðµÄ²é¿´·½Ê½Â𣿰üÀ¨¿´cpu¡¢ÄÚ´æ¡¢ÏÔ¿¨¡¢Ó²ÅÌ¡¢Ö÷°åµÈÐÅÏ¢¡£
ÄÜÏêϸµã×îºÃ£¬Ð»Ð»¸÷λ¡£
-------------------------------------------- ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ