Q. Under what circumstances might you use the yield method of the Thread class

  • (A) To call from the currently running thread to allow another thread of the same or higher priority to run
  • (B) To call on a waiting thread to allow it to run
  • (C) To allow a thread of higher priority to run
  • (D) To call from the currently running thread with a parameter designating which thread should be allowed to run
πŸ’¬ Discuss
βœ… Correct Answer: (A) To call from the currently running thread to allow another thread of the same or higher priority to run

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
205
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Ram Sharma
Publisher
πŸ“ˆ
84%
Success Rate