c - c call sync 和命令sync 做的一样吗?

标签 c linux synchronization

c 调用“sync”是否与 linux 命令“sync”执行相同的操作? 如果不是,它们有何不同?

C/C++ 代码在基于 Linux 的系统上运行。

/谢谢

最佳答案

来自 sync(8) 手册页:

The sync program does nothing but exercise the sync(2) system call.

关于c - c call sync 和命令sync 做的一样吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6758912/

相关文章:

Linux cut 命令 - 捕获多个位置之间的字符串

linux - 我尝试设置 monitorix 并收到错误消息 :You don't have permission to access/monitorix on this server

linux - 无法使用 postgres 创建空数据库——更改目录时权限被拒绝

c++ - 序列号 : write() throttling?

c - 当一个对象需要修改另一个对象时的 OOP 最佳实践

c - 如何在 C 中为字符串数组动态分配内存?

java - 线程同步不起作用

objective-c - 更改@synchronized 部分中的锁定对象

c++ - 如何将 OpenCV 的 Mat 结构的部分图像矩阵加载到我自己的 3x3 数组中?

c - 为什么有多个作品,如果不是这种情况