[Mono-list] Thread.Sleep --- bug or feature ?
Robert Jordan
robertj at gmx.net
Mon Nov 19 07:43:56 EST 2007
Hi Yury,
Yury Serdyuk wrote:
> 2) $ uname -a
> Linux skif 2.4.27 #1 SMP Thu Apr 14 15:25:11 MSD 2005 i686 athlon i386
This is not the best system to test threading on. It's most likely
not supporting NPTL, unless it was patched. A 2.6 kernel performs
better, although:
A busy loop is not the best solution for this exercise, as you've
already noticed.
Change the code to wait for an AutoResetEvent that you pulse from
the worker thread.
Robert
More information about the Mono-list
mailing list