|
ΪʲôÎÒÐèÒªuCos£¿¾ÍÏñ×ʼѧC±à³Ìʱ£¬ÀÏʦ¸æËßÎÒ£¬Ö¸ÕëºÜÖØÒª£¬ÎÒÄÇʱ¾ÍÓÐÒ»¸ö´óµÄÒÉÎÊ£¬Ö¸Õëµ½µ×ÓÐʲôºÃ£¿»¹Ò»±ßÔÚÐÄÀïàÖ¹¾×Å£ºÎÒ²»ÓÃÖ¸Õë²»Ò»Ñù°Ñ³ÌÐò±à³öÀ´ÁË£¿ÏÖÔÚÏëÏëcÓïÑÔûÁËÖ¸Õ룬½«´ç²½ÄÑÐУ¡»Øµ½ÕýÌ⣬ÎÒÃǵ½µ×ΪʲôÐèÒªuCos£¿Ò»°ãµÄ¼òµ¥µÄǶÈëʽÉ豸µÄ±à³Ì˼·ÊÇÏÂÃæÕâÑùµÄ£ºmain{{´¦ÀíÊÂÎñ1}£»{´¦ÀíÊÂÎñ2}£»{´¦ÀíÊÂÎñ3}£»
.......{´¦ÀíÊÂÎñN}£»}isr_server{{´¦ÀíÖжÏ}£»}ÕâÊÇ×îÒ»°ãµÄ˼·£¬¶ÔÓÚ¼òµ¥µÄϵͳµ±È»Êǹ»ÓÃÁË£¬µ«ÕâÑùµÄϵͳʵʱÐÔÊǺܲîµÄ£¬±ÈÈç¡°ÊÂÎñ1¡±Èç¹ûÊÇÒ»¸öÓû§ÊäÈëµÄ¼ì²â£¬µ±Óû§ÊäÈëʱ£¬Èç¹û³ÌÐòÕýÔÚ´¦ÀíÊÂÎñ1ÏÂÃæµÄÄÇЩÊÂÎñ£¬ÄÇôÕâ´ÎÓû§ÊäÈ뽫ʧЧ£¬Óû§µÄÌåÑéÊÇ¡°Õâ¸ö°´¼ü²»ÁéÃô£¬Õâ¸ö»úÆ÷ºÜÂý¡±£¬¶øÎÒÃÇÈç¹û°ÑÊÂÎñ·Åµ½ÖжÏÀïÈ¥´¦Àí£¬ËäÈ»¸ÄÉÆÁËʵʱÐÔµ«»áµ¼ÖÂÁíÍâÒ»¸öÎÊÌ⣬ÓпÉÄÜ»áÒý·¢Öж϶ªÊ§£¬Õâ¸öºó¹ûÓÐʱºò±È¡°ÂýÒ»µã¡±¸ü¼ÓÑÏÖغͶñÁÓ£¡ÓÖ±ÈÈçÊÂÎñ2ÊÇÒ»¸öÖ»ÐèÒª1sÖÓ´¦ÀíÒ»´ÎµÄÈÎÎñ£¬ÄÇôÏÔÈ»ÊÂÎñ2»á°×°×ÀË·ÑCPUµÄʱ¼ä¡£
Õâʱ£¬ÎÒÃÇ¿ÉÄÜÐèÒª¸Ä½øÎÒÃǵıà³Ì˼·£¬Ò»°ãÎÒÃǻ᳢ÊÔ²ÉÓá°Ê±¼äƬ¡±µÄ·½Ê½¡£Õâʱºò±à³Ì»á±ä³ÉÏÂÃæµÄ·½Ê½£ºmain{{ÊÂÎñ1µÄʱ¼äƬµ½ÁËÔò´¦ÀíÊÂÎñ1}£»{ÊÂÎñ2µÄʱ¼äƬµ½ÁËÔò´¦ÀíÊÂÎñ2}£»
.......{ÊÂÎñNµÄʱ¼äƬµ½ÁËÔò´¦ÀíÊÂÎñN}£»}time_isr_server{{ÅжÏÿ¸öÊÂÎñµÄʱ¼äƬÊÇ·ñµ½À´£¬²¢½øÐбê¼Ç}£»}isr_server{{´¦ÀíÖжÏ}£»}ÎÒÃÇ¿ÉÒÔ¿´µ½£¬ÕâÖָĽøºóµÄ˼·£¬Ê¹µÃÊÂÎñµÄÖ´ÐÐʱ¼äµÃµ½¿ØÖÆ£¬ÊÂÎñÖ»ÔÚ×Ô¼ºµÄʱ¼äƬµ½À´ºó£¬²Å»áÈ¥Ö´ÐУ¬µ«ÎÒÃÇ·¢ÏÖ£¬ÕâÖÖ·½Ê½ÈÔÈ»²»Äܳ¹µ×½â¾ö¡°ÊµÊ±ÐÔ¡±µÄÎÊÌ⣬ÒòΪij¸öÊÂÎñµÄʱ¼äƬµ½À´ºó£¬Ò²²»ÄÜÁ¢¼´¾ÍÖ´ÐУ¬Ëý±ØÐëµÈµ½µ±Ç°ÊÂÎñµÄʱ¼äƬÓÃÍ꣬²¢ÇÒºóÃæµÄÊÂÎñʱ¼äƬûµ½À´£¬Ëý²ÅÓлú»á»ñµÃ¡°Ö´ÐÐʱ¼ä¡±¡£
ÕâʱºòÎÒÃÇÐèÒª¼ÌÐø¸Ä½ø˼·,
ΪÁËʹµÃij¸öÊÂÎñµÄʱ¼äƬµ½À´ºóÄÜÁ¢¼´Ö´ÐУ¬ÎÒÃÇÐèÒªÔÚʱÖÓÖжÏÀïÅжÏÍêʱ¼äƬºó£¬¸Ä±ä³ÌÐòµÄ·µ»ØλÖã¬ÈóÌÐò²»·µ»Øµ½¸Õ¸Õ±»´ò¶ÏµÄλÖ㬶ø´Ó×îлñµÃÁËʱ¼äƬµÄÊÂÎñ´¦¿ªÊ¼Ö´ÐУ¬ÕâÑù¾Í³¹µ×½â¾öÁËÊÂÎñµÄʵʱÎÊÌâ¡£
ÎÒÃÇÔÚÕâ¸ö˼·ÉÏ£¬½øÐиĽø£¬ÎÒÃÇÐèÒªÔÚÿ´Î½øÈëʱÖÓÖжÏÇ°£¬±£´æCPUµÄµ±Ç°×´Ì¬ºÍµ±Ç°ÊÂÎñÓõ½µÄһЩÊý¾Ý£¬È»ºóÎÒÃǽøÈëʱÖÓÖжϽøÐÐʱ¼äƬ´¦Àí£¬Èô·¢ÏÖÓÐеĸü½ô¼±µÄÊÂÎñµÄʱ¼äƬµ½À´ÁË£¬ÔòÎÒÃǸıäÖжϵķµ»ØµÄµØÖ·£¬²¢ÔÚCPUÖлָ´Õâ¸ö¸ü½ô¼±µÄÊÂÎñµÄÏÖ³¡£¬È»ºó·µ»ØÖжϿªÊ¼Ö´ÐÐÕâ¸ö¸ü½ô¼±µÄÊÂÎñ¡£
ÉÏÃæµÄÕâ¶Î»°ÓÐЩ²»ºÃ¶Á£¬ÊÂʵÉÏ£¬ÕâÊÇÒòΪҪʵÏÖÕâ¸ö¹ý³ÌÊÇÓÐЩ¸´ÔÓºÍÂé·³µÄ£¬ÕâʱºòÎÒÃǾÍÐèÒªÕÒÒ»¸ö²Ù×÷ϵͳ(OS)°ïÎÒÃÇ×öÕâЩÊÂÁË£¬Èç¹ûÄãÄÜ×Ô¼ºÓôúÂëʵÏÖÕâ¸ö¹ý³Ì£¬ÊÂʵÉÏÄã¾ÍÔÚ×Ô¼ºÐ´²Ù×÷ϵͳÁË£¬Æäʵ´ÓÕâÀïÒ²¿ÉÒ²¿´³ö£¬²Ù×÷ϵͳµÄÔÀíÆäʵ²¢²»ÄÇôÉñÃØ£¬Ö»ÊÇһЩϸ½ÚÄãºÜÄÑ×öºÃ¡£
uCos¾ÍÊÇÕâÑùÒ»¸ö²Ù×÷ϵͳ£¬ËýÄÜ°ïÄãÍê³ÉÕâЩÊÂÇ飬¶øÇÒÊǺÜÓÅÑŵİïÄãÍê³É£¡
uCosµÄÓô¦Ô¶²»Ö¹°ïÄãÍê³ÉÕâ¸ö¡°ÊÂÎñʱ¼äƬµÄ´¦Àí¡±£¬Ëý»¹ÄÜ°ïÄã´¦Àí¸÷ÖÖ³¬Ê±£¬½øÐÐÄÚ´æ¹ÜÀí£¬Íê³ÉÈÎÎñ¼äµÄͨÐŵȣ¬ÓÐÁËËý£¬³ÌÐòµÄ²ã´ÎÒ²¸ü¼ÓÇåÎú£¬¸øϵͳÌí¼Ó¹¦ÄÜÒ²¸ü·½±ã£¬ÕâÒ»ÇÐÔÚ´óÐÍÏîÄ¿ÖÐÔ½·¢µÄÃ÷ÏÔ£¡ÎÒÃÇÖªµÀÁËuCosÄܸøÎÒÃÇÌṩÕâô¶àµÄ±ãÀû£¬ÄÇôÎÒÃǾͿªÊ¼Ê¹ÓÃuCos°É£¡
|
|