On Thu, 8 Feb 2001, Joseph Shraibman wrote:

> Is it just me or does Thread.yield() not work anymore with the 2.4.0
> kernel?

Interesting: blackdown jdk seems to indeed behave incorrectly.
Sample execution of the test program I posted previously (I am on an smp 
box with two processors, so the case of interest is the first thread):

Blackdown jdk (Blackdown-1.3.0-FCS, kernel 2.4.1):

t1: 1 t2: 3 t3: 3
t1: 2 t2: 6 t3: 6
t1: 3 t2: 8 t3: 8
t1: 4 t2: 11 t3: 11
t1: 5 t2: 13 t3: 14
t1: 6 t2: 16 t3: 16
t1: 7 t2: 19 t3: 19
t1: 8 t2: 21 t3: 22
t1: 8 t2: 24 t3: 24
t1: 9 t2: 26 t3: 27
t1: 10 t2: 29 t3: 30
t1: 11 t2: 31 t3: 32
t1: 12 t2: 34 t3: 35
t1: 13 t2: 36 t3: 38
t1: 14 t2: 39 t3: 40
t1: 14 t2: 41 t3: 43
t1: 15 t2: 44 t3: 46
t1: 16 t2: 46 t3: 48
t1: 17 t2: 49 t3: 51


IBM jdk (J2RE 1.3.0 IBM build cx130-20000815, kernel 2.4.1) behaves 
correctly though:

t1: 3 t2: 3 t3: 3
t1: 6 t2: 6 t3: 6
t1: 8 t2: 8 t3: 8
t1: 11 t2: 11 t3: 11
t1: 13 t2: 13 t3: 14
t1: 16 t2: 16 t3: 16
t1: 18 t2: 19 t3: 19
t1: 21 t2: 21 t3: 22
t1: 23 t2: 24 t3: 24
t1: 26 t2: 26 t3: 27
t1: 28 t2: 29 t3: 30
t1: 31 t2: 32 t3: 32
t1: 33 t2: 34 t3: 35


-- dimitris
   mailto:[EMAIL PROTECTED]


----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to