Process Priority with nice and renice
One CPU, three workloads, three owners. Read who has which priority, start a job that stays out of the way, calm down the process that is hogging the CPU, and find out exactly what an ordinary user may and may not change.
Skill labbeginner~20 minFree
What you'll do
- ✓Read NI, PRI and PR in ps and top and know how they relate
- ✓Start a program with a chosen niceness
- ✓Change the niceness of a running process and find the one using the most CPU
- ✓Know what an unprivileged user may and may not do to a niceness
Lab outline
- 01Read priorities
- 02Set priorities
- 03What a user may do
Before you start
- Processes, Signals, and Job Control
- Can switch to another user account from a root shell
Every lab runs on a real machine of your own in the browser — no installs, nothing to clean up — and checks your work automatically as you go.