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 the use of arraylist class in java?

0 Answers  


What's the access scope of protected access specifier?

0 Answers  


What is a dot notation?

0 Answers  


Is integer immutable in java?

0 Answers  


What is the best way to findout the time/memory consuming process?

0 Answers  


Define nashorn in java8.

0 Answers  


List out five keywords related to exception handling ?

0 Answers  


define the terminology association.

0 Answers  


how can we synchronize Hash map?

3 Answers   CTS,


What is data type modifier?

0 Answers  


can anyone explain me the concept of autoboxing?

3 Answers  


WHAT IS THE MEANING OF ALL TYPE OF BUZZWORDS?

4 Answers  


Categories