| adm | Find | login register |
caleb joined: 2007-09-22 posted: 630 promoted: 134 bookmarked: 90 |
如附件。 Compared to sleep(3) and usleep(3), nanosleep() has the advantage of not affecting any signals, it is standardized by POSIX, it provides higher timing resolution, and it allows to continue a sleep that has been interrupted by a signal more easily.
Security issue:
| |||||||
eliu joined: 2007-08-09 posted: 11480 promoted: 617 bookmarked: 187 新竹, 台灣 |
我不覺得 signal 影響會造成什麼問題,如果從負面的影響來說,而且 nanosleep 多出來的 parameter 會讓 file size 變大。 edited: 2
|
| adm | Find | login register |