Explain The Concept of Reentrancy
Explain The Concept of Reentrancy
Explain The Concept of Reentrancy
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.
20. Define latency, transfer and seek time with respect to disk I/O.
Seek time is the time required to move the disk arm to the required
track. Rotational delay or latency is the time it takes for the beginning
of the required sector to reach the head. Sum of seek time (if any) and
latency is the access time. Time taken to actually transfer a span of data
is transfer time.
22. 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.
23. How are the wait/signal operations for monitor different from those
for semaphores?
If a process in a monitor signal and no task is waiting on the condition
variable, the signal is lost. So this allows easier program design. Whereas
in semaphores, every operation affects the value of 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.
32. What is the key object oriented concepts used by Windows NT?
Encapsulation
Object class and instance
1. swapping
2. interactive user request
3. timing
4. parent process request
39. What is process migration?
It is the transfer of sufficient amount of the state of process from one
machine to the target machine
47. What are DDks? Name an operating system that includes this
feature.
DDks are device driver kits, which are equivalent to SDKs for writing
device drivers. Windows NT includes DDks.
Is a key to a toilet. One person can have the key - occupy the toilet - at
the time. When finished, the person gives (frees) the key to the next
person in the queue.
Semaphore:
Is the number of free identical toilet keys. Example, say we have four
toilets with identical locks and keys. The semaphore count - the count of
keys - is set to 4 at beginning (all four toilets are free), then the count
value is decremented as people are coming in. If all toilets are full, ie.
there are no free keys left, the semaphore count is 0. Now, when eq. one
person leaves the toilet, semaphore is increased to 1 (one free key), and
given to the next person in the queue.