Home  >  Q&A  >  body text

c - linux中usleep和sleep的底层实现是否存在差别?

阿神阿神2716 days ago697

reply all(1)I'll reply

  • 巴扎黑

    巴扎黑2017-04-17 13:55:27

    The implementation of sleep and usleep is the same, both call nanosleep.
    But the unit of sleep is seconds, and the unit of usleep is microseconds...

    reply
    0
  • Cancelreply