Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Modula 3 > Threads example
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 3 Topic 89 of 148
Post > Topic >>

Threads example

by Henning Thielemann <iakd0@[EMAIL PROTECTED] > Mar 3, 2004 at 06:07 PM

I want to write a little example demonstrating the advantages of threads. 
My idea is a computation (prime factorization) that can be performed with
different methods, all of them leading to the same result but at different
speed. The time needed depends on the input but you can't easily estimate
it.
 I want to start a thread for every method and if the first computation
finishes the main thread should receive the result and should abort all
other threads. Unfortunately Thread.Join and Thread.AlertJoin can wait for
only one thread at once. Sounds like the example becomes more complicated
than it should. :-)




 3 Posts in Topic:
Threads example
Henning Thielemann <ia  2004-03-03 18:07:59 
Re: Threads example
Tim Mann <usenet@[EMAI  2004-03-05 07:08:36 
Re: Threads example
"scaalp" <da  2004-03-26 07:18:51 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed May 14 0:40:01 CDT 2008.