Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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ºÍwindowsÎļþÃû³¤¶ÈÏÞÖÆ

LinuxÎļþÃûµÄ³¤¶ÈÏÞÖÆÊÇ255¸ö×Ö·û
windowsÏÂÍêÈ«ÏÞ¶¨ÎļþÃû±ØÐëÉÙÓÚ260¸ö×Ö·û£¬Ä¿Â¼Ãû±ØÐëСÓÚ248¸ö×Ö·û¡£
linuxÏÂÎļþÊý¡¢Ä¿Â¼Êý¡¢ÎļþÃû³¤¶ÈµÄ¸÷ÖÖÏÞÖÆ
ÒÔϲâÊÔ¶¼ÊÇÔÚûÓÐÓÅ»¯»òÐÞ¸ÄÄں˵ÄÇ°ÌáϲâÊԵĽá¹û
1. ²âÊÔÄ¿µÄ£ºext3ÎļþϵͳÏÂfilename×î´ó×Ö·û³¤¶È
  ²âÊÔƽ̨£ºRHEL5U3_x64
  ²âÊÔ¹ý³Ì£º
L ......

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

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

ÈçºÎ±£ÕÏLinuxÓû§°²È«

LinuxÓ¦Ó÷¶Î§µÄÈÕÒæÀ©Õ¹£¬Ê¹µÃÆäʹÓÃÐÔÔ½À´Ô½Êܵ½¹Ø×¢¡£ÐÔÊÇÒ»¸ö¸´ÔӺ͹㷺µÄÎÊÌ⣬´Ë´¦ÎÒÃÇÖ÷Òª¹Ø×¢LinuxÓû§µÄÕË»§°²È«£¬ÌرðÊÇLinuxϵͳ¹ÜÀíÔ±ÈçºÎ±£ÕÏÓû§µÄ°²È«¡£
¡¡¡¡
¡¡¡¡
¡¡¡¡¿ÚÁȫ
¡¡¡¡
¡¡¡¡
¡¡¡¡LinuxϵͳÖеģ¯etc£¯passwdÎļþº¬ÓÐÈ«²¿ÏµÍ³ÐèÒªÖªµÀµÄÿ¸öÓû§µÄÐÅÏ¢(¼ÓÃÜ¿ÚÁîµÄÃÜÎÄÒ²¿ÉÄÜ´æÓÚ£¯etc£¯ ......

Linuxϵͳ°²×°Ö®¶þ: Ó²ÅÌ°²×°Fedora 9

ÈÈÐĵãÆÀ£ºÓ²ÅÌ°²×°fedoraµÄ¹æÔò¾ÍÏñÎÒÃǷdz£ÑÇ¿ËÎ÷µÄÕþ²ßÒ»Ñù£¬ ¸æËßÄã²»ÄÜ·¢ËÍyellow¶ÌÐÅ£¬ µ«¾ÍÊDz»¸æËßÄãyellowµÄ³ß¶ÈÊÇʲô£¬ ÄãÖ»ÄÜð×ÅÊÖ»úÍ£»úµÄΣÏÕ£¬²âÊÔÏÂÄÄЩ¶ÌО¿¾¹Éä»ÆÁË¡£ ͨ¹ý²»ÏÂÁ½Î»ÊýµÄÖØÆô£¬ ÃþË÷ÁËÒ»µãµã¹æÔò¡£ OK, ÎÒÏëLinux²»ÊÇgov, °²×°»¹ÊÇÓйæÔò¿ÉÑԵģ¬Ö»ÊÇÎÒÃÇ»¹Ã»ÓÐÕÒµ½Õâ¸öreadme?  ´ï ......

Ô¶ÀëWindows,ʹÓÃLinux/Unix

2005Äê9ÔÂ22ÈÕ£¬Ç廪ÔÚ¶Á²©Ê¿ÉúÍõÛóÔÚˮľÉçÇøBLOGÉÏ·¢±íÁË¡¶Ç廪ÃεķÛËé--д¸øÇ廪´óѧµÄÍËѧÉêÇë¡·Ã÷È·ÒªÇóÍËѧ, ÒýÆðÉç»á¸÷½ç¹ã·ºÕùÂÛ. Ëû´´×÷µÄ³¤ÆªÎÄÕ¡¶ÍêÈ«ÓÃLinux¹¤×÷¡·, ÑóÑóÁ½Íò¶à×Ö, ´Ó²»Í¬½Ç¶È¾Ó¸ßÁÙϵIJûÊöÁËËûÑÛÖÐLinuxÍêÈ«ÓÅÔ½ÓÚWindowsµÄ¸÷ÖÖÀíÓÉ, ÕâƪÎÄÕ²¢²»¼òµ¥µÄÊÇһƪÂÛÊö"WindowsÄÜ×öµÄÊÂLinux¶¼Ä ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ