Nexwave OS Interview Q&A
Nexwave OS Interview Q&A
OS Interview
Q&A
Define MULTICS?
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.
What is SCSI?
Small computer systems interface.
What is a sector?
Smallest addressable portion of a disk.
What is cache-coherency?
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.
What is a process?
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
What is a thread?
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.
What is a semaphore?
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.
What is a deadlock?
Explain briefly about, processor, assembler, compiler, loader, linker and the functions executed by
them.
Nexwave OS Interview Q & A Page 7 of 12
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.
What is Dispatcher?
->Dispatcher module gives control of the CPU to the process selected by the short-term scheduler; this involves:
Switching context
Switching to user mode
Jumping to the proper location in the user program to restart that program
Dispatch latency – time it takes for the dispatcher to stop one process and start another running.
Under what circumstances do page faults occur? Describe the actions taken by the operating
system when a page fault occurs?
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
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?
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.