i found some program, e.g. winamp; glut library, can adjust CPU usage, dont know how to implenment that, when i start a thread, the program will use 99% of CPU, but after add a Sleep(), it will be 0% and very slow. if I can adjust the CPU usage by myself, the thing will be better. any suggestion?