zltl / cpu_limit_run

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cpu_limit_run - run program with cpu limit

cpu_limit_run is a program that can runs a program with a cpu limit, without cgroup or root privileges.

# build
make
# run program a.out with cpu limit of 20%
./target/cpu_limit_run --percent 20 -- a.out arg1 arg2

About

License:MIT License


Languages

Language:C 96.0%Language:Makefile 4.0%