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

Linux Kernel API (2.6)

#protect share data
spin_lock/spin_unlock: protect the data during process context(and only at process context), and make sure your code bewteen lock/unlock is fast enough.There may deadlock if the same spin_lock is called at interrupt context.
spin_lock_irq/spin_unlock_irq: call it during interrupt context, make sure the irq is on before calling this function, it will disable irq before accessing share data
spin_lock_irqsave/irqrestore: use at interrupt context, and will save/restort irq registers
The code between spin_lock**/spin_unlock** must not sleep.
The spin_lock** API is defined at include/linux/spinlock_api_up.h for UP architecture.
linux/kernel/spinlock.c is only for SMP.
mutex_lock/mutex_unlock: the similar with down/up, but more efficient
mutex_lock_interruptible: the simlilar with down_interruptiable, can be interruptiable by signal.(like CTRL-C)
the code beween mutex_lock and mutex_unlock can go to sleep


Ïà¹ØÎĵµ£º

LinuxÄÚºËÐÞÁ¶Ö®µÀ Ö® ǰÑÔ

ÖÁ´ËÂä±ÊÖ®¼Ê£¬Ç¡ÖÁLinuxÎÊÊÀ18ÖÜÄ꣬18ÄêµÄ³É³¤£¬ÈçÃÎËÆ»Ã£¬·çÓêÆÄ¶à£¬¸Ð¿®ÆÄ¶à¡£
ÓÌ×ÔÒäÆð¶àÄêÒÔǰһλǰ±²Ñµµ¼Ê±µÄóðÑÔ£º½ñÌìµÄ±ØÈ»ÕýÊÇÓÉ֮ǰһϵÁеÄżȻËù¾ö¶¨µÄ¡£¹ýÈ¥µÄijÄêijÔ£¬ÎÒżȻ³õʶLinux¾ÍÉíÏÝÆäÖУ¬ÖÁ½ñÈÔÕÒ²»µ½³öÈ¥µÄ·£¬¶øÕýÊÇÕâ´ÎÄËÖÁÖ®ºóµÄ¶à´ÎżȻÏàÁªºÏ£¬´Ó¶ø¾ö¶¨Á˽ñÈÕµÄÎÒÒªÔÚ´ËдÏÂÕâЩ»°¡£ÄÇô ......

LinuxÏÂQT°²×°

Ò»¡¢ÏÂÔØQtÔ´Âë°üµ½±¾»ú£¬È»ºó½âѹËõ
1.ÏÂÔØqt-x11-free-3.2.1.tar.gzºÍqt-x11-opensource-src.tar.gz¶þ½øÖưü¡£
2.ÔÚÖÕ¶ËÇл»ÖÁqt-x11-free-3.2.1.tar.gzËùÔÚĿ¼Ï£¬Ö´ÐУºtar zxvf qt-x11-free-3.2.1.tar.gz -C /usr/local
3.ÒÑͬÑùµÄ·½·¨½«qt-x11-opensource-src-.tar.gzÔ´Âë°ü½âѹËõ µ½/usr/localĿ¼
PS£º£ ......

Linux µç¿(aMule)µÄ°²×°ÓëʹÓÃ

ÔÚLinuxÖÐʹÓõç¿ÊÇÒ»¼þ·Ç³£ÈÝÒ×µÄÊÂÇé,ÏÂÃæÒÔFedora6ΪÀý½éÉܰ²×°Ê¹Óò½Öè.
°²×°
£­£­ÔÚ°²×°Ö®Ç°ÇëÏÈÈ·ÈÏ£¬×Ô¼ºµÄϵͳÖÐÊÇ·ñ°²×°ÁËwxGTK
Õâ¸ö°ü£º
£­£­Ê¹ÓÃϵͳ×Ô´øµÄÔ´¼´¿É°²×°
       # yum install wxGTK
£­£­ÏÂÔØaMule²¢°²×°(´Ë´¦°²×°µÄÊÇFedorazod°æ±¾)
     & ......

Debian Linux½øÈë²»ÁËͼÐνçÃæµÄÕÛÌÚ

Ê×ÏÈÎҵIJÙ×÷ϵͳÊÇDebian Linux£¬ÎÒDebianÓõÄÊÇXfce×ÀÃæ»·¾³£¬×òÌìÎÒÓÃÁËÃüÁîapt-get install gnome,°²×°ÁËÒ»¶ÑÈí¼þÖ®ºóÖØÆô£¬¾Í½øÈë²»ÁËͼÐνçÃæÁË£¬Ö»ÄܽøÈë×Ö·û½çÃæ£¬½ñÌì¿ÉºÃÕÛÌÚÁË¡£
¡¡¡¡ÉÏÎçÔÚÍøÉϲé×ÊÁÏ£¬¿ÉÄÜ×ܽáÁ˼¸¸ö°É
¡¡¡¡1¡¢ÔÚ×Ö·û½çÃæÊäÈëÃüÁîstartx
¡¡¡¡2¡¢ÐÞ¸ÄinitµÄĬÈϼ¶£¬ËùÔÚÎļþµÄλÖÃ/etc/initt ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ