Operating System NOTES
Operating System NOTES
7.What is BIOS?
14.Define MULTICS?
Ans: MULTICS (Multiplexed information and computing services) operating system was
developed from 1965-1970 at Massachusetts institute of technology as a computing utility. Many
of the ideas used in MULTICS were subsequently used in UNIX.
15.What is SCSI?
Ans: Small computer systems interface.
16.What is a sector?
Ans: Smallest addressable portion of a disk.
17.What is cache-coherency?
Ans: In a multiprocessor system there exist several caches each may containing a copy of same
variable A. Then a change in one cache should immediately be reflected in all other caches this
process of maintaining the same value of a data in all the caches s called cache-coherency.
1. The basic advantage is it provides robust level of security as each virtual machine is isolated
from all other VM. Hence the system resources are completely protected.
2. Another advantage is that system development can be done without disrupting normal
operation. System programmers are given their own virtual machine, and as system development
is done on the virtual machine instead of on the actual
physical machine.
3. Another advantage of the virtual machine is it solves the compatibility problem.
EX: Java supplied by Sun micro system provides a specification for java virtual machine.
26.What is a process?
Ans: A program in execution is called a process. Or it may also be called a unit of work. A
process needs some system resources as CPU time, memory, files, and i/o devices to accomplish
the task. Each process is represented in the operating system by a process control block or task
control block (PCB).Processes are of two types:
1. Operating system processes
2. User processes
36.What is a thread?
Ans: A thread is a program line under execution. Thread sometimes called a light-weight
process, is a basic unit of CPU utilization; it comprises a thread id, a program counter, a register
set, and a stack.
User threads are easy to create and use but the disadvantage is that if they perform a blocking
system calls the kernel is engaged completely to the single user thread blocking other processes.
They are created in user space.Kernel threads are supported directly by the operating system.
They are slower to create and manage. Most of the OS like Windows NT, Windows 2000,
Solaris2, BeOS, and Tru64 Unix support kernel threading.
41.What is a P-thread?
Ans: P-thread refers to the POSIX standard (IEEE 1003.1c) defining an API for thread creation
and synchronization. This is a specification for thread behavior, not an implementation. The
windows OS have generally not supported the P-threads.
45.What is a semaphore?
Ans: It is a synchronization tool used to solve complex critical section problems. A semaphore is
an integer variable that, apart from initialization, is accessed only through two standard atomic
operations: Wait and Signal.
49.What is a deadlock?
Ans: Suppose a process request resources; if the resources are not available at that time the
process enters into a wait state. A waiting process may never again change state, because the
resources they have requested are held by some other waiting processes. This situation is called
deadlock.
56.Explain briefly about, processor, assembler, compiler, loader, linker and the functions
executed by them.
Ans :
Processor:–A processor is the part a computer system that executes instructions .It is also called a
CPU
Assembler: — An assembler is a program that takes basic computer instructions and converts
them into a pattern of bits that the computer’s processor can use to perform its basic operations.
Some people call these instructions assembler language and others use the term assembly
language.
Compiler: — A compiler is a special program that processes statements written in a particular
programming language and turns them into machine language or “code” that a computer’s
processor uses. Typically, a programmer writes language statements in a language such as Pascal
or C one line at a time using an editor. The file that is created contains what are called the source
statements. The programmer then runs the appropriate language compiler, specifying the name of
the file that contains the source statements.
Loader:–In a computer operating system, a loader is a component that locates a given program
(which can be an application or, in some cases, part of the operating system itself) in offline
storage (such as a hard disk), loads it into main storage (in a personal computer, it’s called
random access memory), and gives that program control of the compute
Linker: — Linker performs the linking of libraries with the object code to make the object code
into an executable machine code.
58. What is the difference between Hard and Soft real-time systems?
Ans : A hard real-time system guarantees that critical tasks complete on time. This goal requires
that all delays in the system be bounded from the retrieval of the stored data to the time that it
takes the operating system to finish any request made of it. A soft real time system where a
critical real-time task gets priority over other tasks and retains that priority until it completes. As
in hard real time systems kernel delays need to be bounded
->Reliability
->Communications
70. What is Throughput, Turnaround time, waiting time and Response time?
Ans :
Throughput – number of processes that complete their execution per time unit
Turnaround time – amount of time to execute a particular process
Waiting time – amount of time a process has been waiting in the ready queue
Response time – amount of time it takes from when a request was submitted until the first
response is produced, not output (for time-sharing environment)
Monolithic: A monolithic operating system is one where all operating system code is in a single
executable image and all operating system code runs in system mode.
86. Under what circumstances do page faults occur? Describe the actions taken by the
operating system when a page fault occurs?
Ans : A page fault occurs when an access to a page that has not been brought into main memory
takes place. The operating system verifies the memory access, aborting the program if it is
invalid. If it is valid, a free frame is located and I/O is requested to read the needed page into the
free frame. Upon completion of I/O, the process table and page table are updated and the
instruction is restarted
87. What is the cause of thrashing? How does the system detect thrashing? Once it detects
thrashing, what can the system do to eliminate this problem?
Ans : Thrashing is caused by under allocation of the minimum number of pages required by a
process, forcing it to continuously page fault. The system can detect thrashing by evaluating the
level of CPU utilization as compared to the level of multiprogramming. It can be eliminated by
reducing the level of multiprogramming.