user2849967
user2849967

Reputation: 201

How can I know which type of process of linux will use for these?

if I am listening to an audio file, creating a presentation, and downloading something from the internet...while we know that: an audio file will use real-time creating a presentation will use interactive and downloading will use background

but what I cannot know is for example: when an audio file will use real-time, will it use FIFO or RR ??

please help

Upvotes: 2

Views: 41

Answers (1)

Nikolai Fetissov
Nikolai Fetissov

Reputation: 84151

Look at the output of the ps(1) with the -O cls, e.g.:

~$ ps -O cls -A
  PID CLS S TTY          TIME COMMAND
    1  TS S ?        00:00:31 init [2]  
    2  TS S ?        00:00:01 [kthreadd]
    3  TS S ?        00:00:06 [ksoftirqd/0]
    5  TS S ?        00:00:00 [kworker/u:0]
    6  FF S ?        00:00:01 [migration/0]
    7  FF S ?        00:00:17 [watchdog/0]
    ...

The CLS column gives you the scheduling priority of the thread.

Upvotes: 2

Related Questions