阅读背景:

setrlimit是否可以用于在一段时间内执行资源使用限制?

来源:互联网 

I want to set limits for how long programs spawned by execv can use a certain amount of memory and a certain amount of CPU time. For example, I want to set limits like a program cannot exceed 100MB for 30 seconds, and a program cannot use 90% or more of the CPU for more than 20 seconds.I want to set limits for how long programs spaw




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: