On Feb 26, 2008, at 10:17 AM, Florent Daigni?re wrote:

> * Matthew Toseland <toad at amphibian.dyndns.org> [2008-02-26 15:30:40]:
>
>> On Monday 25 February 2008 21:21, Ian Clarke wrote:
>>> Here we go, this is on a MacBook Pro running OSX 10.5.
>>
>> Hmmm, both this and robert's runs show a very slight reduction in  
>> the amount
>> of CPU that a lower priority thread gets, but nowhere near what I'd  
>> expect...
>>
>> Nextgens, can you please post a jar with a more aggressive priority
>> difference?
>
> Here it is
> <Sandbox.jar>

Update:

Run without using yield()
=========================
totalCount=1174099, count/ms=117.398
PC0: priority=1, 13.48%, count=158298
PC1: priority=10, 45.24%, count=531164
PC2: priority=10, 41.28%, count=484637

Run using yield()
=================
totalCount=868101, count/ms=86.81
PC0: priority=1, 31.4%, count=272613
PC1: priority=10, 34.43%, count=298928
PC2: priority=10, 34.16%, count=296560

NB: I had to recompile it, some java version thing...

--
Robert Hailey

-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<https://emu.freenetproject.org/pipermail/devl/attachments/20080226/867e5215/attachment.html>

Reply via email to