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

LinuxµÄ¹¤×÷¶ÓÁÐ

1£¬ÏÈ¿´¿´¹¤×÷¶ÓÁкÍtaskletµÄÇø±ð£º
    £¨1£© ¶¨Ê±Æ÷ºÍtasklet£º
    Tasklets resemble kernel timers in 3 ways.
      1)They are always run at interrupt time,
      2)they always run on the same CPU that schedules them,
      3)and they receive an unsigned long argument.   Unlike kernel timers, however, you can’t ask to execute the function at a specific time.
     £¨2£© taskletºÍ¹¤×÷¶ÓÁУº
     Workqueues are, superficially, similar to tasklets; they allow kernel code to request that a function be called at some future time. There are, however, some significant differences between the two, including:
        1) Tasklets run in software interrupt context with the result that all tasklet code must be atomic. Instead, workqueue functions run in the context of a special kernel process; as a result, they have more flexibility. In particular, workqueue functions can sleep.
        2)Tasklets always run on the processor from which they were originally submitted. Workqueues work in the same way, by default.
        3)Kernel code can request that the execution of workqueue functions be delayed for an explicit interval.
2£¬¹¤×÷¶ÓÁÐ(work queue)ÊÇLinux kernelÖн«¹¤×÷ÍÆºóÖ´ÐеÄÒ»ÖÖ»úÖÆ¡£ÕâÖÖ»úÖÆºÍBH»òTasklets²»Í¬Ö®´¦ÔÚÓÚ¹¤×÷¶ÓÁÐÊǰÑÍÆºóµÄ¹¤×÷½»ÓÉÒ»¸öÄÚºËÏß³ÌÈ¥Ö´ÐУ¬Òò´Ë¹¤×÷¶ÓÁеÄÓÅÊÆ¾ÍÔÚÓÚËüÔÊÐíÖØÐµ÷¶ÈÉõÖÁ˯Ãß¡£¹¤×÷¶ÓÁÐÊÇ2.6Äں˿ªÊ¼ÒýÈëµÄ»úÖÆ£¬ÔÚ2.6.20Ö®ºó£¬¹¤×÷¶ÓÁеÄÊý¾Ý½á¹¹·¢ÉúÁËһЩ±ä»¯£¬Òò´Ë±¾ÎÄ·Ö³ÉÁ½¸ö²¿·Ö¶Ô2.6.20֮ǰºÍÖ®ºóµÄ°æ±¾·Ö±ð×ö½éÉÜ¡£
    £¨1£©2.6.0~2.6.19
Êý¾Ý½á¹¹£º
struct work_struct {
    unsigned long pending;
    struct list_head entry;
    void (*func)(void *);
    void *data


Ïà¹ØÎĵµ£º

Moto LinuxÓ¦Óÿª·¢£¨Áù£©£ºUSBÁ¬½Ó¹²ÏíPCÉÏÍø

ÓÉÓÚÔÚ¿ª·¢A1200ÉϵÄÁ÷ýÌå²¥·ÅÆ÷£¬Ãâ²»Á˳¤ÆÚ²¥·ÅÊÓÆµ£¬½øÐÐÎȶ¨ÐÔ²âÊÔ¡£¿ªÊ¼ÊÇͨ¹ýGPRS²¦ºÅÉÏÍø£¬µ«²¥·ÅÊÓÆµÌ«·ÑÁ÷Á¿ÁË£¬³ä¸ö50Ôª£¬¶¼¶¥²»×¡Ò»ÌìµÄ²âÊÔ¡£¿´µ½window mobileµÄÊÖ»ú¶¼¿ÉÒÔͨ¹ýPCÉÏÍø£¬Òò´ËÏëµ½moto linuxÊÖ»úÒ²¿ÉÒÔ¹²ÏíPCÉÏÍø£¬½ÚÊ¡Á÷Á¿·ÑÓᣴÓÀíÂÛÉϽ«ÊÇ¿ÉÐеģ¬ÒòΪmotoÊÖ»ú¿ÉÒÔ¿ªÆôUSB LAN£¬Í¨¹ýUSBÁ¬½Ó ......

LinuxµÄmountÃüÁî¼ò½é


¡¡ÔÚLinuxϵͳÖУ¬Èç¹ûҪʹÓÃÓ²ÅÌ¡¢¹âÅÌ¡¢ÈíÅÌ»òMOÅ̵ȴ洢É豸£¬±ØÐëÏȽøÐйÒ×°£¨Mount£©¡£µ±´æ´¢É豸¹Ò×°Íê³ÉÖ®ºó£¬¾Í¿ÉÒÔ½«Æä×÷Ϊһ¸öĿ¼À´½øÐзÃÎÊÁË¡£¹Ò×°É豸ÐèҪʹÓÃmountÃüÁî¡£Ö´ÐÐÕâÒ»ÃüÁÖÁÉÙÒªÏÈÈ·¶¨ÏÂÁÐÈýÖÖÐÅÏ¢£º 
¡¡¡¡1. Òª¹Ò×°£¨Mount£©¶ÔÏóµÄÎļþϵͳÀàÐÍ£»
¡¡¡¡2. Òª¹Ò×°£¨Mount£©¶ÔÏóµÄÉ豸à ......

linuxʵÑé¶þ

ʵÑé2 LinuxÎļþϵͳ
Ò».ʵÑéÄ¿µÄ
ͨ¹ýʵÑéÕÆÎÕLinuxÖÐÎļþ¹ÜÀíµÄ»ù±¾¸ÅÄ°üÀ¨³£ÓÃÃüÁî¸ñʽ¡¢ÎļþÀàÐÍ¡¢Ä¿Â¼½á¹¹µÈ£¬³õ²½Á˽âÓйØÎļþ°²È«·½ÃæµÄ֪ʶ¡£¡£
 
¶þ.ʵÑéÄÚÈÝ
1.ʹÓÃpwd£¬cd£¬lsµÈÃüÁîä¯ÀÀÎļþϵͳ¡£
2.ʹÓÃcat£¬cp£¬mv£¬head£¬tail£¬rmµÈÃüÁî²é¿´ºÍ²Ù×÷Îļþ¡£
3.ʹÓÃfind£¬grepÃüÁî½øÐÐÎļþ²éÕÒºÍ ......

linuxʵÑéËÄ

ʵÑé4  Linux³ÌÐò¿ª·¢»ù´¡
Ò»¡¢ÊµÑéÄ¿µÄ£º
1.      ¼ÌÐøÊìϤLinuxÖÕ¶ËÃüÁ
2.      ¼ÌÐøÑ§Ï°Ê¹ÓÃVi±à¼­Æ÷£»
3.      ѧϰʹÓÃLinux»·¾³ÏÂCÓïÑÔ³ÌÐòµÄ±àÒë¡£
4.      µ÷ÊÔÆ÷GdbµÄʹÓÃ
¶þ¡¢ÊµÑéÒªÇó£º
& ......

Ubuntu Linuxϵͳ»·¾³±äÁ¿ÅäÖÃÎļþ½éÉÜ


Ubuntu Linuxϵͳ»·¾³±äÁ¿ÅäÖÃÎļþ½éÉÜ
 
·¢²¼Ê±¼ä£º2007.12.19 06:30     À´Ô´£ºÈüµÏÍø    ×÷Õߣºsixth
ÔÚUbuntuÖÐÓÐÈçϼ¸¸öÎļþ¿ÉÒÔÉèÖû·¾³±äÁ¿
 
/etc/profile:ÔڵǼʱ,²Ù×÷ϵͳ¶¨ÖÆÓû§»·¾³Ê±Ê¹ÓõĵÚÒ»¸öÎļþ,´ËÎļþΪϵͳµÄÿ¸öÓû§ÉèÖû·¾³ÐÅÏ¢,µ±Óà ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ