-1

I am new to Linux kernel and I have got confused . Please can anyone give answer to my questions :

Q1 -> Is static priority of a thread changes or not ? If changes then how it changes ?

Q2 -> What is the default value of static priority and dynamic priority for a process and thread in Linux kernel ?

Q3 -> What is the initial value of static priority and dynamic priority for a newly created thread and process?

Q4 -> When we talk about the priority of a process or thread (incrementing / decrementing priority , setting priority etc. ) , then which priority we are referring , is it static priority or dynamic priority ?

Saurabh Jain
  • 1,227
  • 1
  • 16
  • 28

1 Answers1

0

For currently running process, please run the below command

renice <priority_value> -p `pidof <process_name>`

Here, -20<=priority_value<=19

For new process

nice -n <priority_value> <process_name>
iamsrijon
  • 76
  • 6