My guess is that his machine is not one CPU but 4-core, so this single-thread program is using [a bit less than] a quarter of the CPU. Mike
_____ From: René Jansen [mailto:rvjan...@xs4all.nl] Sent: 09 August 2020 13:24 To: Open Object Rexx Developer Mailing List Cc: James R. Manchester Subject: [Oorexx-devel] ooRexx Performance on behalf of James R. Manchester, 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 <http://tracking.getmailbird.com:8000/opentrackingpixel/?messageId=Mailbird- 549f2b3d-46e0-420a-b37c-44f06755b...@gmail.com&senderHash=27BE761F3C20900752 1223178A974059B5C351C8E9F41BB7BCD8A12BF9BA94B6&recipientHash=6DA67F7C776CC55 9890D7FC0BE3DDDFF2B58CA0632FC7691F8EE8DF2B5B352F7&internalId=641fd4b7-3a84-4 ce7-a320-91715fed7ab7>
_______________________________________________ Oorexx-devel mailing list Oorexx-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/oorexx-devel