博客
关于我
nice和renice命令详解
阅读量:78 次
发布时间:2019-02-25

本文共 1323 字,大约阅读时间需要 4 分钟。

Linux?????nice??

?????Linux??????????????????????????????????????????????????????????????????????CPU????????????nice??????????????????????????

nice????

nice???????????????????????????????????nice??????????"nice"??niceness??????????????????????????????????????????????????????????????????

????

nice [OPTIONS] [COMMAND [ARG]...]
  • ????????????niceness??10?
  • ????????nice vi??vi???niceness??10?

????

  • -n, --adjustment=N

    ??niceness??N?N????-20?19?
    ???nice -n 10 vi?vi??????10?

  • ?????????niceness?????10?

    ???nice vi??vi?????10?

????

  • ??????

    nice -20 some_command

    some_command???????-20?????????

  • ???????

    nice some_command

    some_command???????10?

  • ????????

    nice -c 5 some_command &nice -c 10 other_command &

    ??-c?????????????????

  • ???????

    ??ps -lF??????????????????

    ps -lF

    ????PRI???????????NI??nice?????PRI??80???NI??????????????PRI + NI?

    renice??

    nice?????????????????renice?????????????????????

    renice [OPTIONS] [?????...]

    ????

    • -p PID

      ??PID???????????

    • -u ???

      ???????????????

    • -g ??

      ????????????????

    • -5

      ??????-5????????

    ????

  • ????PID?????

    renice -5 1234

    ?PID?1234????????-5?

  • ?????????????

    renice -10 -u xie

    ???xie??????????-10?

  • ???????????

    renice -5 -g dev

    ???dev???????????-5?

  • ????

    • ??????niceness?????????????
    • ???????niceness?????10?
    • ?????niceness????-20?19?

    ??

    ??nice???renice?????????????????????????????????????????????????????????????

    转载地址:http://zwq.baihongyu.com/

    你可能感兴趣的文章
    python 图片转ico
    查看>>
    python 图片转文字、语音转文字、文字转语音保存音频并朗读
    查看>>
    python 在包含类似字符\x16、\x12、\x某某的数组中将以\x开头的字符找出来的方法
    查看>>
    Python 在并行进程之间共享字典
    查看>>
    Python 垃圾收集器文档
    查看>>
    python 基于 wordcloud + jieba + matplotlib 生成词云
    查看>>
    python 基于detectron或mask_rcnn的mask遮罩区域进行图片截取
    查看>>
    Python编程:Tkinter图形界面设计(2)
    查看>>
    Python 基础 - Day 5 Learning Note - 模块 之 标准库:time (1)
    查看>>
    Python 基础一
    查看>>
    Python 基础知识点整理与分享,期盼你的交流!
    查看>>
    python 基础第七篇
    查看>>
    Python编程:Tkinter图形界面设计(1)
    查看>>
    Python 基础语法:None
    查看>>
    Python 基础语法:基本数据类型(一)
    查看>>
    python编程读取写入excel_Python读取txt内容写入xls格式excel中的方法
    查看>>
    Python 基础语法:基本数据类型(字典)
    查看>>
    Python 基础语法:基本数据类型(字符串)
    查看>>
    Python 基础语法:基本数据类型(集合)
    查看>>
    Python编程的终极十大工具
    查看>>