Page 1 of 3 123 LastLast
Results 1 to 10 of 27
  1. #1
    Join Date
    Nov 2006
    Location
    UK
    Posts
    3,774

    Weeks challenge due midnight GMT 18th Nov 2007

    This weeks challenge is about threads!

    The idea is to get your app to find out the optimum number of threads it can do for a given set of logic.

    You should make a descendant of TThread which when executes runs your primes code to find primes < 10M and be able to return them to the main app (but we arent going to make use of it)

    Your core app should then time the threads running

    You should then run more and more threads to find out how many threads you can run symultaneously without performance degredation...

    Your app then should report via a simple graph Im really not looking for artistic merit (but please feel free to do so) how the number of threads times worked out and where the performance begain to drop.

    Your threads MUST be able to stop should the process want to be terminated..

    kudos point will go if you successfully add the following:
    Increase the upper limit to say 4000M of the primes, which takes YONKS to run as a single process, but use the max number of threads your app can run to split the work over paralell running threads.... (as a final your app is now configured to go type thing) and show the comparison of times between a single thread and the parallel run of achieving the same answer, and show how much time it saved.


    Rules:

    usual rules, should compile in turbo, do not post code or links to code, or links on a similar subject, do not specific questions here, PM me with any questions, do post to say you're joining in.
    Last edited by LizKimber; 11-11-2007 at 02:59 AM.
    Delphi !ROCKS!
    Got a question? Read this first!!!
    "You gotta help us, Doc. We've tried nothin' and we're all out of ideas"

  2. #2
    Join Date
    Jan 2007
    Posts
    640
    I'm in!
    VK

  3. #3
    Join Date
    Nov 2006
    Location
    UK
    Posts
    3,774
    Cool! Its kinda mixing what we've done in the past but with a hint at why you might use some things.
    Delphi !ROCKS!
    Got a question? Read this first!!!
    "You gotta help us, Doc. We've tried nothin' and we're all out of ideas"

  4. #4
    Join Date
    Nov 2006
    Location
    UK
    Posts
    3,774
    Dont forget this ends tomorrow..
    Delphi !ROCKS!
    Got a question? Read this first!!!
    "You gotta help us, Doc. We've tried nothin' and we're all out of ideas"

  5. #5
    Join Date
    Jan 2007
    Posts
    640
    I haven't... I hope there are others doing this one 'cause this one has me a little stumpped (I haven't given up though).

  6. #6
    Join Date
    Nov 2006
    Location
    UK
    Posts
    3,774
    Well, you can still ask questions :P you have what, 11.5 hours :P
    Delphi !ROCKS!
    Got a question? Read this first!!!
    "You gotta help us, Doc. We've tried nothin' and we're all out of ideas"

  7. #7
    Join Date
    Nov 2006
    Location
    UK
    Posts
    3,774
    Once again vk was the only one who bothered. Was a good effort, shame it won by default.

    As a result there will be no more weekly challenges.
    Delphi !ROCKS!
    Got a question? Read this first!!!
    "You gotta help us, Doc. We've tried nothin' and we're all out of ideas"

  8. #8
    Join Date
    Oct 2006
    Posts
    356
    One entry

  9. #9
    Join Date
    Nov 2006
    Location
    UK
    Posts
    3,774
    Yep. I feel sorry for VK who put a lot of effort in and did a good job.. And winning by default is kinda a bubble popper in my eyes..
    Delphi !ROCKS!
    Got a question? Read this first!!!
    "You gotta help us, Doc. We've tried nothin' and we're all out of ideas"

  10. #10
    Join Date
    Jan 2007
    Posts
    640
    I have to agree. I once won a swimming race but it was pretty hard to lose as ai was the only one swimming in that catagory.

Page 1 of 3 123 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •