4 ms·
Most OSes have a way to specify priority for a given thread.
by int_19h 8y ago
Most OSes have a way to specify priority for a given thread.
- kllrnohj 8y agoPriority yes, but that's barely useful. cgroups, rlimits, cpulimit, etc... are far more useful here, and are all per-process.
- kentonv 8y agoYou can use timer_create to arrange to deliver a signal after some amount of CPU time elapsed, then terminate the sandbox from the signal handler.