Processes Allocation in .Net
- by mayap
I'm writing some program which should perform calculations concurrently according to inputs which reach the system all the time. I'm considering 2 approaches to allocate "calculation" processes:
Allocating processes in the system initialization, insert the ids to Processes table, and each time I want to perform calculation, I will check in the table which process is free.
The questions: can I be sure that those processes are only for my use and that the operating system doesn't use them?
Not allocating processes in advance. Each time when calculation should be done ask the operating system for free process.
I need to know the following inputs from a "calculation" process:
When calculation is finished and also if it succeeded or failed
If a processes has failed I need to assign the calculation to another process
Thanks in advance. Any help would be appreciated.