CPUSetter is a utility for macOS that enables you to:
Many of the tasks performed by CPUSetter require privileged (root) access to your system. You are prompted to authorise the installation of a privileged helper tool the first time you run CPUSetter.
CPU Configuration
Configure and control the physical and logical CPUs of your Macintosh.
Process Limiting
Limit the cpu usage of individual processes.
Preferences
Documentation of CPUSetter Preferences
How Limiting is implemented
A brief description of how CPU Setter implements process limiting.