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

Linux ÐźÅsignal´¦Àí»úÖÆ ËÄ

4¡¢alarmºÍ setitimerϵͳµ÷ÓÃ
        ϵͳµ÷ÓÃalarmµÄ¹¦ÄÜÊÇÉèÖÃÒ»¸ö¶¨Ê±Æ÷£¬µ±¶¨Ê±Æ÷¼Æʱµ½´ïʱ£¬½«·¢³öÒ»¸öÐźŸø½ø³Ì¡£¸Ãµ÷ÓõÄÉùÃ÷¸ñʽÈçÏ£º
        unsigned int alarm(unsigned int seconds);
        ÔÚʹÓøõ÷ÓõĽø³ÌÖмÓÈëÒÔÏÂÍ·Îļþ£º
        #include <unistd.h>
        ϵ
ͳµ÷ÓÃalarm°²ÅÅÄÚºËΪµ÷Óýø³ÌÔÚÖ¸¶¨µÄsecondsÃëºó·¢³öÒ»¸öSIGALRMµÄÐźš£Èç¹ûÖ¸¶¨µÄ²ÎÊýsecondsΪ0£¬Ôò²»ÔÙ·¢ËÍ
SIGALRMÐźš£ºóÒ»´ÎÉ趨½«È¡ÏûÇ°Ò»´ÎµÄÉ趨¡£¸Ãµ÷Ó÷µ»ØֵΪÉϴζ¨Ê±µ÷Óõ½·¢ËÍÖ®¼äÊ£ÓàµÄʱ¼ä£¬»òÕßÒòΪûÓÐÇ°Ò»´Î¶¨Ê±µ÷Óöø·µ»Ø0¡£
        ×¢Ò⣬ÔÚʹÓÃʱ£¬alarmÖ»É趨Ϊ·¢ËÍÒ»´ÎÐźţ¬Èç¹ûÒª¶à´Î·¢ËÍ£¬¾ÍÒª¶à´ÎʹÓÃalarmµ÷Óá£
       
¶ÔÓÚalarm£¬ÕâÀï²»ÔÙ¾ÙÀý¡£ÏÖÔÚµÄϵͳÖкܶà³ÌÐò²»ÔÙʹÓÃalarmµ÷Ó㬶øÊÇʹÓÃsetitimerµ÷ÓÃÀ´ÉèÖö¨Ê±Æ÷£¬ÓÃgetitimerÀ´µÃµ½
¶¨Ê±Æ÷µÄ״̬£¬ÕâÁ½¸öµ÷ÓõÄÉùÃ÷¸ñʽÈçÏ£º
        int getitimer(int which, struct itimerval *value);
        int setitimer(int which, const struct itimerval *value,
struct itimerval *ovalue);
        ÔÚʹÓÃÕâÁ½¸öµ÷ÓõĽø³ÌÖмÓÈëÒÔÏÂÍ·Îļþ£º
        #include <sys/time.h>
       
¸Ãϵͳµ÷Óøø½ø³ÌÌṩÁËÈý¸ö¶¨Ê±Æ÷£¬ËüÃǸ÷×ÔÓÐÆä¶ÀÓеļÆʱÓò£¬µ±ÆäÖÐÈκÎÒ»¸öµ½´ï£¬¾Í·¢ËÍÒ»¸öÏàÓ¦µÄÐźŸø½ø³Ì£¬²¢Ê¹µÃ¼ÆʱÆ÷ÖØпªÊ¼¡£Èý¸ö¼ÆʱÆ÷ÓɲÎ
ÊýwhichÖ¸¶¨£¬ÈçÏÂËùʾ£º
        TIMER_REAL£º°´Êµ¼Êʱ¼ä¼Æʱ£¬¼Æʱµ½´ï½«¸ø½ø³Ì·¢ËÍSIGALRMÐźš£
        ITIMER_VIRTUAL£º½öµ±½ø³ÌÖ´ÐÐʱ²Å½øÐмÆʱ¡£¼Æʱµ½´ï½«·¢ËÍSIGVTALRMÐźŸø½ø³Ì¡£
       
ITIMER_PROF£ºµ±½ø³ÌÖ´ÐÐʱºÍϵͳΪ¸Ã½ø³ÌÖ´Ðж¯×÷ʱ¶¼¼Æʱ¡£ÓëITIMER_VIR-TUALÊÇÒ»¶Ô£¬¸Ã¶¨Ê±Æ÷¾­³£ÓÃÀ´Í


Ïà¹ØÎĵµ£º

Linuxѧϰ¼Æ»®

0 Äñ¸çµÄLinux˽·¿²Ë
1 GNU\Linux±à³ÌÖ¸ÄÏ
2 LinuxÉ豸Çý¶¯¿ª·¢Ïê½â.pdf
3 ÉîÈëÀí½âlinuxÄÚºË.pdf
4 Linux_ÄÚºËÍêȫעÊÍ_V11.pdf or Linux_ÄÚºË×¢ÊÍ.pdf
5 LINUXÄÚºËÔ´´úÂëÇé¾°·ÖÎö\scene(ÉÏ).pdf and scene(ÏÂ).pdf
Ä¿Ç°ÒѾ­µ½LinuxÉ豸Çý¶¯¿ª·¢Ïê½â.pdfÁË£¬¶øÇÒ±àÒëÉý¼¶ÄÚºËÒѾ­³É¹¦£¬³õ²½±àдÁ˼òµ¥µÄÄ£¿é¡£ ......

linuxÏÂÈýø³ÌÔËÐÐÔÚÖ¸¶¨µÄcpuÉÏ

×î½ü¸ºÔðµÄsvrѹÁ¦±È½Ï´ó£¬ÒµÎñÂß¼­Óе㸴ÔÓ,ÄÜÓÅ»¯µÄµØ·½ÒѾ­È«²¿ÓÅ»¯ÁË£¬ ĿǰÿÃë3k´Î£¬cpu¸ºÔØ»¹ÊÇ±È½Ï¸ß top¿´Ò»Ï£¬4ºËµÄcpu¸ºÔز»ÊÇÌ«¾ùºâ£¬´òË㿼ÂÇһϽ«ÒµÎñ½ø³ÌÖ¸¶¨µ½3¸öcpuÉÏÔËÐУ¬ÁíÍâÒ»¸öcpuרߺÔð´¦ÀíÍøÂçÊÕ·¢°ü£»´òËã³¢ÊÔһϣ¬Èç¹û»¹ÊDz»ÐУ¬ÔÙ¹ý¶Îʱ¼ä£¬·ÃÎÊÁ¿ÔÙÔö¼ÓµÄ»°£¬¾ÍÒª¼Ó»úÆ÷ÁË£¬ÎØÎØ ²¹ ......

Linux Ï°²×°jdk

Ò»£º°²×°jdk Îҵİ汾ÊÇ£ºjdk-6u10-linux-i586.rpm
°²×°jdk1.6°²×°°ü£º rpm -ivh jdk-6u10-linux-i586.rpm
ÅäÖû·¾³±äÁ¿£º
1£¬½øÈëprofileÎļþ£ºvi/etc/profile
2,ÔÚÎļþÖÐÌí¼ÓÒÔÏ´úÂ룺
   export JAVA_HOME = /usr/usr/java/jdk1.6.0_10 --jdk°²×°Ä¿Â¼
   export CALSSPATH = $JAVA_HOM ......

linux ÏÂwhich¡¢whereis¡¢locate¡¢findÇø±ð

µ±ÎÒÃÇÐèҪij¸öÎļþ»òĿ¼ʱ£¬¶øÓÖ²»ÖªµÀ¸ÃÎļþ·ÅÔÚʲôµØ·½£¬Ôõô°ì£¿
ÔÚwindowsÏÂÃ棬¿ÉÒÔͨ¹ý“ËÑË÷”¹¦ÄܽøÐвéÕÒ£¬¶øÔÚlinuxÏ£¬Í¬ÑùÓÐÏàͬµÄ¹¦ÄÜ£º
which       ²é¿´¿ÉÖ´ÐÐÎļþµÄλÖÃ
whereis     ²é¿´ÎļþµÄλÖÃ
locate    &n ......

iphone 3.1.2¿ª·¢»·¾³´î½¨——linuxƽ̨

Ò»¡¢Òý×Ó
Ç°¶Îʱ¼ä¿´µ½ÁËapple¹«Ë¾·¢²¼ÁËiphone os4.0µÄÔ¤ÀÀÊÓƵ£¬iphoneÖÕÓÚ´òËãÖ§³Ö¶àÈÎÎñÁË£¬ÓÈÆäÊǶÔÓÚÔ¤ÀÀÊÓƵÖеÄskypeÈí¼þµÄչʾÈÃÈËÓ¡ÏóÉî¿Ì¡£
Ò»°ãÀ´Ëµ£¬Ïë×öÒ»ÃûÕý¹æµÄiphoneÓ¦Óÿª·¢ÕßÓ¦µ±ÖÁÉÙ×¼±¸Èý¼þÊÂÇ飺
£¨1£©Ò»Ì¨appleµÄµçÄÔ
¿ÉÒÔÊÇmac book»òÕßmac mini£¬¹úÄڱȽϓ½Ú¼ó”µÄ¹«Ë¾´ó¶¼Ñ¡ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ