Linuxѧϰ±Ê¼ÇÁãÁãËÄ
Ç°¼¸ÌìºÍͬÊÂÌÖÂÛµ½¶àºË¡¢¶àÈÎÎñ£¬¸Ð̾д³ÌÐòʱ¶àÏ̼߳äͬ²½µÄÂé·³£¬µ£ÐÄд³öÀ´µÄ³ÌÐò»á³öÎÊÌ⣬Ìý˵¶àÈÎÎñÊDZȶû¸Ç´Ä·¢Ã÷µÄ£¬È»ºó£¬ÌÖÂÛµ½Èç¹ûÕâ¸öÊÀ½çûÓжàÈÎÎñ»áÔõô°ì£¿
Ò»¸öcpuÔÚͬһʱ¼äÖ»ÄܸÉÒ»¼þÊÂÇ飬ËùνµÄ¶àÈÎÎñʵ¼ÊÉÏÊǼٵķÖʱ»úÖÆ£¬ÎÒÓÐÒ»¸öͬÊÂдÁËÒ»¸öµ¥Æ¬»úÉϵÄÀàËÆÓÚUCOSµÄ²Ù×÷ϵͳ£¬²ÉÓö¨Ê±Æ÷
ÖжÏÀ´ÊµÏÖÈÎÎñµÄÇл»ÒÔ¼°ÒÔÏûÏ¢Çý¶¯Ö®¡£ÕâÖÖ×ö·¨ºÍÏÖ´ú²Ù×÷ϵͳÖеĶàÈÎÎñÓÐʲôÇø±ðÄØ£¿
Linux¶Ô½ø³ÌµÄ¶¨ÒåÓÐËĸöÒªËØ£ºÓÐÒ»¶Î¿ÉÒÔÖ´ÐеĴúÂë¡¢ÓжÀÁ¢µÄÓû§¿Õ¼ä¡¢ÓÐϵͳ¶ÑÕ»¡¢ÓÐtask_struct¡£
Èç¹ûûÓжÀÁ¢µÄÓû§¿Õ¼ä£¬ÄǾͽÐỊ̈߳»Èç¹ûÍêȫûÓÐÓû§¿Õ¼ä£¬ÄǾͽÐÄÚºËÏ̡߳£
¿ÉÒÔ´ÓLinuxÈçºÎʵÏÖ¶àÈÎÎñÀ´Àí½âÕâËĸöÒªËØ£»Ã¿¸ö½ø³Ì¶¼ÓÐ×Ô¼ºµÄ4GµÄÐéÄâµØÖ·¿Õ¼ä¡£Óû§½ø³Ì¼ä»¥²»¸ÉÈÅ¡£¼´Óû§½ø³ÌA²»¿ÉÒÔ·ÃÎÊÓû§½ø³ÌBµÄ
¿Õ¼ä£»Óû§½ø³ÌB²»¿ÉÒÔ·ÃÎÊÓû§½ø³ÌAµÄ¿Õ¼ä¡£ÕâÊÇÏÖ´ú²Ù×÷ϵͳÓë¼òµ¥µÄ²Ù×÷ϵͳ֮¼äµÄ²îÒì¡£ÔÚUCOSºÍÎÒͬʵÄÄǸöϵͳÖУ¬ÊµÏÖ½ø³ÌÇл»µÄ»ú
ÖƺÍÏÖ´ú²Ù×÷ϵͳµÄÀàËÆ£¬²»Í¬Ö®´¦ÔÚÓÚ£¬¼òµ¥µÄ²Ù×÷ϵͳÉÏ£¬½ø³ÌÖ®¼äûÓжÀÁ¢ÐÔ£»Ò²¾ÍÊÇ´æ´¢¹ÜÀí×öµÄÄDz¿·Ö¹¤×÷¡£ÕâÒ²ÊÇÏÖ´ú²Ù×÷ϵͳÄܹ»·Ö³É
²Ù×÷ϵͳ²ã¡¢Ó¦Óò㣬ÒÔ¼°ÔÚÓ¦ÓòãÉÏÃæÓÐÄÇô¶àÓ¦ÓõÄÔÒò¡£´ÓÕâ¸ö½Ç¶È¿´£¬¼òµ¥²Ù×÷ϵͳÎÞÂ۶࿪·Å£¬Ëü»¹ÊÇ·â±ÕµÄ£¬ÕâÖÖÌØÐÔ¾ö¶¨ÁËËüÎÞ·¨·¢Õ¹
ÆðÀ´¡£
LinuxÊÇÈçºÎ×öµ½½ø³Ì¼äÏ໥¶ÀÁ¢µÄÄØ£¿¾ÍÊÇͨ¹ýËüµÄ´æ´¢¹ÜÀí»úÖƺͽø³Ì¹ÜÀí»úÖÆ¡£Ò»¶Î¿ÉÖ´ÐдúÂë¡¢Ò»¸ö¶ÀÁ¢µÄÓû§¿Õ¼ä¡¢Ò»¿éϵͳ¶ÑÕ»¿Õ¼äºÍ
Ò»¸ötask_struct½á¹¹£»ÆäÖУ¬ÏµÍ³¶ÑÕ»¿Õ¼äºÍtask_structÔÚϵͳ¿Õ¼ä£¬±ØÐëÔÚϵͳģʽÏÂÐ޸ģ»¶ø¶ÀÁ¢µÄÓû§¿Õ¼äºÍ¿ÉÖ´ÐдúÂ룬ËüËùÒþº¬µÄÒâ
˼ÊÇ£ºÓû§½ø³ÌÄܹ»ÐÞ¸Ä×Ô¼º·ÖÅäµÄ¿Õ¼äµÄÄÚÈÝ£¬²»ÄÜÐ޸IJ»ÊÇ×Ô¼º·ÖÅäµÄ¿Õ¼äµÄÄÚÈÝ£¬ÕâÑù£¬¾Í±£Ö¤Á˽ø³Ì¼äµÄ¶ÀÁ¢¡£
ÎÒÃÇ¿ÉÒÔÏëÏó½ø³ÌµÄÐÐΪ£º
1. ½ø³ÌµÄµ®Éú£¬ÔÚϵͳģʽÏ£¬ÎªÒ»¸ö½ø³Ì·ÖÅäϵͳ¶ÑÕ»¡¢task_struct£»
2. µ¼ÈëÒ»¶Î¿ÉÖ´ÐдúÂë¶Î£¬¸ù¾Ý´úÂë¶ÎÖеÄÄÚÈÝ£¬·ÖÅäÓû§¿Õ¼äÖеÄÈ«¾Ö±äÁ¿ºÍ¾²Ì¬±äÁ¿£¬²¢·ÖÅäºÃ¶ÑÕ»¿Õ¼ä£»
3. Ö´ÐдúÂë¶Î£¬µ±ÐèÒªµÄÊý¾ÝÔÚÕ»ÖвÙ×÷ʱ£¬µ÷ÕûÕ»Ö¸Õ룬MMU½«ÐéÄâµØÖ·Ó³Éäµ½ÎïÀíµØÖ·¡£
4. Ö´ÐдúÂë¶Î£¬µ±ÐèÒªµÄÊý¾ÝÔÚ¶ÑÖвÙ×÷ʱ£¬Ê×ÏÈÇëÇó·ÖÅä¶Ñ£¬½øÈëÄÚºËģʽ£¬·ÖÅäÏàÓ¦µÄÐéÄâµØÖ·¿Õ¼ä£¬²¢¼ÓÈëtask_structÖеÄÐé´æÇø¼äÁбí
ÖУ¬Í¬Ê±·ÖÅäÎïÀíÒ³Ã棬ÔÚҳĿ¼±íºÍÒ³±íÖмÓÈëÏàÓ¦µÄÏ½¨Á¢Ó³Éä¹Øϵ£»È»ºó·ÃÎÊÕâЩÐéÄâµØÖ·£¬ÓÉMMU½øÐеØÖ·Ó³Éä¡£
ÄÚºËÊÇÈçºÎ¹ÜÀí½
Ïà¹ØÎĵµ£º
Ò»£ºÇ°ÑÔ
×î½üÔÚÑо¿androidµÄsensor driver£¬Ö÷ÒªÊÇE-compass£¬ÆäÖÐÓõ½ÁËLinux input×Óϵͳ.ÔÚÍøÉÏÒ²¿´Á˺ܶàÕâ·½ÃæµÄ×ÊÁÏ£¬¸Ð¾õ»¹ÊÇÕâƪ·ÖÎöµÄ±È½ÏϸÖÂ͸³¹£¬Òò´ËתÔØÒ»ÏÂÒÔ±ã×Ô¼ºÑ§Ï°£¬Í¬Ê±ºÍ´ó¼Ò·ÖÏí£¡
£¨Õâƪ²©¿ÍÖ÷ÒªÊÇÒÔ¼üÅÌÇý¶¯ÎªÀýµÄ£¬²»¹ý½²½âµÄÊÇLinux Input Subsystem£¬¿ÉÒÔ×ÐϸµÄÑо¿Ò»Ï£¡£©
¼üÅÌÇý¶¯½«¼ì ......
Ò»£®Ìî¿ÕÌ⣺
1. ÔÚLinuxϵͳÖУ¬ÒÔÎļþ·½Ê½·ÃÎÊÉ豸 ¡£
2. LinuxÄÚºËÒýµ¼Ê±£¬´ÓÎļþ/etc/fstabÖжÁÈ¡Òª¼ÓÔصÄÎļþϵͳ¡£
3. LinuxÎļþϵͳÖÐÿ¸öÎļþÓÃi½ÚµãÀ´±êʶ¡£
4. È«²¿´ÅÅÌ¿éÓÉËĸö²¿·Ö×é³É£¬·Ö±ðΪÒýµ¼¿é ¡¢×¨ÓÃ¿é ¡¢ i½Úµã±í¿é ºÍÊý¾Ý´æ´¢¿é¡£
5. Á´½Ó·ÖΪ£ºÓ²Á´½Ó ºÍ ·ûºÅÁ´½Ó¡£
6. ³¬¼¶¿é°üº¬ÁËi½Úµã±í ......
»òÎÊ£ºLinux¼æÈÝÐԲ
ÕæµÄÊÇÕâÑùÂ𣿴Ó2.6.30Äں˿ªÊ¼£¬Çý¶¯³ÌÐòÕ¼Õû¸öÄں˵ĴúÂë±ÈÂÊÊ״γ¬¹ý50£¥¡£¾ÍÔÚ2009ÄêÊ¥µ®½ÚÄÇÌ죬Linus Torvalds ÔÚ¸ø´ó¼Ò·¢µÄÊ¥µ®¿ìÀÖµÄÓʼþÖжԴúÂë×öÁËͳ¼Æ£¬Çý¶¯³ÌÐòµÄ´úÂ뾹ȻռÁËËùÓдúÂëµÄ69£¥ÁËÒѾ£¬ÏÖÔÚÄÚºË×î¸ß°æ±¾ÊÇ2.6.32¡£ÓÎÏ·Ò¡¸ËÊ ......
ϵͳÖÐÄܹ»Ëæ»ú£¨²»ÐèÒª°´Ë³Ðò£©·ÃÎʹ̶¨´óСÊý¾ÝƬ£¨chunks£©µÄÉ豸±»³Æ×÷¿éÉ豸£¬ÕâЩÊý¾ÝƬ¾Í³Æ×÷¿é¡£×î³£¼ûµÄ¿éÉ豸ÊÇÓ²ÅÌ£¬³ý´ËÒÔÍ⣬»¹ÓÐÈíÅÌÇý¶¯Æ÷¡¢CD-ROMÇý¶¯Æ÷ºÍÉÁ´æµÈµÈÐí¶àÆäËû¿éÉ豸¡£×¢Ò⣬ËüÃǶ¼ÊÇÒÔ°²×°ÎļþϵͳµÄ·½Ê½Ê¹Óõė—ÕâÒ²ÊÇ¿éÉ豸һ°ãµÄ·ÃÎÊ·½Ê½¡£
& ......
1. java ... > log.out
½«Java³ÌÐòÊä³ö ±£´æµ½ log.out Îļþ
2. java .... >>log.out
ÓëÉÏÒ»¸ö²»Í¬£¬Õâ¸öÊÇ×·¼Óµ½Îļþ£¬¶ø²»»á¸²¸ÇÔÓÐÊä³ö.
3. java .... >>log.out 2>&1
ÔÚJavaÀï(ÆäËûÓïÑÔÒ²Ó¦¸ÃÒ»Ñ ......