> Could it be a problem with the operation system? Is it possible that an
> os.stat call requires 100% CPU power from the OS? Or is it a problem
> with the Python implementation?

There is a chance that the CPU usage actually comes from the thread
doing sleep(). If you have a very short sleep time, and a loop around
it, it may spin in this loop.

If it's not that, and if it's not any other unrelated application that
uses CPU that you didn't mention, then chances are high that it's indeed
the file system code of your operating system that consumes that much
CPU time.

Regards,
Martin
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to