在C中暂停一下线程

0 c sockets time multithreading sleep

我如何在C应用程序中睡1秒?我想断开套接字,所以我想睡一会儿并触发超时.在Java中它是

了Thread.sleep(1000);

非常感谢

Jef*_*ter 5

C规范并不真正涵盖线程,因此您需要一个特定于平台的线程.