renice

åå
     renice — å®è¡ãã¦ããããã»ã¹ã®åªåé ä½ãå¤æ´ãã

æ¸å¼
     renice priority [[-p] pid ...] [[-g] pgrp ...] [[-u] user ...]

説æ
     renice ã¯åä½ä¸ã®ããã»ã¹ã®ã¹ã±ã¸ã¥ã¼ãªã³ã°åªåé ä½ãå¤æ´ãã (è¤æ°ã®ãã‐
     ã»ã¹ãåæã«å¤æ´ãããã¨ãã§ãã)ã 以ä¸ã® who ãã©ã¡ã¼ã¿ã¯ãããã»ã¹ IDãããã»ã¹ã°ã«ã¼ã
     IDããããã¯ã¦ã¼ã¶å㨠ãã¦è§£éãããã ããã»ã¹ã°ã«ã¼ãã renice ããã¨ã
     ãã®ã°ã«ã¼ãã«å±ããå¨ã¦ã®ããã»ã¹ã®ã¹ã±ã¸ã¥ã¼ãªã³ã°åªåé ä½ãå¤æ´ãããã
     ã¦ã¼ã¶åã«å¯¾ãã renice ãè¡ãã¨ã ãã®ã¦ã¼ã¶ãææãã¦ããå¨ã¦ã®ãã‐
     ã»ã¹ã®ã¹ã±ã¸ã¥ã¼ãªã³ã°åªåé ä½ã å¤æ´ãããã ããã©ã«ãã§ã¯ãããã»ã¹ ID
     ã«ãã£ã¦æå®ãããããã»ã¹ãå¦ç対象ã¨ãªãã

     renice ã®ãµãã¼ããããªãã·ã§ã³ã¯ä»¥ä¸ã®éã:

     -g      å¼·å¶çã« who ãã©ã¡ã¼ã¿ãããã»ã¹ã°ã«ã¼ãã® ID ã¨ãã¦è§£éããã

     -u      å¼·å¶çã« who ãã©ã¡ã¼ã¿ãã¦ã¼ã¶åã¨ãã¦è§£éããã

     -p      who ãããã»ã¹ ID ã¨ãã¦è§£éãããããã«ãªã»ãããã (ããã¯ããã©ã«ãã®è§£éã§ãã)ã

     ä¾ãã°

     renice +1 987 -u daemon root -p 32

     ããã»ã¹ ID 987 㨠32 ã®åªå度ã¨ãã¦ã¼ã¶ daemon 㨠root ã«ãã£ã¦
     ææããã¦ããå¨ã¦ã®ããã»ã¹ã®åªå度ãå¤æ´ããã

     ã¹ã¼ãã¼ã¦ã¼ã¶ã§ãªãã¦ã¼ã¶ã¯ã èªåãææãã¦ããããã»ã¹ã®åªå度ããå¤æ´ã§ããªãã ã¾ã
     ``nice å¤'' ãå¢ãããã¨ããã§ããªãã å¢ãããå¤ã¯ 0 ãã PRIO_MAX (20)
     ã¾ã§ã®ç¯å²ã§ããã (ããã¯æéè¦ãªã·ã¹ãã 管çå½ä»¤ã妨ããªãããã§ãã)
     ã¹ã¼ãã¼ã¦ã¼ã¶ã¯ããããããã»ã¹ã®åªå度ãå¤æ´ã§ãã PRIO_MIN (-20) ãã PRIO_MAX
     ã®ç¯å²ã§åªå度ã®å¤ãå¤æ´ã§ããã 便å©ãªåªå度ã¯: 20 (å½±é¿ããããã‐
     ã»ã¹ã¯ãã·ã¹ãã ã«å®è¡ãããã®ããªãå ´åã ãå®è¡ããã) 0 (``åºæ¬''
     ã®ã¹ã±ã¸ã¥ã¼ãªã³ã°åªå度)ã è² ã®å¤ (ã¨ã¦ãæ©ãå®è¡ããã)

ãã¡ã¤ã«
     /etc/passwd  ã¦ã¼ã¶åã¨ã¦ã¼ã¶IDã®å¯¾å¿ãåãã

é¢é£é ç®
     getpriority(2), setpriority(2)

ãã°
     ã¹ã¼ãã¦ã¼ã¶ã§ãªãã¦ã¼ã¶ã¯ãä¸åº¦ã¹ã±ã¸ã¥ã¼ãªã³ã°åªå度ã æ¸ãããããã‐
     ã»ã¹ã«é¢ãã¦ãããããå¢ãããã¨ã¯ã§ããªãã
     linux ã«ã¼ãã« (ç¾å¨ 2.0.0) 㨠linux libc (ç¾å¨ 5.2.18) ã¨ã§ã¯ã nice
     å¤ãè¨å®ããã·ã¹ãã ã³ã¼ã«ã®ã¤ã³ã¿ã¼ãã§ã¼ã¹ãå®å¨ã«åãã§ãªãã ãããã£ã¦ renice ã¯
     å¤æ´åã® nice å¤ã¨ãã¦æ£ããå¤ãè¿ããªããã¨ãããã

å±¥æ´
     renice 㯠4.0BSD ããç»å ´ããã