I think you want to take a look at nice
:
NICE(1) User Commands NICE(1)
NAME
nice - run a program with modified scheduling priority
SYNOPSIS
nice [OPTION] [COMMAND [ARG]...]
DESCRIPTION
Run COMMAND with an adjusted niceness, which affects process
scheduling. With no COMMAND, print the current niceness.
Niceness values range from -20 (most favorable to the
process) to 19 (least favorable to the process).
Note that if you want to increase the scheduling priority (by providing a negative nice
value) you will need to have root (sudo) access. Normal users cannot increase priority, but only decrease.
To get highest priority scheduling, you would nee to run something like:
$ sudo nice --adjustment=-20 /your/application
Or, if your process is already running, you can change the priority like so:
$ sudo renice -n -20 [PID]