$ sudo time -f '%c %w' chrt -f 99 ./ft 1234567890
26 1
I am curious why my process has been involuntarily (because the time slice expired) context-switched 26 times even though I set the scheduler to FIFO with the max priority 99:
$ chrt -m
SCHED_OTHER min/max priority : 0/0
SCHED_FIFO min/max priority : 1/99
SCHED_RR min/max priority : 1/99
SCHED_BATCH min/max priority : 0/0
SCHED_IDLE min/max priority : 0/0
$ uname -a
Linux localhost.localdomain 2.6.32-358.2.1.el6.x86_64 #1 SMP Wed Mar 13 00:26:49 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
Any idea?
Thanks in advance.