空循环和睡眠的区别

空循环时进程仍占用cpu; 睡眠时则会让出cpu,让别的进程干活。

Leave a Comment

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.