Controlling Job Priority with nice

Code Listing 9.9. By using nice plus an adjustment, you can let Unix determine how hard to work on your job.
[ejr@hobbes ejr]$ nice -n 19 slowscript
				

Suppose you need an enormous file from the Internet that would take practically all afternoon to download. By downloading it, you would hog system resources and make the system response time much slower for other users. OK, bad example. Suppose your coworker needs to download an enormous file and would hog system resources all afternoon. You’d hope that she’d have the courtesy to not tie up system resources that you need to use.

Fortunately, she can, using nice, which lets her control job priority. As Code Listing 9.9 shows, you rank your job’s priority using ...

Get Unix Third Edition: Visual Quickstart Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.