What is an idle thread?

Answer Posted / subhodip ghosh

In Windows NT operating systems, the System Idle Process
contains one or more kernel threads which run when no other
runnable thread can be scheduled on a CPU. For example,
there may be no runnable thread in the system, or all
runnable threads are already running on a different CPU. In
a multiprocessor system, there is one idle thread associated
with each CPU.

The primary purpose of the idle process and its threads is
to eliminate what would otherwise be a special case in the
scheduler. Without the idle threads, there could be cases
when no threads were runnable, or "Ready" in terms of
Windows scheduling states. Since the idle threads are always
in a Ready state (if not already Running), this can never
happen. Thus whenever the scheduler is called due to the
current thread leaving the CPU, it can always find another
thread to run on that CPU, even if it is only the CPU's idle
thread.

Is This Answer Correct ?    6 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

List advantages and disadvantages of dynamic memory allocation vs. static memory allocation.?

689


Explain the difference between trap and trapdoor?

565


What is the difference between af and whitworth spanners?

649


What are the various components of a computer system?

570


Which vpn protocol is best?

514






Can chkdsk damage a hard drive?

630


What are interrupts?

693


Does android run on x86?

548


What do you know about system model?

625


What is the Difference between Loading and Linking ?

15441


What is a mission critical system?

1852


How many gb of ram can 64 bit use?

595


What's the difference between x86 and x64?

529


What are 3 operating systems?

527


What are device drivers?

609