Operating Systems: 1. Explain Belady's Anomaly
Operating Systems: 1. Explain Belady's Anomaly
3. 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.
9. What is time-stamping?
It is a technique proposed by Lamport, used to order events in a distributed
system without the use of clocks. This scheme is intended to order events
consisting of the transmission of messages. Each system 'i' in the network
maintains a counter Ci. Every time a system transmits a message, it increments its
counter by 1 and attaches the time-stamp Ti to the message. When a message is
received, the receiving system 'j' sets its counter Cj to 1 more than the maximum of
its current value and the incoming time-stamp Ti. At each site, the ordering of
messages is determined by the following rules: For messages x from site i and y
from site j, x precedes y if one of the following conditions holds....(a) if Ti<Tj or (b)
if Ti=Tj and i<j.
10.In the context of memory management, what are placement and replacement
algorithms?
Placement algorithms determine where in available real-memory to load a
program. Common methods are first-fit, next-fit, best-fit. Replacement algorithms
are used when memory is full, and one process (or part of a process) needs to be
swapped out to accommodate a new program. The replacement algorithm
determines which are the partitions to be swapped out.
12.What are the key object oriented concepts used by Windows NT?
➢ Encapsulation
➢ Object class and instance
1. What are the reasons for process suspension?
➢ swapping
➢ interactive user request
➢ timing
➢ parent process request