Discussion:
sched1 / sched2
(too old to reply)
Tom Brubaker
2005-03-06 23:38:03 UTC
Permalink
Is there a reason sched1 and sched2 are implemented with two loops, like so


for (i=0; i < 20; i++) {
for(j=0;j<20000;j++);
Print("2");
}



instead of just with one larger loop?
Timothy Finley
2005-03-07 03:48:27 UTC
Permalink
I don't think they wanted to print "2" to the console 40000 times :).

Tim
Tom Brubaker
2005-03-07 03:53:07 UTC
Permalink
Post by Timothy Finley
I don't think they wanted to print "2" to the console 40000 times :).
Excellent point.
c***@CSIC.UMD.EDU
2005-03-07 05:13:43 UTC
Permalink
it doesn't write 40000 times because there is a ";" which makes it
a time consuming loop.

Continue reading on narkive:
Loading...