Sololearn: Learn to Code
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1
I checked out some stackoverflow threads but didn't find the thing exact thing that you need. But I think these resources could be useful https://stackoverflow.com/questions/43596427/how-to-check-if-a-server-needs-a-reboot https://stackoverflow.com/questions/21287966/check-for-pending-reboots You know? Google is your friend. There were lots of useful stuff so I recommend you to search some of them. I'd try to find a way myself too EDIT: There were these methods in os module ['sched_get_priority_min', 'sched_getaffinity', 'sched_getparam', 'sched_getscheduler', 'sched_param', 'sched_rr_get_interval', 'sched_setaffinity', 'sched_setparam', 'sched_setscheduler', 'sched_yield'] Unfortunately I can't try it from my phone as I get permission errors. Also I'm not pro that those os stuff ^^ so I hope this would give you a hint about what you should do
20th Jun 2020, 1:46 PM
Seniru
Seniru - avatar