Ways to get and set Linux API limits getrlimit (2) and setrlimit (2)
Constraints are managed in the process space. The child process inherits the limits of its parent. Limits are part of the POSIX standard, so all POSIX compatible operating systems support them (Linux, BSD, OSX).
Groups are Linux specific and are not even required in a Linux installation. I'm not sure that you can manage limits using groups, but it will definitely be non-standard.
source share