Multiprocess affinity

Is it possible to force all processes of the Windows OS to use only 2 or 4 cores, and our program to use other core totally dedicated to it