chrt linux

chrt:   manipulate the real-time attributes of a process

Synopsis:

  • chrt [options] priority command [arg]
  • chrt [options] -p [prio] pid

Usage:

  • chrt --pid PID      获取pid的scheduling policy & scheduling priority

     

     

  •  

    chrt --max       show min and max valid priorities

     

     只有SCHED_FIFO & SCHED_RR 的priority可设置

  •  

    chrt [scheduling options] priority command [arguments]       可以指定scheduling options 和 priority 运行命令

     

     

  •  

    chrt <scheduling options> --pid <priority> PID       必须以此格式同时设定scheduling options & priority

     

     


      
posted @ 2020-06-19 15:37  ascertain  阅读(513)  评论(0编辑  收藏  举报