On a sftp server i create a “lockfile.lock” if another application is manipulating data.
No in my c application i would like to check if the lockfile.lock exists and than “WAIT 5 SECONDS”.
How do i wait 5 seconds in c without blasting the CPU to 100%?
Thanks
On windows and linux there is a system call “sleep()”. Windows, Linux