473,378 Members | 1,639 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

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 ***
Mar 12 '08 #1
5 1660
Hi,

"csharpula csharp" <cs*******@yahoo.comwrote in message
news:uB**************@TK2MSFTNGP02.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.

Mar 12 '08 #2
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 ***
Mar 12 '08 #3
On Wed, 12 Mar 2008 04:55:37 -0700, csharpula csharp <cs*******@yahoo.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
Mar 12 '08 #4

But I want them to run in parallel so how can I do that?
Thank u!
*** Sent via Developersdex http://www.developersdex.com ***
Mar 13 '08 #5
On Mar 13, 8:02 am, csharpula csharp <csharp...@yahoo.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
Mar 13 '08 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Markus Franz | last post by:
Hi. I have a difficult problem: An array contains several different URLs. I want to load these websites in parallel by using a HTTP-Request. How can I do this in PHP? Up to now I did this...
5
by: chellappa | last post by:
Hi All, I need information running two function in parallel manner with out using fork .. because i am trying to use fork ..but fork create two process ..i will done through any other methods,one...
5
by: MIchael Ullrich | last post by:
Hi, actually I have a childform, which runs a self-written script interpreter (runs aprox. 1 min). I want to create more child-forms and I want to have the interpreters run parallel. Right now...
126
by: ramyach | last post by:
Hi friends, I need to write a parallel code in 'C' on the server that is running SGI Irix 6.5. This server supports MIPS Pro C compiler. I don't have any idea of parallel C languages. I looked...
14
by: Dave Booker | last post by:
I'm doing some analysis that is readily broken up into many independent pieces, on a multicore machine. I thought it would be best to just queue like 1000 of these pieces in the ThreadPool, and...
10
by: Mythmon | last post by:
I am trying to make a program that will basically simulate a chess clock in python. To do this I have two threads running, one that updates the currently running clock, and one that watches for a...
4
by: sesling | last post by:
I currently use an SQL command line that utilizes parallel threads. ex. select /*+ PARALLEL (ACCOUNT 20) */ Account_ID, Customer_Name, Add_Date from Customer_Info. By running this query using...
43
by: parallelpython | last post by:
Has anybody tried to run parallel python applications? It appears that if your application is computation-bound using 'thread' or 'threading' modules will not get you any speedup. That is because...
3
by: John | last post by:
I have a program that needs to run on a regular basis that looks at a queue table in my database. If there are items in the queue database I need to grab the data from the database and pass it to...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.