File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
EJB 3 in Action
this week in the
EJB and other Java EE Technologies
Java in General
Joined: Jun 11, 2007
Apr 28, 2011 02:53:11
How to get reduce of the find bug error saying. Manual thread scheduling with Thread.sleep() or Thread.yield() has no guaranteed semantics and is often used to mask race conditions.
I just use it for sleep the current thread for a while and its not used with in a condition statement. But its used inside a
case which has a assert statement at the end.
Stephan van Hulst
Joined: Sep 20, 2010
Apr 28, 2011 06:40:41
The warning is there to draw your attention to it. If you don't want it, switch it off in your IDE.
I agree. Here's the link:
subject: Thread.sleep() findbug
question about thread output from examlab practice test 1
whethe the thread will release the lock?
Threads: sleep() !
Thread.interrupt not working properly
Doubt in K&B: Threads
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014