~/talk

Tutorial: Leveraging the OS CPU Scheduler to Write Real-Time MT Apps

slides:none on file

Linux supports per-thread sched via pthread_setschedparam and syscalls to set POSIX policies (sched_fifo, SCHED_RR, SCHED_OTHER); real‑time priorities run 1–99 while normal threads have priority 0. Demo C program creates two threads, uses chrt/taskset/setcap (CAP_SYS_NICE) to assign sched_fifo priority 1-99 and CPU affinity so one thread preempts another; it works once affinity pins threads to the same core. Kernel tuning uses /proc/sys/kernel/sched_rt_runtime_us (default 950000/1000000) to leak CPU; PREEMPT_RT patches (e.g., for 6.1.19) cut max latency in cyclictest.

AI-written summary · about

  1. 0:00Introduction
  2. 2:14Defining real-time
  3. 7:01Gpos vs. Rtos
  4. 16:13Linux process model
  5. 30:46Kernel architecture
  6. 43:21Scheduling policies
  7. 1:00:17Practical scheduling tools
  8. 1:10:42Real-time programming demo
  9. 1:35:38System tuning
  10. 1:40:43Systemd integration
  11. 1:44:25Rtl and kernel preemption
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.