what is the Yield() method used in threads?

Answers were Sorted based on User's Feedback



what is the Yield() method used in threads?..

Answer / pankaj malik

Causes the currently executing thread object to temporarily
pause and allow other threads to execute

Is This Answer Correct ?    3 Yes 0 No

what is the Yield() method used in threads?..

Answer / chikku

This static method is essentially used to notify the system that the current thread is willing to "give up the CPU" for a while. The general idea is that:
The thread scheduler will select a different thread to run instead of the current one.

Is This Answer Correct ?    2 Yes 0 No

what is the Yield() method used in threads?..

Answer / manikandan [ gtec,vellore ]

after invoking yeild() method it enters into a ready state.

Is This Answer Correct ?    1 Yes 0 No

what is the Yield() method used in threads?..

Answer / sasirekha

yield method will allow other thread to execute.

Is This Answer Correct ?    2 Yes 2 No

Post New Answer

More Core Java Interview Questions

what is method reference in java 8?

0 Answers  


What is the file extension for java?

0 Answers  


How to sort list of list in java?

0 Answers  


what is use of marker interface? give me good example?

2 Answers  


What is difference between fileinputstream and filereader in java?

0 Answers  






What is the difference between quicksort & mergesort? When should they be used? What is their running time?

0 Answers   Akamai Technologies,


What is the purpose of the enableevents() method in java programming?

0 Answers  


What is a bubble sort in java?

0 Answers  


What is javac in java?

0 Answers  


What is the multi-catch block in java?

0 Answers  


Explain static nested classes ?

0 Answers  


How to make class immutable

6 Answers  


Categories