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£©¡£
 
Ïà¹ØÎĵµ£º
£¨L2CAPÐÒé¼ò½é£¬L2CAPÔÚBlueZÖеÄʵÏÖÒÔ¼°L2CAP±à³Ì½Ó¿Ú£©
Ò»£ºL2CAPÐÒé¼ò½é£º
Logical Link Control and Adaptation Protocol(L2CAP)
Âß¼Á¬½Ó¿ØÖƺÍÊÊÅäÐÒé (L2CAP) ΪÉϲãÐÒéÌṩÃæÏòÁ¬½ÓºÍÎÞÁ¬½ÓµÄÊý¾Ý·þÎñ£¬²¢Ìṩ¶àÐÒ鹦ÄܺͷָîÖØ×é²Ù×÷¡£L2CAP ³äÐíÉϲãÐÒéºÍÓ¦ÓÃÈí¼þ´«ÊäºÍ½ÓÊÕ×î´ó³¤¶ÈΪ 64K µÄ L2CAP Ê ......
µ±Ê¹ÓÃDSLÁ¬½ÓÉÏÍøʱ£¬Èç¹ûÄãʹÓÃÊÇÓй̶¨»ò¾²Ì¬IPµØÖ·µÄDSLÁ¬½Ó£¬ÄÇôÅäÖò½ÖèºÍÇ°ÃæµÄ“ÍøÂçÅäÖÔÖÐÃèÊöµÄÊÇÒ»ÑùµÄ¡£Äã°ÑÒÔÌ«Íø½Ó¿ÚÁ¬½Óµ½DSL modemÉÏ£¬ÅäÖÃISPÌṩµÄIPµØÖ·£¬×ÓÍøÑÚÂ룬¹ã²¥µØÖ·£¬ºÍÍø¹ØÐÅÏ¢¡£ÖØÆôÍøÂçÉ豸ºóÄã¾ÍÓ¦¸ÃÁ¬ÉÏÍøÁË¡£¼Çס£¬Äã¿ÉÄÜ»¹ÐèÒªÕýÈ·µØÅäÖÃDNS·þÎñÆ÷¡£Èç ......
1¡¢ÍøÂçÂýµÄÔÒò£ºÍøÂçÎÊÌâ¾³£ÒÔÁ½ÖÖÐÎʽ³öÏÖ¡£µÚÒ»ÖÖÊÇÀ´×ÔÔ¶³Ì·þÎñÆ÷µÄÂýËÙÏìÓ¦£¬µÚ¶þÖÖÊÇÍêȫʧȥÁ¬½Ó¡£ÍøÂçÂýµÄ¸ùÔ´Ö÷ÒªÓÐÍø¿¨µÄË«¹¤ºÍËٶȵIJ»¼æÈÝ¡¢ÍøÂçÓµÈû¡¢²»Á¼µÄ·ÓÉ¡¢ÏßÀÂÎÊÌâ¡¢µç×è»òµç²¨¸ÉÈÅ¡¢Ô¶¶Ë·þÎñÆ÷¸ºÔعýÖØ¡¢DNSÅäÖò»µ±¡£Á¬½Ó¶ªÊ§µÄ¸ùÔ´Ö÷ÒªÓеçÔ´ÎÊÌâ¡¢Ô¶¶ËµÄ·þÎñÆ÷»ò³ÌÐò±»¹Øµô¡ ......
2007-9-24
ÎÒѧLinuxµÄ¼¸¸öÌå»á
´Ó 4G spaces ×÷ÕߣºEric
ÕâÊÇÎÒΪ Youbentou ¼Æ»®¹±Ï׵ĵÚһƪÎĵµ, ËãÊǺóÐøÎÄÕµĿªÆª´Ê. ±¾ÎÄ°´ÕÕGPLÐÒé·¢²¼.
Linux ÊÇÒ»¸ö¸ßЧµÄ¹¤×÷»·¾³, ¶ÔÓÚÏëҪѧϰLinuxµÄÈË, ÕâÒ»µãÎÞÐèÎÒ¶à½âÊÍ. Òò´Ë, ±¾ÎIJ»ÊÇÈ°´ó¼Ò¶¼Í¶ÉíLinux (ËäÈ»ÎÒÒ»Ö±ÔÚÕâô×ö), ¶øÊǸøÓÐÖ¾ÓÚѧºÃ Linux µÄÈ˼¸ ......
²Î¿¼×ÊÁÏ LinuxÄÚºËÍêȫעÊÍ.pdf
ÍøÉÏÏà¹Ø×ÊÁÏ
! setup³ÌÐòµÄÖ÷Òª×÷ÓÃÊÇÀûÓÃrom biosµÄÖжÏÀ´¶ÁÈ¡»úÆ÷ϵͳ²ÎÊý£¬²¢½«ÕâЩÊý¾Ý±£´æÔÚ0x90000
! ¿ªÊ¼µÄλÖÃ(¸²¸ÇµôÁËbootsect³ÌÐòËùÔÚµÄλÖÃ)£¬ËùÈ¡µÃµÄ²ÎÊý±»Äں˵ÄÏà¹Ø³ÌÐòʹÓá£×¢ÒâÔÚbootsect
! Ö ......