Answer the following statements true (T) or false (F)

1. A thread is not runnable if it has terminated.
2. Some operating systems use timeslicing with threads. Therefore, they can enable threads to preempt threads of the same priority.
3. When the thread’s quantum expires, the thread returns to the running state as the op- erating system assigns it to a processor.
4. On a single-processor system without timeslicing, each thread in a set of equal-priority
threads (with no other threads present) runs to completion before other threads of equal priority get a chance to execute
5. To determine the difference between two Instants, use class Duration’s static method
difference, which returns a Duration object containing the time difference.

1. True.
2. False. Timeslicing allows a thread to execute until its timeslice (or quantum) expires.
Then other threads of equal priority can execute.
3. False. When a thread’s quantum expires, the thread returns to the ready state and the operating system assigns to the processor another thread.
4. True.
5. False. The Duration method for calculating the difference between two Instants is named between.

Computer Science & Information Technology

You might also like to view...

Sort order in Datasheet view overrides the sort order in Design view

Indicate whether the statement is true or false

Computer Science & Information Technology

A query where the user provides the criterion at run time is called a(n) ________ query

Fill in the blank(s) with correct word

Computer Science & Information Technology