Processes Allocation in .Net
Posted
by mayap
on Stack Overflow
See other posts from Stack Overflow
or by mayap
Published on 2010-03-09T10:13:45Z
Indexed on
2010/03/09
10:21 UTC
Read the original article
Hit count: 213
multithreading
|.NET
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.
© Stack Overflow or respective owner