All books

Professional

Apps About Coach Log in Start reading

Quantitative Finance · Glossary

What is Real-time scheduling policy, memory locking?

Also known as: real-time scheduling policy · memory locking

Definition 13.6 Low-Latency Software · Chapter 13 — Linux Tuning

A real-time scheduling policy (SCHED_FIFO or SCHED_RR in Linux) gives a thread a static priority above every ordinary thread: a runnable real-time thread preempts any ordinary one and, under SCHED_FIFO, runs without time slicing until it blocks, yields or is preempted by a higher priority. Memory locking (mlock, mlockall) keeps a process’s pages in physical memory: they are never paged out, and with MCL_FUTURE every page of every later mapping is made present when the mapping is created.

Read in context →