blob: cf22d85b126a5156593ee8b38b274668d650d048 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
case ARGV[0]
when "process"
which = Process::PRIO_PROCESS
when "group"
Process.setpgrp
which = Process::PRIO_PGRP
end
priority = Process.getpriority(which, 0)
p priority
p Process.setpriority(which, 0, priority + 1)
p Process.getpriority(which, 0)
|