Questions: Resource Limits and Process Accounting

5 questions to test your understanding

Score: 0 / 5
Question 1 Multiple Choice

A process tries to open its 2000th file descriptor. Its soft limit is 1024 and its hard limit is 4096. What can the process do?

AThe open() call fails; the process cannot open more file descriptors regardless
BThe process can raise its own soft limit to up to 4096 and retry the open() call
CThe process needs root privileges to open more file descriptors since it exceeded its limit
DThe kernel automatically kills the process for exceeding its resource limit
Question 2 Multiple Choice

What is the key distinction between resource limits and process accounting?

ALimits control memory usage; accounting controls CPU time
BLimits are enforced by hardware; accounting is a software-only mechanism
CLimits proactively prevent resource exhaustion; accounting reactively records what was consumed
DLimits apply only to privileged processes; accounting applies to all processes
Question 3 True / False

A process can raise its own hard limit without administrator privileges if it needs more resources.

TTrue
FFalse
Question 4 True / False

Process accounting data can be used for capacity planning and usage-based billing on shared computing systems.

TTrue
FFalse
Question 5 Short Answer

Why would an operating system use both resource limits and process accounting rather than relying on just one mechanism?

Think about your answer, then reveal below.