[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nptl] Patch for SCHED_RR test with LinuxThreads
Hi,
> Hmm... with LinuxThreads things are a bit different because
> of the so-called manager thread. And the signalling stuff.
> And the getpid() stuff... And surely many other stuffs, too.
> Definitively need to look more closely at it!
Ok got it. That was the broken getpid() stuff and the broken
signal stuff.
Here the corresponding patch. Should now work both on POSIX
conform system as well as on LinuxThreads.
I have experimented with LinuxThreads.
Same results.
Cheers,
Loic.
--
--
// Sender address goes to /dev/null (!!)
// Use my 32/64 bits, ANSI C89, compliant email-address instead:
unsigned y[]=
{0,34432,26811,16721,41866,63119,61007,48155,26147,10986};
void x(z){putchar(z);}; unsigned t;
main(i){if(i<10){t=(y[i]*47560)%65521;x(t>>8);x(t&255);main(++i);}}
NEU: GMX ProMail mit bestem Virenschutz http://www.gmx.net/de/go/mail
+++ Empfehlung der Redaktion +++ Internet Professionell 10/04 +++
test_schedrr.patch-1