Infinite loops and synchronization

Lawrence D'Oliveiro ldo at geek-central.gen.new_zealand
Mon Jul 13 07:24:03 EDT 2009


In message <mailman.3048.1247462046.8015.python-list at python.org>, Vincent 
Gulinao wrote:

> Q1: is this a common OK practice? I'm worried infinite loops hogs memory.

The problem is not that the loop is infinite, but that it busy-waits, 
hogging CPU.




More information about the Python-list mailing list