c - 如何让 C 程序等待(在 Linux 上)?

标签 c linux wait mpi

如何让 C 程序等待(在 Linux 上)? (我需要等待 MPI - 我需要 C 代码)

最佳答案

如果您想等待 MPI 请求,请使用 MPI_Wait:http://www.manpagez.com/man/3/MPI_Wait/

如果您想等待一定时间,请使用 sleep :http://www.manpagez.com/man/3/Sleep/

如果你想等待另一个进程结束使用 waitpid: http://linux.die.net/man/2/waitpid

如果你想等待一个条件变量(多线程编程)使用pthread_cond_wait: http://www.opengroup.org/onlinepubs/007908775/xsh/pthread_cond_wait.html

定义您要等待的内容。

关于c - 如何让 C 程序等待(在 Linux 上)?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2566073/

相关文章:

c++ - 为什么不同操作系统的 sizeof(int) 不同?

c - C 中主要指令的时间复杂度

c++ - 如何使用boost program_options读取整数数组?

linux - 在服务器上删除重复的 Git 分支

javascript - 如何让代码在单击按钮后等待 X 秒再继续?

java - 错误:The method elementToBeClickable(By) in the type ExpectedConditions is not applicable for the arguments (WebElement)

C 将指针传递给 char 的指针

c - 具有共享内存的进程异常终止的行为

c - C 中的全缓冲​​、行缓冲和无缓冲是什么意思?

ios - NSOperation 中的 AFHttpRequestOperation