Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 Jun 2005 17:17:55 +0800
From:      David Xu <davidxu@freebsd.org>
To:        mi@aldan.algebra.com, grhoten@jtcsv.com
Cc:        freebsd-threads@freebsd.org
Subject:   Re: IntlTest hangs on FreeBSD (TestThreadedIntl) (PR#1141)
Message-ID:  <42AFF243.9080908@freebsd.org>

next in thread | raw e-mail | index | archive | help

Have you tried it with libthr on -CURRENT ?

David Xu

-----Original Message-----
From: owner-freebsd-threads@freebsd.org
[mailto:owner-freebsd-threads@freebsd.org]On Behalf Of Mikhail T.
Sent: 2005年6月14日 10:42
To: George Rhoten; freebsd-threads@FreeBSD.org
Subject: Re: IntlTest hangs on FreeBSD (TestThreadedIntl) (PR#1141)


= This is reproducable on the sourceforge.net NetBSD machine by 
executing the
following:
=
= My initial guess is that it seems to be an OS thread scheduler bug.
= The main process spins in a loop without sleeping and frequently locks
= the global mutex while waiting for the other threads to finish. None
= of the other threads get enough time because they are all waiting for
= the global mutex lock from the main process thread when its their
= turn. The main process thread is hoging the global mutex while it's in
= its loop. It's not a deadlock, it's just a type of thread scheduling
= that doesn't happen on other operating systems.

Whether it is a bug or a legal oddity, our threads (CC-ed) people would
love to hear about it...

= Adding a sleep() or a yield statement in the main thread of the test
= allows the test to finish. The fix will be available in ICU 3.4.

-mi

_______________________________________________
freebsd-threads@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-threads
To unsubscribe, send any mail to "freebsd-threads-unsubscribe@freebsd.org"




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?42AFF243.9080908>