I use this cgroups package.
There are two interfaces I am interested in for type Cgroup. The one is Freeze() error and the other is Thaw() error.The description of them is as follows:
...
// Freeze freezes or pauses all processes inside the cgroup
Freeze() error
// Thaw thaw or resumes all processes inside the cgroup
Thaw() error
...
And there are two linux command that can pause and resume a process, which is kill -STOP pid and kill -CONT pid.
I wonder that if there is only one process in a cgroup, does it has any difference between these two ways to pause and resume the process? Thanks.