Re:CPU Clocks and Clock Interrupts, and Their Effects on Sch...
by kllrnohj on Tuesday February 12, 2019 @10:36PM
(#19150155)
> Real-time programs tend to avoid syscalls, etc. which cause a context switch
That's not why they avoid syscalls. If you are running on a real time schedule there won't be a context switch in response to a syscall. They may, however, get blocked on kernel mutexes. So syscalls are avoided for the same reason user-space mutexes are avoided - being real-time doesn't help if you're blocked on a mutex.
That's not why they avoid syscalls. If you are running on a real time schedule there won't be a context switch in response to a syscall. They may, however, get blocked on kernel mutexes. So syscalls are avoided for the same reason user-space mutexes are avoided - being real-time doesn't help if you're blocked on a mutex.