Linux ÄÚºËÌåϵ¼ò½é¡¾×ª¡¿
1.Linux Äں˼ò½é ÏÖÔÚÈÃÎÒÃÇ´ÓÒ»¸ö±È½Ï¸ßµÄ¸ß¶ÈÀ´ÉóÊÓһϠGNU/Linux ²Ù×÷ϵͳµÄÌåϵ½á¹¹¡£Äú¿ÉÒÔ´ÓÁ½¸ö²ã´ÎÉÏÀ´¿¼ÂDzÙ×÷ϵͳ£¬Èçͼ 1 Ëùʾ¡£ ͼ 1. GNU/Linux ²Ù×÷ϵͳµÄ»ù±¾Ìåϵ½á¹¹ ×îÉÏÃæÊÇÓû§£¨»òÓ¦ÓóÌÐò£©¿Õ¼ä¡£ÕâÊÇÓû§Ó¦ÓóÌÐòÖ´Ðеĵط½¡£Óû§¿Õ¼äÖ®ÏÂÊÇÄں˿ռ䣬Linux ÄÚºËÕýÊÇλÓÚÕâÀï¡£ GNU C Library £¨glibc£©Ò²ÔÚÕâÀï¡£ËüÌṩÁËÁ¬½ÓÄں˵Äϵͳµ÷Óýӿڣ¬»¹ÌṩÁËÔÚÓû§¿Õ¼äÓ¦ÓóÌÐòºÍÄÚºËÖ®¼ä½øÐÐת»»µÄ»úÖÆ¡£Õâµã·Ç³£ÖØÒª£¬ÒòΪÄں˺ÍÓû§¿Õ¼äµÄÓ¦ÓóÌÐòʹÓõÄÊDz»Í¬µÄ±£»¤µØÖ·¿Õ¼ä¡£Ã¿¸öÓû§¿Õ¼äµÄ½ø³Ì¶¼Ê¹ÓÃ×Ô¼ºµÄÐéÄâµØÖ·¿Õ¼ä£¬¶øÄÚºËÔòÕ¼Óõ¥¶ÀµÄµØÖ·¿Õ¼ä¡£ Linux Äں˿ÉÒÔ½øÒ»²½»®·Ö³É 3 ²ã¡£×îÉÏÃæÊÇϵͳµ÷Óýӿڣ¬ËüʵÏÖÁËһЩ»ù±¾µÄ¹¦ÄÜ£¬ÀýÈç read ºÍ write¡£ÏµÍ³µ÷ÓýӿÚÖ®ÏÂÊÇÄں˴úÂ룬¿ÉÒÔ¸ü¾«È·µØ¶¨ÒåΪ¶ÀÁ¢ÓÚÌåϵ½á¹¹µÄÄں˴úÂë¡£ÕâЩ´úÂëÊÇ Linux ËùÖ§³ÖµÄËùÓд¦ÀíÆ÷Ìåϵ½á¹¹ËùͨÓõġ£ÔÚÕâЩ´úÂëÖ®ÏÂÊÇÒÀÀµÓÚÌåϵ½á¹¹µÄ´úÂ룬¹¹³ÉÁËͨ³£³ÆΪ BSP£¨Board Support Package£©µÄ²¿·Ö¡£ÕâЩ´úÂëÓÃ×÷¸ø¶¨Ìåϵ½á¹¹µÄ´¦ÀíÆ÷ºÍÌض¨ÓÚƽ̨µÄ´úÂë¡£ ÔÚLinux ÄÚºËÖУ¬°üÀ¨ÁË£º ½ø³Ì¹ÜÀí£¨process management£© ¶¨Ê±Æ÷£¨timer£© ÖжϹÜÀí£¨interrupt management£© ÄÚ´æ¹ÜÀí£¨memory management£© Ä£¿é¹ÜÀí£¨module management£© ÐéÄâÎļþϵͳ½Ó¿Ú£¨VFS layer£© Îļþϵͳ£¨file system£© É豸Çý¶¯³ÌÐò£¨device driver£© ½ø³Ì¼äͨÐÅ£¨inter-process communication£© ÍøÂç¹ÜÀí£¨network management£© ϵͳÆô¶¯£¨system init£©µÈ²Ù×÷ϵͳ¹¦ÄܵÄʵÏÖ¡£ 2.Linux Äں˵ÄÖ÷Òª×Óϵͳ ÏÖÔÚʹÓÃͼ2ÖеķÖÀà˵Ã÷ Linux Äں˵ÄÖ÷Òª×é¼þ¡£ ͼ 2. Linux Äں˵ÄÒ»¸öÌåϵ½á¹¹Í¸ÊÓͼ ÄÚºËÊÇʲô£¿ ÄÚºËʵ¼ÊÉϽö½öÊÇÒ»¸ö×ÊÔ´¹ÜÀíÆ÷¡£²»¹Ü±»¹ÜÀíµÄ×ÊÔ´Êǽø³Ì¡¢Äڴ滹ÊÇÓ²¼þÉ豸£¬Äں˸ºÔð¹ÜÀí²¢²Ã¶¨¶à¸ö¾ºÕùÓû§¶Ô×ÊÔ´µÄ·ÃÎÊ£¨¼È°üÀ¨Äں˿ռäÒ²°üÀ¨Óû§¿Õ¼ä£© ϵͳµ÷ÓÃ½Ó¿Ú SCI ²ãÌṩÁËijЩ»úÖÆÖ´ÐдÓÓû§¿Õ¼äµ½Äں˵ĺ¯Êýµ÷Óá£ÕýÈçÇ°ÃæÌÖÂÛµÄÒ»Ñù£¬Õâ¸ö½Ó¿ÚÒÀÀµÓÚÌåϵ½á¹¹£¬ÉõÖÁÔÚÏàͬµÄ´¦ÀíÆ÷¼Ò×åÄÚÒ²ÊÇÈç´Ë¡£SCI ʵ¼ÊÉÏÊÇÒ»¸ö·Ç³£ÓÐÓõĺ¯Êýµ÷Óöà·¸´ÓúͶà··Ö½â·þÎñ¡£ÔÚ ./linux/kernel ÖÐÄú¿ÉÒÔÕÒµ½ SCI µÄʵÏÖ£¬²¢ÔÚ ./linux/arch ÖÐÕÒµ½ÒÀÀµÓÚÌåϵ½á¹¹µÄ²¿·Ö¡£ÓйØÕâ¸ö×é¼þµÄ¸üÏêϸÐÅÏ¢¿ÉÒÔÔÚ ²Î¿¼×ÊÁÏ Ò»½ÚÖÐÕÒµ½¡£ ½ø³Ì¹ÜÀ
Ïà¹ØÎĵµ£º
[¾¹ý°²×°²âÊԳɹ¦µÄ·½·¨from CYBEND ]
µÚÒ»²½£ºÏµÍ³ÓëÈí¼þµÄ×¼±¸
ϵͳ°æ±¾ redhat enterprise linux 5 ,Äں˰汾 2.6.18
µÚ¶þ²½£ºÈí¼þ°üµÄ×¼±¸
httpdÈí¼þ°ü£ºhttpd-2.2.8.tar.bz2
mysqlÈí¼þ°ü´Ómysql¹Ù·½ÍøÕ¾ÏÂÔØ£¬ÎÒÑ¡ÓõÄÊÇehel5µÄrpm°ü
MySQL-server-community-5.0.51a-0.rhel5.i386.rpm
MySQL-client-community ......
ÕâÒ»½ÚÎÒÃÇÀ´¿´¿´ÆäËûÏ̺߳¯Êý£º
int pthread_tryjoin_np(pthread_t thread_handle, void ** thread_return);
int pthread_timedjoin_np (pthread_t thread_handle, void **thread_return, __const struct timespec *abstime);
pthread_tryjoin_np»á¿ÉÒÔÓÃÀ´ÅжÏthread_handleÖ¸ÏòµÄÏß³ÌÊÇ·ñÒѾÖÐÖ¹£¬Èç¹ûûÓÐÔò*thre ......
ʲôÊÇÔËÐ춱ð
ÔËÐм¶¾ÍÊDzÙ×÷ϵͳµ±Ç°ÕýÔÚÔËÐеŦÄܼ¶±ð¡£
Õâ¸ö¼¶±ð´Ó1µ½6 £¬
¾ßÓв»Í¬µÄ¹¦ÄÜ¡£
ÕâЩ¼¶±ðÔÚ/etc/inittabÎļþÀïÖ¸¶¨¡£
Õâ¸öÎļþÊÇinit³ÌÐòÑ°ÕÒµÄÖ÷ÒªÎļþ£¬×îÏÈÔËÐеķþÎñÊÇÄÇЩ·ÅÔÚ/etc/rc.d Ŀ¼ÏµÄÎļþ¡£
²»Í¬µÄÔËÐ춶¨ÒåÈçÏ£º(¿ÉÒԲο¼LinuxÀïÃæµÄ/etc/inittab) ¡¡¡¡
# ȱʡµÄÔËÐм¶£¬RHSÓ ......