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 are uses of Hash Code?

2 Answers   Cognizant,


How transient variable is different from volatile variable?

0 Answers  


What is a databasemetadata?

0 Answers  


Differentiate between postfix and prefix operators in java.

0 Answers   HCL,


What is the difference between Access Modifier and Access specifier?

1 Answers  






wHAT IS DEFAULT SPECIFIER IN JAVA wHAT IS DEFAULT CONSTRUCTOR IN JAVA wHAT IS DEFAULT METHOD IN JAVA

12 Answers   IBM,


Explain about transient variables in java?

0 Answers  


What is java ceil?

0 Answers  


extending thread class or implementing runnable interface. Which is better? : Java thread

0 Answers  


How do you escape a string?

0 Answers  


What is an example of a boolean?

0 Answers  


Difference between final and effectively final ? Why is effectively final even required ?

0 Answers  


Categories