|
|
single threaded vs. multi threaded
1. Which programs lend themselves to be single threaded?
2. Which programs lend themselves to be multi threaded?
3. How to convert a multi threaded program to single threaded program?
|
|
0
|
|
|
|
Reply
|
omar_hashmi786 (2)
|
6/7/2006 1:03:47 AM |
|
omar_hashmi786@yahoo.com wrote:
> 1. Which programs lend themselves to be single threaded?
> 2. Which programs lend themselves to be multi threaded?
> 3. How to convert a multi threaded program to single threaded program?
Sorry there are no general purpose answers to your questions.
Get a book about mulitthreading and read the introduction. Normally
this should help you to understand something about multithreading.
|
|
0
|
|
|
|
Reply
|
llothar
|
6/7/2006 10:07:37 AM
|
|
On 6 Jun 2006 18:03:47 -0700, omar_hashmi786@yahoo.com
<omar_hashmi786@yahoo.com> wrote:
> 1. Which programs lend themselves to be single threaded?
> 2. Which programs lend themselves to be multi threaded?
> 3. How to convert a multi threaded program to single threaded program?
Try www.amazon.com. There are at least 5 books that I know of on the
subject. They'll probably give you a far more thorough treatment than
you can expect on usenet, if you are looking for a serious and complete
solution.
A bientot
Paul
--
Paul Floyd http://paulf.free.fr (for what it's worth)
Surgery: ennobled Gerald.
|
|
0
|
|
|
|
Reply
|
Paul
|
6/7/2006 8:04:12 PM
|
|
omar_hashmi786@yahoo.com wrote:
> 1. Which programs lend themselves to be single threaded?
> 2. Which programs lend themselves to be multi threaded?
> 3. How to convert a multi threaded program to single threaded program?
>
You post raises some questions.
1) Are you talking about multi vs single user programs?
2) Are you wondering about making programs memory resident for
multiple users?
3) Are you wishing to utilize parallel processing to speed clock time
for a large application?
4) For the last problem, Why do you wish to make the conversion?
Gary and Terrie Meerschaert
|
|
0
|
|
|
|
Reply
|
Gary
|
6/8/2006 12:20:32 AM
|
|
omar_hashmi786@yahoo.com wrote:
> 1. Which programs lend themselves to be single threaded?
> 2. Which programs lend themselves to be multi threaded?
> 3. How to convert a multi threaded program to single threaded program?
>
You forgot to post the email address of your teacher!
If you do that, then we can submit answers directly, saving internet
bandwidth and saving you the hassle of forwarding them on.
--
Dave K MCSE.
MCSE = Minefield Consultant and Solitaire Expert.
Please note my email address changes periodically to avoid spam.
It is always of the form: month-year@domain. Hitting reply will work
for a couple of months only. Later set it manually.
http://witm.sourceforge.net/ (Web based Mathematica frontend)
|
|
0
|
|
|
|
Reply
|
Dave
|
6/8/2006 12:47:58 AM
|
|
omar_hashmi786@yahoo.com sez:
> 1. Which programs lend themselves to be single threaded?
> 2. Which programs lend themselves to be multi threaded?
> 3. How to convert a multi threaded program to single threaded program?
1. All of them.
2. On modern system (as in "low-cost process creation"), none really.
3. cat mt_program.c | sed 's/multi/single/g' > st_program.c
HTH
Dima
--
Tlaloc: What was Elrond's second name?
Gruber: Hubbard -- <ahbou=3C69EB63.A7C431F4@last.com>
|
|
0
|
|
|
|
Reply
|
Dimitri
|
6/8/2006 2:24:04 AM
|
|
omar_hashmi786@yahoo.com wrote:
> 1. Which programs lend themselves to be single threaded?
> 2. Which programs lend themselves to be multi threaded?
> 3. How to convert a multi threaded program to single threaded program?
Hi Omar
1. If you want sequential execution of logic steps, then single
threaded program will do the job
2. If your logic allows for parallel or simultaneous execution of
programming steps without hindering or corrupting the output, then
multithreaded programs are the call of the day
3. If you can convert your parallel logic to that of a sequential
execution instead of concurrent execution, then the program is
single-threaded.
Of course the above is based on programming logic, but if you talk
about programming then there are calls which will create threads and
you can assign each thread a logic to execute independently of the
other threads, or to have some sort of hand-shake among threads so that
they all proceed is a timely manner and converge on an output.
Hope these answer your above queries.
Regards
Vardhan
|
|
0
|
|
|
|
Reply
|
vardhasu
|
6/8/2006 11:24:36 AM
|
|
|
6 Replies
296 Views
(page loaded in 0.109 seconds)
|
|
|
|
|
|
|
|
|