cpu.priority readwrite


The cpu.priority property get or set the current process and thread (the one executing Luart) scheduling priority.

Here are the possible string values:

  • "idle"
  • "below_normal"
  • "normal"
  • "above_normal"
  • "high"

Example

--! luart-extensions import cpu print("Current process priority : "..cpu.priority)