How to make C program wait (on Linux)?

How to make C program wait (on Linux)? (I need to use wait with MPI - I need C code, please)

+5
source share
4 answers

If you want to wait for the MPI request, use MPI_Wait: http://www.manpagez.com/man/3/MPI_Wait/

If you want to wait a while, use the dream: http://www.manpagez.com/man/3/Sleep/

If you want to wait for another process to complete, use waitpid: http://linux.die.net/man/2/waitpid

( ), pthread_cond_wait: http://www.opengroup.org/onlinepubs/007908775/xsh/pthread_cond_wait.html

, .

+11
+3

, ? , sleep().

+2

All Articles