linuxµÄHZ, Tick, Jiffies
LinuxºËÐļ¸¸öÖØÒª¸úʱ¼äÓйصÄÃû´Ê»ò±äÊý£¬µ×Ͻ«½éÉÜHZ¡¢tickÓëjiffies¡£
£¨1£©HZ
LinuxºËÐÄÿ¸ô¹Ì¶¨ÖÜÆڻᷢ³ötimer interrupt (IRQ 0)£¬HZÊÇÓÃÀ´¶¨ÒåÿһÃëÓм¸´Îtimer interrupts¡£¾ÙÀýÀ´Ëµ£¬HZΪ1000£¬´ú±íÿÃëÓÐ1000´Îtimer interrupts¡£ HZ¿ÉÔÚ±àÒëºËÐÄʱÉ趨£¬¾ßÌå²éѯÉ趨·½·¨¿É²Î¼ûÉÏƪÎÄÕ¡¶linuxÔËÐжà¾ÃÁË¡·¡£ÆäÖÐHZ¿ÉÉ趨100¡¢250¡¢300»ò1000¡£ÒÔºËÐÄ°æ±¾Ô¤ÉèֵΪ250£¬×öʵÑ飺
¹Û²ì/proc/interruptµÄtimerÖжϴÎÊý£¬²¢ÓÚÒ»ÃëºóÔٴι۲ìÆäÖµ¡£ÀíÂÛÉÏ£¬Á½ÕßÓ¦¸ÃÏà²î250×óÓÒ¡£
adrian@adrian-desktop:~$ cat /proc/interrupts|grep timer && sleep 1 && cat /proc/interrupts|grep timer
0: 9309306 IO-APIC-edge timer
0: 9309562 IO-APIC-edge timer
²¹³ä½á¹û£ºÒÔÉϽá¹ûÊǵ¥CPUÉÏÔËÐУ¬ÔÚÎÒ×Ô¼ºµÄË«ºËµçÄÔÉϲ¢Ã»Óеõ½Ô¤¼Æ½á¹û£¬»³ÒÉÊÇ·ñÊʺÏË«ºËµçÄÔʵÑé¡£
£¨2£©Tick
TickÊÇHZµÄµ¹Êý£¬Òâ¼´timer interruptÿ·¢ÉúÒ»´ÎÖжϵÄʱ¼ä¡£ÈçHZΪ250ʱ£¬tickΪ4ºÁÃë(millisecond)¡£
£¨3£©È«¾Ö±äÁ¿xtime
xtimeÊÇtimevalÊý¾Ý½á¹¹±äÁ¿£¬Ê×ÏÈ¿´timeval½á¹¹
struct timeval
{
time_t tv_sec; /***second***/
susecond_t tv_usec;/***microsecond***/
}
1Ã룽1000ºÁÃ루3¸öÁ㣩£¬1Ã룽1000 000΢Ã루6¸öÁ㣩£¬1Ã룽1000 000 000ÄÉÃ루9¸öÁ㣩£¬1Ã룽1000 000 000 000ƤÃ루12¸öÁ㣩¡£ÃëÓÃs±íÏÖ£¬ºÁÃëÓÃms£¬Î¢ÃëÓÃus±íʾ£¬ÄÉÃëÓÃns±íʾ£¬Æ¤ÃëÓÃps±íʾ£¬ËûÃǵķּ¶µ¥Î»ÊÇǧ£¬¼´Ã¿´Î3¸öÁã¡£ËùÒÔmicrosecondÊDZíʾus¡£
xtimeÊÇ´Ócmosµç·ÖÐÈ¡µÃµÄʱ¼ä£¬Ò»°ãÊÇ´ÓijһÀúʷʱ¿Ì¿ªÊ¼µ½ÏÖÔÚµÄʱ¼ä£¬Ò²¾ÍÊÇΪÁËÈ¡µÃÎÒÃDzÙ×÷ϵͳÉÏÏÔʾµÄÈÕÆÚ¡£Õâ¸ö¾ÍÊÇËùνµÄ“ʵʱʱÖÓ”£¬ËüµÄ¾«È·¶ÈÊÇ΢Ãë¡£
£¨4£©Jiffies
ÔÚ<linux/jiffies.h>£¬¶¨ÒåÁËJiffiesΪLinuxºËÐıäÊý(32λԪ±äÊý£¬unsigned long)£¬Ëü±»ÓÃÀ´¼Í¼ϵͳ×Ô¿ª»úÒÔÀ´£¬ÒѾ¹ý¶àÉÙµÄtick£¬ÔÚlinuxÄÚºËÖÐjiffiesÔ¶±ÈxtimeÖØÒª¡£Ã¿·¢ÉúÒ»´Îtimer interrupt£¬Jiffies±äÊý»á±»¼ÓÒ»¡£jiffies Óë
Ïà¹ØÎĵµ£º
´´½¨×ÀÃæͼ±ê
Ä¿Ç°½«ÍøÂçÓ¦ÓÃÀ©Õ¹µ½×ÀÃæÊÇÒ»¸öÇ÷ÊÆ£¬´æÔÚןܶà½â¾ö·½°¸£¬±¾ÎÄÒÔ Mozilla Prism ΪÀý£¬ÀàËƵķ½·¨Í¬ÑùÊÊÓÃÓÚ Google Chrome ¡£
1. µ½ Mozilla Prism µÄÍøÕ¾ÉÏÏÂÔØ Prism£¬µã»÷ Download Now Ö®ºó»áÌáʾÓÐÁ½ÖÖ£¬Ò»ÖÖÊÇÒÔ Mozilla Firefox À©Õ¹µÄ·½Ê½£¬ÊʺÏÒѾ°²×°ÓÐ Firefox µÄÅóÓÑ£»Ò»Ö ......
linuxÏÂÌí¼Ó·Óɵķ½·¨£º
Ò»£ºÊ¹Óà route ÃüÁîÌí¼Ó
ʹÓÃroute ÃüÁîÌí¼ÓµÄ·ÓÉ£¬»úÆ÷ÖØÆô»òÕßÍø¿¨ÖØÆôºó·ÓɾÍʧЧÁË£¬·½·¨£º
//Ìí¼Óµ½Ö÷»úµÄ·ÓÉ
# route add –host 192.168.168.110 dev eth0
# route add –host 192.168.168.119 gw 192.168.168.1
//Ìí¼Óµ½ÍøÂçµÄ·ÓÉ
# route add –net IP netma ......
¶ÔÓÚ¸Õ¸Õ½Ó´¥LinuxµÄÈËÀ´Ëµ£¬Ò»¶¨»á¸øLinuxÏÂÒ»´ó¶Ñ¸÷ʽ¸÷ÑùµÄÎļþÃû¸ø¸ãÔΡ£±ð
¸ö²»Ëµ£¬µ¥µ¥¾ÍѹËõÎļþΪÀý£¬ÎÒÃÇÖªµÀÔÚWindowsÏÂ×î³£¼ûµÄѹËõÎļþ¾ÍÖ»ÓÐÁ½ÖÖ
£¬Ò»ÊÇ,zip£¬ÁíÒ»¸öÊÇ.rar¡£¿ÉÊÇLinux¾Í²»Í¬ÁË£¬ËüÓÐ.gz¡¢.tar.gz¡¢tgz¡¢bz2¡¢
.Z¡¢.tarµÈÖÚ¶àµÄѹËõÎļþÃû£¬´ËÍâwindowsϵÄ.zipºÍ.rarÒ²¿ÉÒÔÔÚLinuxÏÂʹÓ㬠......
ÏÖÔÚ´ó¼Ò¶ÔQ5µÄÌÖÂÛÒѾÉÏÉýµ½·¢ÐаæºÍ×ÀÃæ»·¾³µÄ³Ì¶ÈÁË……¹À¼Æ̳×ÓÀïÓÐÐí¶à·ÇLINUXÍæ¼Ò¿ÉÄÜÌýµÃÔÆÀïÎíÀï°É£¿ÎÒ´ó¸Å½²Ò»Ð©ÎÒÖªµÀµÄ£¬±È½Ï¼òµ¥¶øÇÒʵÓõÄС֪ʶ£¬Ï£ÍûÄܹ»Í¬Ñ§ÃÇÒ»µã°ïÖú¡£
°´ÕÕ¹ßÀý£¬Ê×ÏȱØÐë³ÎÇåÒ»ÏÂLinuxµÄ¶¨Òå¡£ºÜ¶àͬѧ¿ÉÄܶ¼ÎóÒÔΪLinux¾ÍÊÇÒ»¸ö²Ù×÷ϵͳ£¬ÑϸñÀ´½²£¬ÕâÊDz»¶ÔµÄ¡£linux×÷ ......
°ÑUÅ̳̿ɹâÅÌ£¨ÒÔubuntu9.10ΪÀý£©
Ç°Ì᣺µçÄÔÖ§³ÖUÅÌÆô¶¯£¬ÓÐЩµçÄÔÊDz»Ö§³ÖµÄ¡£
¿ªÊ¼ÖÆ×÷
Ò»¡¢²ÄÁÏ£º
UltraISO£¨Èíµúͨ£©Èí¼þ
ubuntu 9.10 iso
uÅÌ£¨ÍƼö1GÒÔÉÏ£©¡£
¶þ¡¢²Ù×÷ƽ̨£º
windows xp/vista £ÛÎÒÊÇÔÚvistaÏÂÖÆ×÷µÄ£¬±ØÐëÓùÜÀíԱȨÏÞ´ò¿ªUltraISO£¨Èíµúͨ£©£Ý£¨ÓÒ»÷Æä¿ì½Ý·½Ê½£¬ÒÔ¹ÜÀíÔ±Éí·Ö´ò¿ª£©
˵ ......