on behalf of James R. Manchester, xjmanc...@gmail.com 
<mailto:xjmanc...@gmail.com> :

Is there something in ooRexx that limits its use of the CPU within Windows?  I 
have an application that should use 100% of the CPU but only manages about 20%. 
 The following program runs for 60 seconds and it should use the CPU 
continuously.  However, according to Task Manager, it doesn't quite use 22%.  
What's limiting the use of the CPU?  Is there some setting which can be used to 
change this behavior?

Regards,
Jim Manchester

/* */

Duration = 60                --Number of seconds to execute.

Start = Time('S')            -- Get the start time.

i = 0
do forever
        a = 1234 * 24536
        b = a / 25
        c = a * b
        Elapsed = Time('S') - Start
        i += 1
        if Elapsed > Duration then
                leave
        end

say 'There were' i 'iterations in ' Elapsed 'seconds.'

exit

_______________________________________________
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel

Reply via email to