Sometimes you might want to programmatically switch processor priority for applications vs services. You can do it via the Control Panel applet (System->Advanced->Performance Tab->Settings->Advanced Tab->Processor Scheduling). Or, do it in the registry by modifying this key:
HKLMSystemCurrentControlSetControlPriorityControlWin32PrioritySeparation
It’s a DWORD key. Set it to 38 for applications, or 24 for services. On a new system it may be set to 2, which will act the same way as 38.