Could it be a problem with Kaffe?

Kaffe is Java AFAIK(?), and Java threads are done using the
syncronized method, and this is a spin until we get the lock. It
may be a case where you are not getting a lock for some reason,
and you are just spinning and waiting until you do. Thus you
have a cpu spinning and maybe hanging the machine. That is the
nature of Java (lovely ain't it). 

The only way in Java to prevent this spin condition is to have
the method that is syncronized 'aware' of interrupts, and then
have another thread send the syncornized method an interrupt at
a give time interval, basically a timer thread. It is more like
witchcraft or FM (IMHO). Why sun never let you specify how long
to spin until a lock is aquired is beyond me.
__________________________________________________
Do You Yahoo!?
Bid and sell for free at http://auctions.yahoo.com
-
Linux SMP list: FIRST see FAQ at http://www.irisa.fr/prive/mentre/smp-faq/
To Unsubscribe: send "unsubscribe linux-smp" to [EMAIL PROTECTED]

Reply via email to