[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nptl] Re: Patch for SCHED_RR test with LinuxThreads
> Here the corresponding patch. Should now work both on POSIX
> conform system as well as on LinuxThreads.
Ok a second patch for "the sake of correctness". The first was
(or rather should be) OK already for that particular program.
That one add strictly speaking nothing, but... ah well...
To be applied against the original test_schedrr.c posted in
the forum.
I tried on a SuSE v9.0 box:
SuSE Linux 9.0 (i586)
Kernel 2.4.21-243-smp4G / i686
2 x Pentium III (Coppermine)
test passed up to 30 threads...
Then I tried 128 threads at prio 1.
It hung (and we had to hard reboot the computer).
Apparently, threads didn't even got created...
And it looks like - modulo BUG from me with the timeout -
that it hung in pthread_create() ?
But that's might be another issue (a LinuxThreads one) that
doesn't have anything to do with our current issues.
Need more data on SuSE...
Especially with Kernel v2.6.x (notable change -/- v2.4.x
that impacts threads: the Futex stuff).
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);}}
Supergünstige DSL-Tarife + WLAN-Router für 0,- EUR*
Jetzt zu GMX wechseln und sparen http://www.gmx.net/de/go/dsl
test_schedrr.patch-2