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

linux cpu Ó²Ç×ºÍ ºÍ ÆäËû

ÏÖÔÚǶÈëʽҲÍæ¶àºËÁË¡£
ÀûÓÃ./mpstat -P ALL 1 100 ¿ÉÒÔÀ´²é¿´cpuµÄʹÓÃÇé¿ö¡£
Õâ¸öÊÇתµÄÒ»¸öÀý×Ó£º
ÔÚ¶àCPUµÄÇ÷ÊÆÔ½À´Ô½´óÁË. ÓÐʱºòΪÁ˸üºÃµØ²Ù×÷»úÆ÷, ÐèÒª½«Ä³¸ö½ø³Ì°ó¶¨µ½¾ßÌåµÄCPUÉÏÈ¥. ÏÂÃæ¸ø³öÁËÒ»¸ö½ø³Ì°ó¶¨µ½¾ßÌåµÄCPUÉÏÈ¥µÄÒ»¸öÀý×Ó.
view plaincopy to clipboardprint?
·········10········20········30········40········50········60········70········80········90········100·······110·······120·······130·······140·······150
#include<stdlib.h>  
#include<stdio.h>  
#include<sys/types.h>  
#include<sys/sysinfo.h>  
#include<unistd.h>  
 
#define __USE_GNU  
#include<sched.h>  
#include<ctype.h>  
#include<string.h>  
 
int main(int argc, char* argv[])  
{  
        int num = sysconf(_SC_NPROCESSORS_CONF);  
        int created_thread = 0;  
        int myid;  
        int i;  
    


Ïà¹ØÎĵµ£º

Linux ÄÚºËÈíÖжÏ(softirq)Ö´ÐзÖÎö

Linux ÄÚºËÈíÖжÏ(softirq)Ö´ÐзÖÎö
Author:  sinister
Email:   sinister@whitecell.org
Homepage:http://www.whitecell.org
Date:    2007-01-11
±¾ÎÄ¶Ô Linux ÄÚºËÈíÖжϵÄÖ´ÐÐÁ÷³Ì½øÐÐÁË·ÖÎö£¬²¢¾¡¿ÉÄܵĽáºÏµ±Ç°ÔË
Ðл·¾³ÏêϸµØд³öÎÒµÄÀí½â£¬µ«Õâ²¢²»±íÃ÷ÎÒµÄÀí½âÒ»¶¨ÕýÈ·¡£Õâ±¾ ......

LINUXÖжϻúÖÆÓëÐźÅ


ÔÚѧϰAPUEʱѧϰÐźűà³Ì£¬ºÜ¶àµØ·½²»ÊÇÀí½â£¬±ã²éÔÄÁËÍøÂçÉϵÄÏà¹Ø×ÊÁÏ£¬×î³£¼ûµÄÒ»¾ä»°¾ÍÊÇ“ÐźÅÊÇÖжϻúÖƵÄÒ»ÖÖÄ£Ä┣¬¼ÈÈ»Ìáµ½ÁËÖжϣ¬ÄǾÍÊ×ÏÈÁ˽âÁËÒ»ÏÂÖжϵľßÌå·ÖÀàÒÔ¼°ÊµÏÖ£¬×îºóÔÙÕÒ³öÖжϺÍÐźŵÄÇø±ð¡£
LINUXÖжϻúÖÆÓëÐźÅ
ÖжϺÍÒì³£
 

ÖÐ ¶Ï£¨Ò²³ÆÓ²¼þÖжϣ©
¶¨Òå
£ºÖ ......

Linux ÐźÅsignal´¦Àí»úÖÆ ¶þ

¶þ¡¢ÐÅ ºÅ »ú ÖÆ
ÉÏ Ò»½ÚÖнéÉÜÁËÐźŵĻù±¾¸ÅÄÔÚÕâÒ»½ÚÖУ¬ÎÒÃǽ«½éÉÜÄÚºËÈçºÎʵÏÖÐźŻúÖÆ¡£¼´ÄÚºËÈçºÎÏòÒ»¸ö½ø³Ì·¢ËÍÐźš¢½ø³ÌÈçºÎ½ÓÊÕÒ»¸öÐźš¢½ø³ÌÔõÑù¿ØÖÆ×Ô¼º¶ÔÐÅ ºÅµÄ·´Ó¦¡¢ÄÚºËÔÚʲôʱ»ú´¦ÀíºÍÔõÑù´¦Àí½ø³ÌÊÕµ½µÄÐźš£»¹Òª½éÉÜÒ»ÏÂsetjmpºÍlongjmpÔÚÐźÅÖÐÆðµ½µÄ×÷Óá£
1¡¢Äں˶ÔÐźŵĻ ......

Linux ÐźÅsignal´¦Àí»úÖÆ Èý

Ç°ÃæÁ½½ÚÒѾ­½éÉÜÁËÓйØÐźŵĴ󲿷ÖÖª
ʶ¡£ÕâÒ»½ÚÎÒÃÇÀ´Á˽âÒ»ÏÂÕâЩϵͳµ÷Óá£ÆäÖУ¬ÏµÍ³µ÷ÓÃsignalÊǽø³ÌÓÃÀ´É趨ij¸öÐźŵĴ¦Àí·½·¨£¬ÏµÍ³µ÷ÓÃkillÊÇÓÃÀ´·¢ËÍÐźŸøÖ¸¶¨½ø³ÌµÄ¡£Õâ

Á½¸öµ÷ÓÿÉÒÔÐγÉÐźŵĻù±¾²Ù×÷¡£ºóÁ½¸öµ÷ÓÃpauseºÍalarmÊÇͨ¹ýÐźÅʵÏֵĽø³ÌÔÝÍ£ºÍ¶¨Ê±Æ÷£¬µ÷ÓÃalarmÊÇͨ¹ýÐźÅ֪ͨ½ø³Ì¶¨Ê±Æ÷µ ......

xpÏÂLinux˫ϵͳµÄ°²×°

xpÏ´ÓÓ²ÅÌ°²×°Linux£¬°üÀ¨redflag6 RedHat9 fc4¶¼ÀàËÆ£¨¶¼²»Ð£¡£©£¬µ«ÊÇ°²×°¹ý³Ì¾ø¶ÔÏêϸ£¡
1¡£Ê×ÏÈÊÇ×¼±¸Ìõ¼þ
    £¨1£© ÌÚ³öµØ·½£ºxpÏÂÒªÓеط½·ÅLinuxµÄ¾µÏñ£¨.iso£©£¬¶øÇÒËùÔÚ´ÅÅÌҪΪfat32¸ñʽ£¬¿ÉÒÔÓÃnorton partitionmagic£¨ºÜ²»´íµÄ¹¤¾ß£¬ÍøÉϺܶàÏÂÔØ£¡£©½«´ÅÅ̸ñʽת»»  ²»¹ýÒòΪÈí ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ