Hello! You may remember me as the guy who's trying to learn C# and using
that old version 2003 of visual studio. (Although free version of command
line .NET compiler is available, so if some new feature would greatly
simplify my life, then I am not opposed)
I currently have an application that is single threaded that does batch work
(you pass it a file in the command line, it runs for 2-45 minutes and spits
out another file). I do not own the application and do not know what it is
written in.
This is very annoying since I have a dual core machine and would like to get
my work done as quickly as possible.
Is there a way to invoke a foreign application from C# to run on a specified
core? (If so, can you point me to an example?)
Right now we do our work, click "compile" and then wait. Eventually I would
like to try to implement some form of distributed computing on all our
office computers, so that someone needing to compile 4-5 items can occupy
the same number of idle cores accross the network.
To implement this I want to make a generic C# workhorse program that waits
around for work, occupies all cores until the work is done and returns the
results as soon as possible. I'm hoping that through smart use of
inheritance, I can make the differences between the distributed client and
the local client as little as possible.
Note: I have deliberately excluded details on what the compilation is for,
just in case my employer would have a problem with it (even though I doubt
they would).
--
LTP
:)