blockProcessPriority

Set process priority

Extends from Modelica_DeviceDrivers.Utilities.Icons.BaseIcon (Base icon for blocks providing access to external devices).

Information

Sets the process priority of the current process. Different priority levels are supported:

  • Idle
  • Below Normal
  • Normal
  • High Priority
  • Real-Time

Using the "High Priority" and "Real-Time" priorities in Linux will usually require "root" privileges for the simulation process. Using the "Real-Time" priority in Linux with a low-latency kernel as provided by the PREEMPT_RT patch will even provide limited (however, implementation specific limitations given below still apply) "hard" real-time capabilities (see e.g., https://www.osadl.org/Realtime-Linux.projects-realtime-linux.0.html).

Typically, this block will be used together with the RealtimeSynchronize block for improving the real-time performance.

Parameters

TypeNameDefaultDescription
Types.ProcessPrioritypriority"Normal"Priority of the simulation process

Components

TypeNameDefaultDescription
Modelica_DeviceDrivers.OperatingSystem.ProcessPriorityprocPrioModelica_DeviceDrivers.OperatingSystem.ProcessPriority()