process - C#: Farm out jobs to worker processes on a multi-processor machine -


I have a generic check that needs to be run on the CA. 1000 commodities check takes about 3 seconds. We have 4 processor servers (and we have other multi-processor servers in our network), we want to make an XE / DLL to check and return the results to "master".

Does anyone know about a framework for this, or how about it to go to C #?

Specifically:

  • What is the best way to transfer data between the Master and the worker process?
  • The Master will ensure that there are 4 processes going on at the same time and as soon as a worker process is completed, a new beginning is done.
  • How to register that the worker has ended and adds the results to a list?

Hope it is clear, but happy to clarify.
A.

Some explanations
* Really do not have any interprocess communication outside the call and return of process.

 ResultObject = WorkerProcess (HeresYourDataSonDoSomethingWithIt); 
* Initially, a machine is a must, but further down the line we will probably in some cases where we have 6000 objects to be checked and we want to cultivate it in many servers, so we have got the right design Do not want to like, or develop a solution of at least one server, completely rewrite for multiple thanks!

Take a look at Biltin Threadpool . You can queue the "work item" for the thread pool. Manage .NET threads, start new threads as necessary and ensure that the "inactive" thread gets new work. Additionally, the work in the CPU should be equally distributed by the thread pool by CPU.


Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -