博客
关于我
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/

    你可能感兴趣的文章
    QGIS怎样设置简体中文以及新建可编辑的多边形的图层
    查看>>
    PowerBuilder 使用自定义事件触发键盘Enter事件
    查看>>
    PowerCreatorCMS UploadResourcePic 任意文件上传漏洞复现
    查看>>
    PowerDesigner 使用的一些技巧(转)
    查看>>
    QGIS在Windows上下载安装与建立空间数据库连接
    查看>>
    PowerDesigner165安装婆姐汉花教程
    查看>>
    PowerDesigner使用教程:设置注释、默认值属性
    查看>>
    PowerDesigner使用教程:不显示背景网格
    查看>>
    PowerDesigner使用教程:创建数据模型以及导出
    查看>>
    PowerDesigner使用教程:右侧工具栏显示/隐藏
    查看>>
    PowerDesigner使用教程:导出sql文件以及解决中文乱码问题
    查看>>
    PowerDesigner使用教程:时间字段设置
    查看>>
    PowerDesigner使用教程:给字段添加唯一约束
    查看>>
    QGIS中怎样设置图层样式并导出地图样式
    查看>>
    PowerDesigner使用笔记
    查看>>
    QGIS中怎样实现数据坐标系转换
    查看>>
    PowerDesigner学习--基本步骤
    查看>>
    PowerDesigner导出Report通用报表
    查看>>
    PowerDesigner教程系列(二)概念数据模型
    查看>>
    Powerdesigner显示表的comment和列的comment的方法
    查看>>