Processor.Affinity
Get and Set current process/domain affinity.
Setting processor affinity (aka pinning) allows you to change the set of logical cpus your process/domain can run on. Changing the affinity is not supported on Apple/Darwin.
See https://github.com/haesbaert/ocaml-processor for a tutorial.