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

linuxÏ¿ØÖÆ̨ÖÐÂÒÂë½â¾ö

      ½«ÖÐÎÄ°æ±¾µÄLINUXÇл»¿ØÖÆ̨µ½ÖÕ¶Ëģʽʱºò£¬²¿·ÖÃüÁîºÍ²Ù×÷¹ý³ÌÖÐÏÔʾÂÒÂ룬Ö÷ÒªÊÇÒòΪ°²×°µÄ¹ý³ÌÖÐֻѡÔñÁ˼òÌåÖÐÎĵÄÖ§³Ö£¬ÐèÒªÐÞ¸ÄÅäÖÃÎļþÖеÄÓïÑÔÖ§³ÖÑ¡Ï¼ÓÉÏÓ¢ÎÄÖ§³Ö¼´¿É¡£¾ßÌå²Ù×÷ÈçÏ£º
·½·¨Ò»: ÐÞ¸ÄϵͳÅäÖÃ(½¨Òé)
#vi /etc/sysconfig/i18n
  // ÔÚÎļþÖмÓÈëÒÔÏÂÅäÖÃÏî
  LANG="zh_CN.GB18030"
  LANGUAGE="zh_CN.GB18030:zh_CN.GB2312:zh_CN"
  SUPPORTED="zh_CN.GB18030:zh_CN:zh:en_US.UTF-8:en_US:en"
  SYSFONT="lat0-sun16"
  //ÕâÑùÖÐÎÄÔÚSSH,telnetÖն˾ͿÉÒÔÕý³£ÏÔʾÁË,Ö§³ÖÁËÖÐÎĺÍÓ¢ÎıàÂë
  //ÅäÖÃÔÚ»úÆ÷ÖØÆôºóÉúЧ
·½·¨¶þ:shellÃüÁî
# export LANG£½"GB2312"
 // µ±Ç°×Ö·û¼¯ÅäÖÃÔÚµ±Ç°»á»°ÖÐÁ¢¼´ÉúЧ,
 //  È±ÏÝ: Ö»ÊÊÓõ±Ç°»á»°, µ±¿ªÆôлỰʱÐèÒªÖØÐÂÖ´ÐиÃÃüÁî
·½·¨Èý:ÐÞ¸ÄÓû§¼¶ÅäÖÃÎļþ(root)
#vi ~/.bash_profile
LANG=zh_CN.GB18030
LANGUAGE=zh_CN.GB18030:zh_CN.GB2312:zh_CN
export LANG LANGUAGE


Ïà¹ØÎĵµ£º

Linux¶¯Ì¬¿â(.so)ËÑË÷·¾¶

ÔÚLinux ÖУ¬¶¯Ì¬¿âµÄËÑË÷·¾¶³ýÁËĬÈϵÄËÑË÷·¾¶Í⣬»¹¿Éͨ¹ýÈýÖÖ·½·¨À´Ö¸¶¨£º·½·¨Ò»£ºÔÚÅäÖÃÎļþ/etc/ld.so.confÖÐÖ¸¶¨¶¯Ì¬¿âËÑË÷·¾¶£»·½·¨¶þ£ºÍ¨¹ý»·¾³±äÁ¿LD_LIBRARY_PATHÖ¸¶¨¶¯Ì¬¿âËÑË÷·¾¶£»·½·¨Èý£ºÔÚ±àÒëÄ¿±ê´úÂëʱָ¶¨¸Ã³ÌÐòµÄ¶¯Ì¬¿âËÑË÷·¾¶¡£
ÖÚËùÖÜÖª£¬Linux¶¯Ì¬¿âµÄĬÈÏËÑË÷·¾¶ÊÇ/libºÍ/usr/lib¡£¶¯Ì¬¿â±» ......

Linux Assembly "Hello World" Tutorial, CS 200

 
by Bjorn Chambless
Introduction
The following is designed familiarize the reader with programming in x86 (AT&T
style, that produced by gcc) assembly under Linux and how to interface assembly
and higher-level language code (i.e. C). The tutorial will also briefly cover
debugging yo ......

linuxÏß³Ì

ËùÓÐÏ̶߳¼ÓÐÒ»¸öÏ̺߳ţ¬Ò²¾ÍÊÇ
Thread ID
¡£ÆäÀàÐÍΪ
pthread_t
¡£Í¨¹ýµ÷ÓÃ
pthread_self()
º¯Êý¿ÉÒÔ»ñµÃ×ÔÉíµÄÏ̺߳š£
ÏÂÃæ˵һÏÂÈçºÎ´´½¨Ò»¸öÏ̡߳£
ͨ¹ý´´½¨Ị̈߳¬Ï߳̽«»áÖ´ÐÐÒ»¸öÏ̺߳¯Êý£¬¸ÃÏ̸߳ñʽ±ØÐë°´ÕÕÏÂÃæÀ´ÉùÃ÷£º
      
void * Thread_Function(void *)
´´½¨Ï ......

LinuxµÄÆô¶¯²½Öè


Load Bios
Read MBR's config to find out the os
Load the kernel of the os
init Process starts
execute /etc/rc.d /sysinit
start other modules (etc/modules.conf)
execute the run level scripts
execute /etc/rc.d/rc.local
execute /bin/login
shell started
......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ