You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There's a very good chance I missed this, but I didn't see how to check how a process is scheduled in linux. Whether the process/thread has been setup to use round robin, fifo, other, etc, scheduling. https://man7.org/linux/man-pages/man7/sched.7.html
The text was updated successfully, but these errors were encountered:
cpu_affinity() (run process on a certain set of CPUs only)
Some of these overlap with the sched stuff in the os module: https://docs.python.org/3/library/os.html#interface-to-the-scheduler
...so I believe you're looking for those ones instead. At the moment psutil won't let you handles fifos. etc.
It's something which could be included though. I've never investigated that part of the os module.
Yeah, I saw those other things, scheduling is conceptually nearby so I figured it was there somewhere. Thanks for pointing me to the os API, I admit that I didn't realize until this moment that os itself had so much :-). I do think access to the scheduling for a process would be nice, it seems relatively straightforward insofar as just calling to the underlying function. If you're interested in adding such I could leave this open, otherwise I can close. Cheers!
There's a very good chance I missed this, but I didn't see how to check how a process is scheduled in linux. Whether the process/thread has been setup to use round robin, fifo, other, etc, scheduling. https://man7.org/linux/man-pages/man7/sched.7.html
The text was updated successfully, but these errors were encountered: