简体   繁体   English

就进程暂停多长时间而言,Linux内核能提供什么保证?

[英]What guarantees does the linux kernel give in terms of how long a process pauses?

Say I'm running a program on a linux machine. 假设我正在Linux机器上运行程序。 I want to be able to give some guarantees about how it will perform. 我希望能够对它的性能提供一些保证。 In order to do this, I need to know if the linux kernel gives any guarantees about my process. 为了做到这一点,我需要知道linux内核是否对我的进​​程提供了任何保证。 This is in the same area as timeouts from gc pauses, ie when the process stops responding for a while but later comes back online. 这与gc暂停超时相同,即进程停止响应一段时间后又恢复在线。

Does the linux kernel give any guarantees about for how long a process may be paused, ie not executing? Linux内核是否可以保证进程可以暂停多长时间(即不执行)?

What if there are no processes with a higher priority than the program I'm interested in? 如果没有优先级比我感兴趣的程序高的进程怎么办?

As far as i know Linux does not give any guarantees on anything, 据我所知,Linux在任何方面均不提供任何保证,

But if it is about your system running out of resources and pausing a process it will depend on the hardware running it. 但是,如果有关系统的资源不足并暂停进程,则取决于运行它的硬件。

If your process is the highest is will run unless instructed overwise, 如果您的过程最高,除非另有指示,否则将运行

I have never tested this but i beleive you can keep a process paused for as long as you want if you choose to. 我从未对此进行过测试,但是我相信,如果您愿意的话,您可以根据需要将进程暂停多长时间。

Hope this Helped :) 希望对您有所帮助:)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM