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 |
|
|
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 |
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 |