I have some concerns regarding the following question from
www.javacertificate.com: The answers they have are 2 and 4. But I have a problem with answer 4. I thought time-slicing is used to prevent starvation between threads of the same priority level. If a
thread at a high priority level contained an infinite loop, then isn't it true that a thread with a lower priority level would starve, even with time-slicing, since the thread scheduler would always choose the high priority thread to enter the running state?
So in my mind, the correct answer is 2. What do you all think?