Question: What does the yield ( ) method do when two threads have the same priority? Question 1 Answer a . Causes the current thread to
What does theyieldmethod do when two threads have the same priority?
Question Answer
a
Causes the current thread to pause and allows other threads with the same priority to execute.
b
It Increases the priority of the current thread and stops all other threads.
c
It Decreases the priority of the current thread and pauses it to allow other threads with higher priority to execute.
d
Has no effect when threads have the same priority.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
