Updated uc_slow application for lab test.

svn path=/trunk/boinc/; revision=173
This commit is contained in:
Eric Heien 2002-07-10 22:32:36 +00:00
parent 7412bb8158
commit 064cbf57bc
1 changed files with 8 additions and 2 deletions

View File

@ -54,7 +54,7 @@ int do_checkpoint(MFILE& mf, int nchars) {
} }
int main() { int main() {
int c, nchars = 0, retval; int c, nchars = 0, retval, n;
char resolved_name[512]; char resolved_name[512];
MFILE out; MFILE out;
FILE* state, *in; FILE* state, *in;
@ -88,7 +88,13 @@ int main() {
c = toupper(c); c = toupper(c);
out._putchar(c); out._putchar(c);
nchars++; nchars++;
sleep(1);
n = 0;
while( n<100000 )
n++;
if( nchars % 2 == 0 )
sleep(1);
if (time_to_checkpoint()) { if (time_to_checkpoint()) {
retval = do_checkpoint(out, nchars); retval = do_checkpoint(out, nchars);