Invoking External Batch Program on Multiple Core Machine



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

:)


.



Relevant Pages

  • TIP #257: Object Orientation for Tcl
    ... designed specifically to allow classic XOTcl to be built on top. ... the time has come for the core to provide OO support. ... definition is to be moved to a separate utility command, ... every class and every object has an associated namespace. ...
    (comp.lang.tcl)
  • [Fwd: TIP #257: Object Orientation for Tcl]
    ... designed specifically to allow classic XOTcl to be built on top. ... the time has come for the core to provide OO support. ... definition is to be moved to a separate utility command, ... every class and every object has an associated namespace. ...
    (comp.lang.tcl)
  • Re: Problem in calling c programs and compiling them in tcl/tk
    ... Are you using Tcl's glob command to do this? ... using exec gcc filename.c and later exec ./a.out filename.c. ... the execution of a command that might generate a Tcl error. ... i can call a c program and compile it? ...
    (comp.lang.tcl)
  • RE: Console Application Testing
    ... vbc.exe could be accessed in Visual Studio Command ... If you want to compile the project in command prompt with vbc.exe, ... Microsoft Online Community Support ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Macro prompt
    ... I'm sorry, Pcman, I don't think I can help here. ... If you want to test the action of clicking a command button on a form, I suggest you test it by clicking the command button on the form, not by trying to run the Click event code from within the VBE window. ... Steve Schapel, Microsoft Access MVP ... options pop-up menu the the "Compile" section has already checked off Compile ...
    (microsoft.public.access.macros)

Quantcast