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

Linuxϵͳµ÷ÓÃfork()Ó÷¨Ïê½â

  1. ÏÈ¿´ÏÂÃæ´úÂë:
       #include<stdio.h>
       #include <sys/types.h>    //pid_tÀàÐͶ¨Òå
       #include <unistd.h>        //º¯Êýfork()£¬getpid()¶¨Òå
       void main ()
       {
              pid_t pid;
              pid=fork();
              if (pid < 0)
                         printf("error in fork!");
              else if (pid == 0)
                        printf("i am the child process, my process id is %d\n",getpid());
              else
                         printf("i am the parent process, my process id is %d\n",getpid());
        }
        Òª¸ãÇå³þforkµÄÖ´Ðйý³Ì£¬¾Í±ØÐëÏȽ²Çå³þ²Ù×÷ϵͳÖеē½ø³Ì(process)”¸ÅÄî¡£
        Ò»¸ö½ø³Ì£¬Ö÷Òª°üº¬Èý¸öÔªËØ£º
        o. Ò»¸ö¿ÉÒÔÖ´ÐеijÌÐò£»
        o. ºÍ¸Ã½ø³ÌÏà¹ØÁªµÄÈ«²¿Êý¾Ý£¨°üÀ¨±äÁ¿£¬ÄÚ´æ¿Õ¼ä£¬»º³åÇøµÈµÈ£©£»
        o. ³ÌÐòµÄÖ´ÐÐÉÏÏÂÎÄ£¨execution context£©¡£
     


Ïà¹ØÎĵµ£º

ʵսLinux Bluetooth±à³Ì£¨ËÄ£© L2CAP²ã±à³Ì

£¨L2CAPЭÒé¼ò½é£¬L2CAPÔÚBlueZÖеÄʵÏÖÒÔ¼°L2CAP±à³Ì½Ó¿Ú£©
Ò»£ºL2CAPЭÒé¼ò½é£º
Logical Link Control and Adaptation Protocol(L2CAP)
Âß¼­Á¬½Ó¿ØÖƺÍÊÊÅäЭÒé (L2CAP) ΪÉϲãЭÒéÌṩÃæÏòÁ¬½ÓºÍÎÞÁ¬½ÓµÄÊý¾Ý·þÎñ£¬²¢Ìṩ¶àЭÒ鹦ÄܺͷָîÖØ×é²Ù×÷¡£L2CAP ³äÐíÉϲãЭÒéºÍÓ¦ÓÃÈí¼þ´«ÊäºÍ½ÓÊÕ×î´ó³¤¶ÈΪ 64K µÄ L2CAP Ê ......

Linuxϵͳ¹ÜÀíʵ¼ù(10)£ºPPPoEÉÏÍøÅäÖÃ

    µ±Ê¹ÓÃDSLÁ¬½ÓÉÏÍøʱ£¬Èç¹ûÄãʹÓÃÊÇÓй̶¨»ò¾²Ì¬IPµØÖ·µÄDSLÁ¬½Ó£¬ÄÇôÅäÖò½ÖèºÍÇ°ÃæµÄ“ÍøÂçÅäÖÔÖÐÃèÊöµÄÊÇÒ»ÑùµÄ¡£Äã°ÑÒÔÌ«Íø½Ó¿ÚÁ¬½Óµ½DSL modemÉÏ£¬ÅäÖÃISPÌṩµÄIPµØÖ·£¬×ÓÍøÑÚÂ룬¹ã²¥µØÖ·£¬ºÍÍø¹ØÐÅÏ¢¡£ÖØÆôÍøÂçÉ豸ºóÄã¾ÍÓ¦¸ÃÁ¬ÉÏÍøÁË¡£¼Çס£¬Äã¿ÉÄÜ»¹ÐèÒªÕýÈ·µØÅäÖÃDNS·þÎñÆ÷¡£Èç ......

Linuxϵͳ¹ÜÀíʵ¼ù(11)£ºÍøÂçÕï¶ÏµÄ»ù±¾¼¼ÇÉ

    1¡¢ÍøÂçÂýµÄÔ­Òò£ºÍøÂçÎÊÌâ¾­³£ÒÔÁ½ÖÖÐÎʽ³öÏÖ¡£µÚÒ»ÖÖÊÇÀ´×ÔÔ¶³Ì·þÎñÆ÷µÄÂýËÙÏìÓ¦£¬µÚ¶þÖÖÊÇÍêȫʧȥÁ¬½Ó¡£ÍøÂçÂýµÄ¸ùÔ´Ö÷ÒªÓÐÍø¿¨µÄË«¹¤ºÍËٶȵIJ»¼æÈÝ¡¢ÍøÂçÓµÈû¡¢²»Á¼µÄ·ÓÉ¡¢ÏßÀÂÎÊÌâ¡¢µç×è»òµç²¨¸ÉÈÅ¡¢Ô¶¶Ë·þÎñÆ÷¸ºÔعýÖØ¡¢DNSÅäÖò»µ±¡£Á¬½Ó¶ªÊ§µÄ¸ùÔ´Ö÷ÒªÓеçÔ´ÎÊÌâ¡¢Ô¶¶ËµÄ·þÎñÆ÷»ò³ÌÐò±»¹Øµô¡ ......

ÎÒѧLinuxµÄ¼¸¸öÌå»á


2007-9-24
ÎÒѧLinuxµÄ¼¸¸öÌå»á
´Ó 4G spaces ×÷ÕߣºEric
ÕâÊÇÎÒΪ Youbentou ¼Æ»®¹±Ï׵ĵÚһƪÎĵµ, ËãÊǺóÐøÎÄÕµĿªÆª´Ê. ±¾ÎÄ°´ÕÕGPLЭÒé·¢²¼.
Linux ÊÇÒ»¸ö¸ßЧµÄ¹¤×÷»·¾³, ¶ÔÓÚÏëҪѧϰLinuxµÄÈË, ÕâÒ»µãÎÞÐèÎÒ¶à½âÊÍ. Òò´Ë, ±¾ÎIJ»ÊÇÈ°´ó¼Ò¶¼Í¶ÉíLinux (ËäÈ»ÎÒÒ»Ö±ÔÚÕâô×ö), ¶øÊǸøÓÐÖ¾ÓÚѧºÃ Linux µÄÈ˼¸ ......

linux 0.11 ÄÚºËѧϰ setup.s

²Î¿¼×ÊÁÏ LinuxÄÚºËÍêȫעÊÍ.pdf
            ÍøÉÏÏà¹Ø×ÊÁÏ
! setup³ÌÐòµÄÖ÷Òª×÷ÓÃÊÇÀûÓÃrom biosµÄÖжÏÀ´¶ÁÈ¡»úÆ÷ϵͳ²ÎÊý£¬²¢½«ÕâЩÊý¾Ý±£´æÔÚ0x90000
! ¿ªÊ¼µÄλÖÃ(¸²¸ÇµôÁËbootsect³ÌÐòËùÔÚµÄλÖÃ)£¬ËùÈ¡µÃµÄ²ÎÊý±»Äں˵ÄÏà¹Ø³ÌÐòʹÓá£×¢ÒâÔÚbootsect
! Ö ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ