Answer Posted / ranganathkini
When a thread yields, its execution is paused and loses
ownership of the monitor lock giving other waiting threads a
chance to run.
When a thread sleeps, its execution is paused for the
specified duration during such an idle period, the thread
continues to retain the ownership of the monitor lock.
| Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
Explain enumeration in java?
What is the range of the short type?
What is the size of boolean variable?
How thread scheduler schedule the task?
Does a function need a return?
Is constructor inherited?
make a method which any number and any type of argument and print sum of that arguments.....
What is the main advantage of passing argument by reference?
Differentiate between nested and inner class in java.
How do you declare an empty string?
Explain about transient variables in java?
What are features of java?
What is a modifier?
How do you use wildcards?
there are N number of matchboxes numbered 1...N.each matchbox contain various number of stick.Two player can alternatevely pick some amount of stick from the higest stick containing box . The player is condidered win if there is no stick after his move.Find the final move so that the move player win. Note:In case the number of stick is equal ,pick the stick from the higest numbered box.