Os Concepts
Os Concepts
Os Concepts
Following are a few basic questions that cover the essentials of OS:
4. What is thrashing?
It is a phenomenon in virtual memory schemes when the
processor spends most of its time swapping pages, rather than
executing instructions. This is due to an inordinate number of page
faults.
5. List the Coffman's conditions that lead to a deadlock.
Mutual Exclusion: Only one process may use a critical resource at
a time.
Hold & Wait: A process may be allocated some resources while
waiting for others.
No Pre-emption: No resource can be forcible removed from a
process holding it.
Circular Wait: A closed chain of processes exist such that each
process holds at least one resource needed by another process in
the chain.
2
In a cached system, the base addresses of the last few
referenced pages is maintained in registers called the TLB that aids in
faster lookup. TLB contains those page-table entries that have been
most recently used. Normally, each virtual memory reference causes 2
physical memory accesses-- one to fetch appropriate page-table entry,
and one to fetch the desired data. Using TLB in-between, this is
reduced to just one physical memory access in cases of TLB-hit.
3
15. What is busy waiting?
The repeated execution of a loop of code while waiting for an
event to occur is called busy-waiting. The CPU is not engaged in any
real productive activity during this period, and the process does not
progress toward completion.
4
Local replacement means that an incoming page is brought in
only to the relevant process' address space. Global replacement policy
allows any page frame from any process to be replaced. The latter is
applicable to variable partitions model only.
5
the semaphore, so the wait and signal operations should be perfectly
balanced in the program.
30. What are the four layers that Windows NT have in order
to achieve independence?
Hardware abstraction layer
Kernel
Subsystems
System Services.
9
10