Commit Graph

6 Commits

Author SHA1 Message Date
David Anderson cfc5b5a230 - multi_thread: suspend/resume didn't work in the Unix implementation.
REMINDER TO SELF: you can't suspend or resume pthreads - period.
    So I changed things so that in the Unix implementation,
    we fork a second process, in which the threads run.
    The first process handles suspend/resume messages
    by signaling the 2nd process.
    The 2nd process generates system messages (frac done, CPU time)

svn path=/trunk/boinc_samples/; revision=14977
2008-03-28 17:39:00 +00:00
David Anderson 6d90f48829 - multi_thread: maintain fraction done;
get nthreads from command line, not init file

svn path=/trunk/boinc_samples/; revision=14965
2008-03-27 18:00:40 +00:00
David Anderson 38d9099b47 - multi-thread: the Windows version was running unexpectedly fast.
It turned out that the VS2005 C++ compiler was noticing
		that giga_flop() didn't use any inputs or globals,
		so it was caching its value after the first run.
		Very impressive!

svn path=/trunk/boinc_samples/; revision=14952
2008-03-20 22:52:16 +00:00
David Anderson 31b604a77b - multi_thread: default to 1 thread; print to stderr at end
svn path=/trunk/boinc_samples/; revision=14939
2008-03-18 21:15:21 +00:00
David Anderson 27caca9ef2 svn path=/trunk/boinc_samples/; revision=14915 2008-03-14 19:55:55 +00:00
David Anderson 68531f2076 - added example multi-thread application
svn path=/trunk/boinc_samples/; revision=14912
2008-03-14 17:35:22 +00:00