I can't see that there is a case for this.
Remember that any multiprocessor enabled OS will automatically allocate processor time as it sees fit in an attempt to balance out processor loading.
This means that in reality any process thread that you have running will be constantly interrupted, based on the thread priority, so that the OS can allocate processor time to other processes. Individual computations within the same thread may not even be executed on the same processor.
If you fixed process code to run on just the one specified processor then this would likely hinder its performance as it would not allow the OS to balance processor loading.
I suppose that you could make large parts of it a critical section but this would hinder your application in other areas, especially the processing of any sub threads.