Which file in acgroupdirectory contains the list of processes belonging to thiscgroup?
A.
pids
B.
members
C.
procs
D.
casks
E.
subjects
The Answer Is:
C
This question includes an explanation.
Explanation:
The file procs in a cgroup directory contains the list of processes belonging to this cgroup. Each line in the file shows the PID of a process that is a member of the cgroup. A process can be moved to a cgroup by writing its PID into the cgroup’s procs file. For example, to move the process with PID 24982 to the cgroup cg1, the following command can be used: echo 24982 > /sys/fs/cgroup/cg1/procs1. The file procs is different from the file tasks, which lists the threads belonging to the cgroup. The file procs can be used to move all threads in a thread group at once, while the file tasks can be used to move individual threads2. References:
Creating and organizing cgroups · cgroup2 - GitHub Pages
Control Groups — The Linux Kernel documentation
305-300 PDF/Engine
Printable Format
Value of Money
100% Pass Assurance
Verified Answers
Researched by Industry Experts
Based on Real Exams Scenarios
100% Real Questions
Get 65% Discount on All Products,
Use Coupon: "ac4s65"