interplane.Get Omega
Read in your language

omega-mcp

aien-dev/omega-mcp

Brought by drakestapleton

branch main Branches Tags History

omega-mcp / data / examples / sched.om

16 lines · 321 bytes Raw Blame History
1note CPU affinity, the current CPU and the thread's scheduling priority (nice 19 is always allowed)
2global mask uchar 128
3fn ck yes bool to void
4if not yes
5exit 80
6end
7end
8fn main to int
9n = cpuget 0 mask 0 128
10ck gt n 0
11ck eq cpuset 0 mask 0 ulong n 0
12ck ge cpunow 0
13ck eq setprio 0 0 19 0
14ck eq getprio 0 0 1
15ret 0
16end