MMM
Results 1 to 25 of 815

Thread: New Multi-Threaded Pi Program - Faster than SuperPi and PiFast

Threaded View

  1. #11
    Xtreme Addict
    Join Date
    Apr 2007
    Posts
    2,128
    I'm afraid that to to dynamic printing, you need to use (* = n for linux, pd for windows) *curses library(It comes with the linux distribution, <ncurses.h>). It's pretty straightforward to write wrapper functions for it to manage stuff like dynamic printf().

    as far as I've understood, clock() measures the execution time of a process. When it is run on multiple threads, it adds up the total execution time of those threads. I am not sure about this though. Try dividing the time with some constant related to the number of threads.

    Quote Originally Posted by [XC] gomeler View Post
    Glad to hear you are making some progress on this. Sadly I'm not a C/C++ dev, I just dabble in scripting for work.
    Nothing stops you from becoming one though. Just grab a book and have a try.
    Last edited by Calmatory; 08-12-2010 at 04:32 AM.

Tags for this Thread

Bookmarks

Bookmarks

Posting Permissions

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