parallel (threads)

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • csharpula csharp

    parallel (threads)

    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!




    *** Sent via Developersdex http://www.developersdex.com ***
  • Ignacio Machin \( .NET/ C# MVP \)

    #2
    Re: parallel (threads)

    Hi,

    "csharpula csharp" <csharpula@yaho o.comwrote in message
    news:uBVytWChIH A.1168@TK2MSFTN GP02.phx.gbl...
    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.

    Comment

    • csharpula csharp

      #3
      Re: parallel (threads)

      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!



      *** Sent via Developersdex http://www.developersdex.com ***

      Comment

      • Peter Duniho

        #4
        Re: parallel (threads)

        On Wed, 12 Mar 2008 04:55:37 -0700, csharpula csharp <csharpula@yaho o.com>
        wrote:
        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

        Comment

        • csharpula csharp

          #5
          Re: parallel (threads)


          But I want them to run in parallel so how can I do that?
          Thank u!


          *** Sent via Developersdex http://www.developersdex.com ***

          Comment

          • Jon Skeet [C# MVP]

            #6
            Re: parallel (threads)

            On Mar 13, 8:02 am, csharpula csharp <csharp...@yaho o.comwrote:
            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

            Comment

            Working...