StupidBeauty
Read times:415Posted at:Fri Nov 4 17:45:09 2011

转载:请问 usleep() sleep() 有何区别???

http://www.lslnet.com/linux/dosc1/44/linux-308370.htm

亮点:

man usleep
....
NOTES
The interaction of this function with SIGALRM and other timer functions such as
sleep(), alarm(), setitimer(), nanosleep() is unspecified. This function is
obsolete. Use nanosleep(2) or setitimer(2) instead.

nanosleep: 精度比较高,没有usleep的问题,也是POSIX要求的

转载:请问 usleep() sleep() 有何区别???

http://www.lslnet.com/linux/dosc1/44/linux-308370.htm

亮点:

man usleep
....
NOTES
The interaction of this function with SIGALRM and other timer functions such as
sleep(), alarm(), setitimer(), nanosleep() is unspecified. This function is
obsolete. Use nanosleep(2) or setitimer(2) instead.

nanosleep: 精度比较高,没有usleep的问题,也是POSIX要求的

Your opinions
Your name:Email:Website url:Opinion content:
- no title specified

HxLauncher: Launch Android applications by voice commands

 
Recent comments
2017年4月~2019年4月垃圾短信排行榜Posted at:Thu Sep 26 04:51:48 2024
Qt5.7文档翻译:QWebEngineCookieStore类,QWebEngineCookieStore ClassPosted at:Fri Aug 11 06:50:35 2023盲盒kill -9 18289 Grebe.20230517.211749.552.mp4