SBI Specialist Officers - Operating Systems
SBI Specialist Officers - Operating Systems
SBI Specialist Officers - Operating Systems
Powered by
www.Gr8AmbitionZ.com
co
An operating system is a program that acts as an intermediary between the user and the
computer hardware. The purpose of an OS is to provide a convenient environment in
which user can execute programs in a convenient and efficient manner. It is a resource
allocator responsible for allocating system resources and a control program which
controls the operation of the computer hardware.
on
Z.
mb
iti
In batched operating system the users gives their jobs to the operator who sorts the
programs according to their requirements and executes them. This is time consuming but
makes the CPU busy all the time.
4. What is purpose of different operating systems?
8A
Gr
Virtual memory is hardware technique where the system appears to have more memory
that it actually does. This is done by time-sharing, the physical memory and storage parts
of the memory one disk when they are not actively being used.
6. What is Throughput, Turnaround time, waiting time and Response time?
w.
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 firstresponse is produced, not output (for time-sharing environment).
ww
The hardware
The operating system
The application programs
The users.
co
They
can
share
the
network
iti
on
Z.
A real time process is a process that must respond to the eventswithin a certain time
period. A real time operating system is an operating system that can run realtime
processes successfully.
mb
SCSI - Small computer systems interface is a type of interface used for computer
components such as hard drives, optical drives, scanners and tape drives. It is a
competing technology to standard IDE (Integrated Drive Electronics).
11.What is a sector?
8A
Gr
w.
ww
The repeated execution of a loop of code while waiting for an event to occur is called
busy waiting.
14.What are system calls?
System calls provide the interface between a process and the operating system. System
calls for modern Microsoft windows platforms are part of the win32 API, which is
available for all the compilers written for Microsoft windows.
on
Z.
co
iti
Java is one of the small number of languages that support at the language level for the
creation and management of threads. However, because threads are managed by the java
virtual machine (JVM), not by a user-level library or kernel, it is difficult to classify Java
threads as either user- or kernel-level.
User thread
Kernel thread
18.What is a semaphore?
mb
Gr
8A
w.
Deadlock is a situation where a group of processes are all blocked and none of them can
become unblocked until one of the other becomes unblocked. The simplest deadlock is
two processes each of which is waiting for a message from the other.
20.What is cache memory?
ww
Cache memory is random access memory (RAM) that a computer microprocessor can
access more quickly than it can access regular RAM. As the microprocessor processes
data, it looks first in the cache memory and if it finds the data there (from a previous
reading of data), it does not have to do the more time-consuming reading of data.
21. 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.
co
on
Z.
iti
A binary semaphore is one, which takes only 0 and 1 as values. They are used to
implement mutual exclusion and synchronize concurrent processes.
24.What is a job queue?
mb
8A
The processes that are residing in the main memory and are ready and waiting to execute
are kept on a list called the ready queue.
26.What are turnaround time and response time?
Turnaround time is the interval between the submission of a job and its completion.
Gr
Response time is the interval between submission of a request, and the first response to
that request.
w.
ww
on
Z.
co
Mutex is a program object that allows multiple program threads to share the same
resource, such as file access, but not simultaneously. When a program is started a mutex
is created woth a unique name. After this stage, any thread that needs the resource must
lock the mutex from other threads while it is using the resource. the mutex is set to
unlock when the data is no longer needed or the routine is finished.
29.What is Marshalling?
The process of packaging and sending interface method parameters across thread or
process boundaries.
iti
mb
It is called light weight process to emphasize the fact that a thread is like a process but is
more efficient and uses fewer resources( n hence lighter)and they also share the address
space.
Gr
Program execution
I/O operations
File system manipulation
Communication
Error detection
Resource allocation
Accounting
Protection
w.
8A
ww
33.What is a process?
co
Scheduling is the activity of the deciding when process will receive the resources they
request.
mb
iti
on
Z.
FCFS FCSFS stands for First Come First Served. In FCFS the job that has been
waiting the longest is served next.
Round Robin Scheduling Round Robin scheduling is a scheduling method where
each process gets a small quantity of time to run and then it is preempted and the
next process gets to run. This is called time-sharing and gives the effect of all the
processes running at the same time
Shortest Job First
The Shortest job First scheduling algorithm is a
nonpreemptive scheduling algorithm that chooses the job that will execute the
shortest amount of time.
Priority Scheduling Priority scheduling is a scheduling method where at all times
the highest priority process is assigned the resource.
35.What is dual-mode operation?
8A
In order to protect the operating systems and the system programs from the
malfunctioning programs the two mode operations were evolved
System mode
User mode.
Gr
A list of processes waiting for a particular I/O device is called device queue.
w.
ww
Soft real-time computing requires that critical processes receive priority over less
fortunate ones.
38.What is starvation ?
Starvation is a resourcemanagement problem where a process does not get the resources
it needs for a long time because the resources are being allocated to other processes.
co
Long term schedulers are the job schedulers that select processes from the job queue and
load them into memory for execution.
on
Z.
The Short term schedulers are the CPU schedulers that select a process form the ready
queue and allocate the CPU to one of them.
40.What is fragmentation?
Fragmentation occurs in a dynamic memory allocation system when many of the free
blocks are too small to satisfy any request.
iti
mb
Transferring the control from one process to other process requires saving the state of the
old process and loading the saved state for new process. This task is known as context
switching.
42.What is relative path and absolute path?
8A
Gr
Time taken for switching from one process to other is pure over head. Because the
system does no useful work while switching. So one of the solutions is to go for
threading when ever possible.
w.
44.What is the state of the processor, when a process is waiting for some event to occur?
Waiting state
ww
Main memory - only large storage media that the CPU can access directly.
Secondary storage - extension of main memory that provides large nonvolatile
storage capacity.
co
A situation, where several processes access and manipulate the same data concurrently
and the outcome of the execution depends on the particular order in which the access
takes place, is called race condition. To guard against the race condition we need to
ensure that only one process at a time can be manipulating the same data. The technique
we use for this is called process synchronization.
Mutual exclusion
Hold and wait
No preemption
Circular wait
mb
iti
on
Z.
8A
An interpreter reads one instruction at a time and carries out the actions implied by that
instruction. It does not perform any translation. But a compiler translates the entire
instructions.
Gr
w.
ww
co
52.What is DRAM?
on
Z.
Dynamic Ram stores the data in the form of Capacitance, and Static RAM stores the data
in Voltages.
Scheduler deals with the problem of deciding which of the process in the ready queue is
to be allocated the CPU. Short Term Schedulers, Long Term Schedulers
54.What is a trap and trapdoor?
mb
iti
Trapdoor is a secret undocumented entry point into a program used to grant access
without normal methods of access authentication. A trap is a software interrupt, usually
the result of an error condition.
55.What are local and global page replacements?
8A
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.
56.What is cache-coherency?
Gr
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.
w.
ww
58. While running DOS on a PC, which command would be used to duplicate the entire
diskette? diskcopy.