parallel (threads)

  • Thread starter Thread starter csharpula csharp
  • Start date Start date
C

csharpula csharp

Hello,
I build a console application which will run few actions in parallel. I
wanted to know what is the best way to implement it : by regular
threads,some thread interfaces or background workers? And where can I
find good example for that?
Thank you!
 
csharpula csharp said:
I build a console application which will run few actions in parallel. I
wanted to know what is the best way to implement it : by regular
threads,some thread interfaces or background workers? And where can I
find good example for that?

Well, how much do you already know about threading? I've got a tutorial
of sorts at

http://pobox.com/~skeet/csharp/threads
 
Hi,

csharpula csharp said:
Hello,
I build a console application which will run few actions in parallel.

This is the part I do not nderstand, are those external apps? if so all you
have to do is start them.
 
I will work with external applications running via web service but I
need to manage their running by getting the result status and start
them.So what is the best way? SHould I use background worker from main
thread or some other way?
Thanks!
 
I will work with external applications running via web service but I
need to manage their running by getting the result status and start
them.So what is the best way? SHould I use background worker from main
thread or some other way?

If your own code isn't going to do any of the actual work, you will
probably be best off just starting the processes normally in a single
thread and handling the Process.Exited event to deal with processing any
results.

Pete
 
But I want them to run in parallel so how can I do that?

When you call Process.Start, that starts a whole extra *process* - so
if you start multiple processes, they'll naturally run in parallel.

Jon
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top