1.

What decides thread priority?(a) Process(b) Process scheduler(c) Thread(d) Thread schedulerThe question was asked in a job interview.My question is based upon Multithreading in portion Multithreading of Java

Answer»

The correct option is (d) Thread SCHEDULER

Explanation: Thread scheduler decides the priority of the thread EXECUTION. This cannot GUARANTEE that higher priority thread will be EXECUTED first, it DEPENDS on thread scheduler implementation that is OS dependent.



Discussion

No Comment Found

Related InterviewSolutions