I want to tell my Python threads to yield, and so avoid hogging the CPU unnecessarily. In Java, you could do that using the Thread.yield() function. I don\'t think
Thread.yield()
Dup of: How does a threading.Thread yield the rest of its quantum in Python?.
time.sleep(0)