That sounds about right 90% of one cpu is 22.5%

In my experiments on a 4 core raspberry pi, I could drive 3 cores to 95%+ and 
the last core to about 75%.  Jim could try running 4 concurrent copies of his 
program to verify this.  Another issue, is that if you drive the cpu so hard 
that it starts to over heat, throttling may occur to reduce the thermal load.

Bruce

> On Aug 9, 2020, at 9:05 AM, Mike Cowlishaw <m...@speleotrove.com> wrote:
> 
> 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 
>> <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

Attachment: signature.asc
Description: Message signed with OpenPGP

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

Reply via email to