问题描述
我正在使用 unix system() 调用来调用 gunzip 和 gzip 文件.对于非常大的文件,有时(即在集群计算节点上)它们会中止,而其他时候(即在登录节点上)它们会通过.系统调用可能花费的时间是否有一些软限制?还能是什么?
I'm using unix system() calls to gunzip and gzip files. With very large files sometimes (i.e. on the cluster compute node) these get aborted, while other times (i.e. on the login nodes) they go through. Is there some soft limit on the time a system call may take? What else could it be?
推荐答案
调用线程应该无限期地阻塞,直到您使用 system() 启动的任务完成.如果您观察到调用返回并且文件操作未完成,则表明生成的操作由于某种原因失败.
The calling thread should block indefinitely until the task you initiated with system() completes. If what you are observing is that the call returns and the file operation as not completed it is an indication that the spawned operation failed for some reason.
返回值表示什么?
这篇关于系统调用超时?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!