/[classpath]/classpath/vm/reference/java/lang/Thread.java
ViewVC logotype

Diff of /classpath/vm/reference/java/lang/Thread.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.21 by ericb, Mon Mar 25 07:54:39 2002 UTC revision 1.22 by mark, Tue Sep 10 21:32:02 2002 UTC
# Line 286  public class Thread implements Runnable Line 286  public class Thread implements Runnable
286     * Yield to another thread. The Thread will not lose any locks it holds     * Yield to another thread. The Thread will not lose any locks it holds
287     * during this time. There are no guarantees which thread will be     * during this time. There are no guarantees which thread will be
288     * next to run, and it could even be this one, but most VMs will choose     * next to run, and it could even be this one, but most VMs will choose
289     * the highest priority threat that has been waiting longest.     * the highest priority thread that has been waiting longest.
290     */     */
291    public static native void yield();    public static native void yield();
292    
# Line 294  public class Thread implements Runnable Line 294  public class Thread implements Runnable
294     * Suspend the current Thread's execution for the specified amount of     * Suspend the current Thread's execution for the specified amount of
295     * time. The Thread will not lose any locks it has during this time. There     * time. The Thread will not lose any locks it has during this time. There
296     * are no guarantees which thread will be next to run, but most VMs will     * are no guarantees which thread will be next to run, but most VMs will
297     * choose the highest priority threat that has been waiting longest.     * choose the highest priority thread that has been waiting longest.
298     *     *
299     * @param ms the number of milliseconds to sleep, or 0 for forever     * @param ms the number of milliseconds to sleep, or 0 for forever
300     * @throws InterruptedException if the Thread is interrupted; it's     * @throws InterruptedException if the Thread is interrupted; it's
# Line 311  public class Thread implements Runnable Line 311  public class Thread implements Runnable
311     * Suspend the current Thread's execution for the specified amount of     * Suspend the current Thread's execution for the specified amount of
312     * time. The Thread will not lose any locks it has during this time. There     * time. The Thread will not lose any locks it has during this time. There
313     * are no guarantees which thread will be next to run, but most VMs will     * are no guarantees which thread will be next to run, but most VMs will
314     * choose the highest priority threat that has been waiting longest.     * choose the highest priority thread that has been waiting longest.
315     *     *
316     * <p>Note that 1,000,000 nanoseconds == 1 millisecond, but most VMs do     * <p>Note that 1,000,000 nanoseconds == 1 millisecond, but most VMs do
317     * not offer that fine a grain of timing resolution. Besides, there is     * not offer that fine a grain of timing resolution. Besides, there is

Legend:
Removed from v.1.21  
changed lines
  Added in v.1.22

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26