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 do you mean by constructor?

0 Answers  


What is stringwriter?

0 Answers  


Read data from console and print in one file. That would be in C:\temp ? Thanks, Bose

3 Answers   Oracle, Surya Software,


What are bind parameters?

0 Answers  


What are synchronized methods ?

0 Answers  






what is the collable collections in java?

2 Answers   Persistent,


How many types of thread in java? give the name

13 Answers   Cisco, NIIT,


How Array List can be Serialized.

7 Answers   Polaris,


What do you mean by scope of variable?

0 Answers  


Is assembly language a low level language?

0 Answers  


Which collection allows duplicate values in java?

0 Answers  


What is Distributed Application and what is its usage?

2 Answers  


Categories