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

How much cpu usage is normal?

561


What do you know about a pipe? When is it used?

501


What is an operating system on a computer?

538


What do you mean by a zombie process?

593


What are the different types of kernel?

588






What is the purpose of system calls?

601


What is short term scheduler in operating system (os)?

590


What is fragmentation?

607


Discuss a Thread Life Cycle?

664


Does overheating cause blue screen?

585


What are the different types of CPU registers in a typical operating system design?

576


How do I use i3?

585


What is the programs x86 folder?

622


What is ram parity?

604


What are the two types of file system?

561