> Is sleep(0) a preferred way to go? I think the best solution is not coding spin-loops. Not sure what sleep(0) ends up turning into, but if you can tell the system "I'm waiting for this object, wake me up when it's available" then that should produce the best behavior. - R.