Prahlad Yeri added the comment:
Hi STINNER Victor,
Thanks a lot, after adding the sleep function, it has stopped wasting the CPU
cycles! A long while ago, I remember coding a similar loop in linux and not
faced such issue, so I thought maybe it was a bug in 3.6.
Anyway, I'm closing
New submission from Prahlad Yeri:
I'm running Python 3.6 on Windows 7. It wastes a lot of cpu cycles when inside
a loop. In attached screenshot, you'll find that ~25% cpu is used by Python,
while all I'm doing is running a pomodoro script that waits for a specific
timeslot to