Get the scheduling policy for the process identified by pid. Passing 0 for pid returns the scheduling policy for the calling process.
os/sched_getscheduler
sched_getscheduler