Is it possible for yielded thread to get chance for its execution again ?
Answer / Sumit Goyal
Yes, a yielded thread can receive another opportunity for its execution again in Java. The Thread.yield() method suggests that the current thread should temporarily pause and let other threads with similar or lower priority run.
| Is This Answer Correct ? | 0 Yes | 0 No |
What do you mean by an object in java?
What is the use of toarray () in java?
In what types of operations an ArithmeticException will be thrown?
What is void class in java?
They had given one progam final HashMap hm=new HashMap(); public void show() { hm.put("name",value); } in this prg here the final hashtable value can be changed in put method,its the prg run?
How do you sort in ascending order in java?
Why sleep()is in Thread and wait() in Object class? Why can't I have both in one class or vice versa?
State some advantages of java?
What is difference between protected and private?
What is audio clip interface? Name few methods of it ?
difference between byte stream class and character stream class?
Write a java program to check if a number is prime or not?