Introduction to Operating Systems - CS3451 2021 Regulation - 2 Marks
Introduction to Operating Systems - CS3451 2021 Regulation - 2 Marks
DEPTOFCSE
threads
UNIT I INTRODUCTION 7
Computer System- Elements and organization; Operating System Overview - Objectives and Functions
- Evolution of Operating System; Operating System Structures –Operating
System Services - User Operating System Interface - System Calls – System Programs - Design and
Implementation - Structuring methods.
UNIT II PROCESS MANAGEMENT 11
Processes - Process Concept - Process Scheduling - Operations on Processes - Inter- process
Communication; CPU Scheduling - Scheduling criteria - Scheduling algorithms: Threads - Multithread
Models – Threading issues; Process Synchronization - The Critical-Section problem - Synchronization
hardware – Semaphores – Mutex - Classical problems of synchronization - Monitors; Deadlock -
Methods for handling deadlocks, Deadlock prevention, Deadlock avoidance, Deadlock detection,
Recovery from deadlock.
UNIT III MEMORYMANAGEMENT 10
Main Memory - Swapping - Contiguous Memory Allocation – Paging - Structure of the PageTable-
Segmentation,Segmentationwithpaging;VirtualMemory-Demand
Paging–Copy on Write-Page Replacement-Allocation of Frames–Thrashing.
DEPTOFCSE
DEPTOFCSE
5. How are multiple interrupt deal with?[An]
Two approaches can be taken to dealing with interrupts
Disabled Interrupt–Processor ignores any new interrupt request signal.
Define Priority for interrupt–It allows an interrupt of higher priority.
6. What characteristics distinguish the various elements of a memory hierarchy? [R]
Characteristics are
1. Cost Per bit
2. Capacity
3. Access Time
4. Frequency of access to the memory by the processor
7. What is Cache Memory?[R]
1. Cache memory is invisible to the OS
2. It interacts with other memory management hardware
3. Cache contains a copy of a portion of main memory.
DEPTOFCSE
11. What is an operating system?(NOV/DEC2013) [R]
An operating system is a program that manages the computer hardware. It act as an
intermediate between a user‘s of a computer and the computer hardware. It controls and coordinates
the use of the hardware among the various application programs for the various users.
12. What are the3 objective of an OS Design? [R]
Convenience–An OS makes a computer more convenient to use
Efficiency—An OS allows the system resources to be used in efficient manner
Ability to Evolve – An OS Constructed in such a way as to permit the effective
development, testing & introducing new function.
13. List the Services of operating system function. (NOV/DEC2013) [R]
1. Program development
2. Program execution
3. User Interface
4. I/O Operations
5. File system Manipulation
6. Communication
7. Error Detection
8. Resource allocation
9. Accounting
10. Security
14. Define Kernel[R]
The kernel is a software code that resides in the central core of a operating system. It has
complete control over the system.
15. Define system call.(MAY/JUNE2009,APRIL/MAY2019)[R]
System Call provides the interface between running program and the OS User can
request any services from OS through System Call.
Categories of system call:-
File management
Process Management
Inter process Communication
I/O Device Management
Information Processing & Maintenance
16. What is System Programs?(APRIL/MAY2011) [R]
A system program provides an convenient environment to the user for developing and
executing the programs.
Categories:-
1. File management
2. Status Information
3. File Modification
4. Programming language support
5. Program loading & execution
6. Communication
DEPTOFCSE
17. What is Boot strapping?[R]
The boot program is stored on disk with predetermined address called boot sector. The boot
program then loads the operating system into memory to startup the computer this arrangement is
known as bootstrapping.
18. Difference b/w Monolithic & Microlithic. [An]
Monolithic Microlithic
All OS services are included in the Kernel Provides only IPC and low level
Kernel Device management services
21. What does the CPU down there are no user programs to run?(NOV/DEC 2011) [R]
The CPU will always do processing. Even though there are no application programs running, the
operating system is still running and the CPU will still have to process.
22. Describe the actions taken by a kernel to context-switch between
processes.[An](NOV/DEC2013)
In general, the operating system must save the state of the currently running process and restore
the state of the process scheduled to be run next. Saving the state of a process typically includes the
values of all the CPU registers in addition to memory allocation. Context switches must also perform
many architecture-specific operations, including flushing data and instruction caches.
DEPTOFCSE
23. What is multi core processor?[R]
Hardware has been to place multiple processor cores on the same physical chip, resulting in a
multi core processor. Each core maintains its architectural state and thus appears to the operating system
to be a separate physical processor.
24. What is memory stall?[R]
Researchers have discovered that when a processor accesses memory, it spends a significant
amount of time waiting for the data to become available. This situation, known as a memory stall, may
occur for various reasons, such as a cache miss.
25. What is Bootstrapping?[R]
Thebootprogramisstoredondiskwithpredeterminedaddresscalledbootsector.
The boot program then loads the operating system into memory to startup the computer. This
arrangement is known as bootstrapping.
26. Can multiple user level threads achieve better performance on a multiprocessor system than a
single processor system? Justify your answer. (MAY/JUNE 2014 ) [An]
We assume that user-level threads are not known to the kernel. In that case, the answer is
because the scheduling is done at the process level. On the other hand, some OS allows user-level
threads to be assigned to different kernel-level processes for the purposes of scheduling. In this case the
multithreaded solution could be faster
27. Mention the circumstances that would a user be better off using a time-sharing system rather
than a PC or a single user workstation? (MAY/JUNE 2014) [An]
A user is better off than three situations: when it is cheaper, faster, or easier. For example:
1. When the user is paying for management costs and the costs are cheaper for a time-sharing
system than for a single-user computer.
2. When running a simulation or calculation that takes too long to run on a single PC or
workstation.
3. When a user is travelling and doesn't have laptop to carry around, they can connect remotely to a
time-shared system and do their work.
28. Do timesharing differ from Multiprogramming? If so, How?(APR/MAY 2015) [An]
Time Sharing: here, OS assigns sometimes lots to each job. Here, each job is executed
according to the allotted time slots.
Job1: 0 to 5 Job2: 5 to 10 Job3: 10 to 15
Multi-Tasking: in this operating system, jobs are executed in parallel by the operating
system. But, we can achieve this multi-tasking through multiple processors (or)
multicore CPU only.
CPU1:Job1 CPU2:Job2 CPU3:Job3
DEPT OF CSE
29. Why APIs need to be used rather than system calls?(APR/MAY2015)[An]
System calls are much slower than APIs (library calls) since for each system call, a context
switch has to occur to load the OS (which then serves the system call).Most details of OS interface
hidden from programmer by API Managed by run-time support library (Set of functions built into
libraries included with compiler.)
30. Describe the actions taken by a thread library to context switch between user- level threads.
[An]
The user-level threads are known only within a given process. To context switch, we only need
to save the thread-specific context: the program counter, CPU registers, and the thread-specific stack
pointer
31. What is the purpose of system programs?(May/Jun2016)[R]
System programs can be thought of as bundles of useful system calls. They provide basic
functionality to users so that users do not need to write their own programs to solve common problems.
32. What are the advantages of peer-to-peer systems over client-server systems? (May/Jun 2016)
[R]
It is easy to install and so is the configuration of computers on this network, all the resources and
contents are shared by all the peers, unlike server-client architecture where Server shares all the
contents and resources.
P2P is more reliable as central dependency is eliminated. Failure of one peer doesn‘t affect the
functioning of other peers. In case of Client –Server network, if server goes down whole
network gets affected.
There is no need for full-time System Administrator. Every user is the administrator of his
machine. User can control their shared resources.
The over-all cost of building and maintaining this type of network is comparatively very less.
33. Compare and contrast DMA and cache memory.(Nov/Dec2015) [An]
DMA is a hardware device that can move to/from memory without using CPU instructions.
For instance, a hardware device (let’s say, your PCI sound device) wants audio to play back.
You can either:
Write a word at a time via a CPU move instructions.
Configure the DMA device. You give it a start address, a destination, and the number of bytes to
copy. The transfer now occurs while the CPU does something else instead of spoon feeding the
audio device.
DMA can be very complex (scatter gather, etc), and varies by bus type and system.
DEPT OF CSE
34. Write the difference between Batch systems and Time sharing systems.(Nov/Dec 2015) [An]
A batch is a sequence of jobs. This batch is submitted to batch processing operating systems, and
output would appear some later time in the form of a program or as program error. To speed up
processing similar jobs are batched together.
The major task of batch operating systems is to transfer control automatically from one job to
next. Here the operating is always in the memory.
Time sharing or multi-tasking is a logical execution of multiprogramming. Multiple jobs are
executed by the CPU switching between them. Here the computer system provides on line
communication between the user and the system.
Here the CPU is never idle. Time shared operating system allows many users to share the
computer simultaneously.
Timesharingsystemsrequiressomesortofmemorymanagementandprotection.
35. How does an interrupt differ from a trap or what is the difference between trap and
interrupt? (NOV/DEC 2016) [An] (APR/MAY 2018)
An interrupt handler is called to deal with the cause of the interrupt; control is then returned to
the interrupted context and instruction. A trap is a software-generated interrupt. An interrupt can be
used to signal the completion of an I/O to obviate the need for device polling.
36. What are the disadvantages of multiprocessor systems? (NOV/DEC2016)[R]
If one processor fails then it will affect in the speed
Multiprocessor systems are expensive.
Complex OS is required.
It's more complex.
It requires context switching which slightly impacts
37. Considermemorysystemswithacacheaccesstimeof10nsandamemoryaccess time of 110 ns-assume
the memory access time includes the time to check the cache. If the effective access time is 10 %
greater than the cache access time, what is the hit ration H? (APR/MAY 2017) [E]
DEPTOFCSE
38. What are the objectives of operating systems? (APR/MAY 2017) [R] (NOV/DEC 2017) [R]
An OS is a program that controls the execution of application programs and acts as an interface
between applications and the computer hardware. Objectives of OS: Convenience: An OS makes a
computer more convenient to use.
Efficiency: An OS allows the computer system resources to be used in an efficient manner.
39. What is SYSGEN and system boot?[R](NOV/DEC2017)(NOV/DEC2021)
SYS GEN: It is the Short for System Generation; sysgen is a utility that enables an operating
system to configure hardware and software setups properly.
System Boot:
Booting the system is done by loading the kernel into main memory, and starting its execution.
The CPU is given are set event, and the instruction register is loaded with a predefined memory location,
where execution starts.
40. Mention the purpose of system calls.[R](APR/MAY2018)
System calls allow user-level processes to request services of the operating system.
If a file system requires the creation or deletion of files.
Reading and writing from files also require a system call.
Creation and management of new processes.
Networkconnectionsalsorequiresystemcalls.Thisincludessendingandreceiving packets.
Access to hardware devices such as a printer, scanner etc. requires a system call.
41. What is dual mode operation and what is the need of it?(APRIL/MAY 2019)
Inmonitormode,theCPUcanuseallinstructionsandaccessallareasofmemory.
In user mode, the CPU is restricted to unprivileged instructions and a specified area of memory.
User code should always be executed in user mode and the OS design ensures that it is.
42. Distinguish between Multicore and Multiprocessor.(NOV/DEC2021)
Multicore systems have a single processor with multiple processing units. These processing
units are termed cores. On the other hand, multiprocessor systems have two or more processors. A
multiprocessor system is much more reliable than a multicore system but a multiprocessor system
has a complex configuration compared to a multicore system. Both multicore processors and
multiprocessors are used to speeding up the computing process of the system.
DEPTOFCSE
PART–B&C
1. Explain Operating System Structure and components.[R](APRIL/MAY2010, NOV/DEC 2013)
2. Discuss multiprocessor systems in detail.[U](MAY/JUNE2013)
3. Explainindetailthetypesofsystemcallsprovidedbyatypicaloperatingsystem. [R](NOV/DEC2012)
4. Explainthepurposeofsystemcallsanddiscussthecallsrelatedtodevicemanagement and
communications in brief. [An] (MAY/JUNE 2014)
5. Explain the concepts of virtual machines, their implementation and benefits in details.[An]
(MAY/JUNE 2014)
6. What is a virtual machine? List out the advantages of virtualization. Explain the creation of a Virtual
machine with a architecture diagram [An] (NOV/DEC 2013)
7. Write short notes on operating system services and components.[U](MAY/JUNE2012)
8. Write in detail about the real time system and multiprocessor system.[U]
9. Explain the various types of System calls with an example for each?[U] (APR/MAY 2015)
10. Discussaboutthefunctionalityofsystembootwithrespecttooperatingsystem.[An](APR/MAY2015)
11. Discuss about the evolution of virtual machines. Also explain how virtualization could be
implemented in operating systems. [Ap] (APR/MAY 2015)
12. Sketch the structure of Direct Memory Access in detail. [U](APR/MAY2015)
13. (i)With neat sketch discuss computer system overview
(ii) Enumeratethedifferentoperatingsystemstructureandexplainwithneatsketch.[U](Nov/Dec 2015)
14. (i)State the basic functions of OS and DMA.
(ii) Explain system calls, system programs and OS generation. [U] (Nov/Dec 2015) 15.
(i)Distinguishbetweentheclient-serverandpeer-to-peermodelsofdistributed systems.
(ii)Describe three general methods for passing parameters to the operating system with example.
[An] (MAY/JUNE 2016)
16.(i)Howcouldasystembedesignedtoallowachoiceofoperatingsystemsfrom which to boot? What would
the bootstrap program need to do? [Ap]
(ii) Describe the differences between symmetric and asymmetric multiprocessing. What are three
advantages and one disadvantage of multiprocessor systems? [An] (MAY/JUNE 2016)
17.(i) Describe a mechanism for enforcing memory protection in order to prevent a program from
modifying the memory associated with other programs (8)[An] (NOV/DEC 2016)
(ii)What are the advantages and disadvantages of using the same system call interface for
manipulating both files and devices? (8) [An] (NOV/DEC 2016)
18.(i)Stateandexplainthemajoractivitiesofanoperatingsystemwithregardtofile management? (8) [U]
(NOV/DEC2016)
(ii)Discuss the different multiprocessor organizations with block diagrams[An] (8)(NOV/DEC 2016)
DEPTOFCSE
19.(i)Explain the concept of multiprocessor and Multicore organizations(7)[U](APR/MAY 2017)
(ii)Discuss about direct memory access (6)[U](APR/MAY2017)
20.(i)Explain the various structures of an operating system(8)[U](APR/MAY2017)
(ii)Describe system calls and system programs in detail with neat sketch(5) [An] (APR/MAY 2017)
21. Explain Cache memory and its mapping.[U](13)(NOV/DEC2017)
22. Describe evolution of operating system.[U](13)(NOV/DEC2017)
23. State the operating system structure. Describe the operating-system operations in detail. Justify the
reason why the lack of a hardware-supported dual mode and cause serious shortcoming in an operating
system? (13) [U] (APR/MAY 2018)
24. i) Give reason why caches are useful. What problems do they solve? What problems do they cause?
If a cache can be made as large as the device for which it is caching why not make it that large and
eliminate the device? [An](8)
ii) Describe the major activities of operating system with regards to file management.[U](5)(APR/MAY2018)
25. Explain in detail the difference architecture of OS starting from simple structure, Layered structure,
micro kernel, modules and hybrid system with suitable example OS structures, including Google‘s
android. (13) (APR/MAY 2019)
26. (i) Discuss the pros and cons of single processor system, multi core system and clustered system. (8)
(ii) Explain the steps involved to transfer the stored historical information in a magnetic tapes to the
CPU for further processing through various storage device.(5) (APR/MAY 2019)
PART–A
1. Define Process?[R]
AProcesscanbethoughtofasaprograminexecution.Aprocesswillneedcertain resources such as CPU time,
memory, files & I/O devices to accomplish its task.
2. Draw &briefly explain the process states?[U]or Name and draw five different process
states with proper definition. (NOV/DEC 2017)
Process state
Process number
Program counter
CPU registers
Memory limits
Accounting information
o Any process that shares data with any other process is cooperating.
7. What is a thread?[R]
A thread otherwise called a light weight process (LWP) is a basic unit of CPU utilization, it
comprises of a thread id, a program counter, a register set and a stack. It shares with other threads
belonging to the same process its code section, data section, and opera ting system resources such as
open files and signals.
Busy waiting:-
When a process is in its critical section, any other process that tries to enter its critical section must
loop continuously in the entry code. This is called as busy waiting.
Spin lock:-
Busy waiting waster CPU cycles that some other process might be able to use productively.
This type of semaphore is also called as pin lock because the process- spin‖ while waiting for the lock.
entry section
critical section
DEPT OF CSE
remainder section
Exit section
} while(1);
24. Give two hardware instructions and their definitions which can be used for
implementing mutual exclusion.[An]
Test And Set
boolean Test And Set(boolean&target)
{
boolean rv=target; target
= true;
return rv;
}
Swap
void Swap(boolean &a,boolean &b)
{
boolean temp= a;
a= b;
b=temp;
}
25. What is semaphore? Mention its importance in operating system.(APRIL/MAY 2010,
NOV/DEC 2012)[R]
A semaphore 'S' is a synchronization tool which is an integer value that, apart from initialization, is
accessed only through two standard atomic operations; wait and Signal. Semaphores can be used to
deal with the n-process critical section problem .It can be also used to solve various Synchronization
problems.
26. Howthemutualexclusionmaybeviolatedifthesignalandwaitoperationsare not executed
automatically (MAY/JUNE 2014)[An]
A wait operation atomically decrements the value associated with a semaphore. If two wait operations
are executed on a semaphore when its value is 1, if the two operations are not performed atomically,
then it is possible that both operations might proceed to decrement the semaphore value, thereby
violating mutual exclusion.
DEPT OF CSE
28. What is preemptive and non-preemptive scheduling?[An](NOV/DEC2008,APRIL/MAY
2010, MAY/JUNE2012)
Under non preemptive scheduling once the CPU has been allocated to a process, the process
keeps the CPU until it releases the CPU either by terminating or switching to the waiting state.
Preemptive scheduling can preempt a process which is utilizing the CPU in between its
execution and give the CPU to another process.
29. What is a Dispatcher?[R]
The dispatcher is the module that gives control of the CPU to the process selected by the short-term
scheduler. This function involves:
Switching context.
Switching to user mode.
Jumping to the proper location in the user program to restart that program.
30. Define the term dispatch latency‟ (APR/MAY2015)[R]
The time taken by the dispatcher to stop one process and start another running is known
as dispatch latency.
31. Define throughput?[R]
Throughput in CPU scheduling is the number of processes that are completed per unit time. For
long processes, this rate may be one process per hour; for short transactions, throughput might be 10
processes per second.
32. What is turnaround time?(NOV/DEC2013)[R]
Turnaround time is the interval from the time of submission to the time of completion of a
process.
It is the sum of the periods spent waiting to get into memory, waiting in the ready queue, executing on
the CPU, and doing I/O.
33. Define race condition.[R]
When several process access and manipulate same data concurrently, then the outcome of the
execution depends on particular order in which the access takes place is called race condition. To avoid
race condition, only one process at a time can manipulate the shared variable.
34. Write the four situations under which CPU scheduling decisions take place
(MAY/JUNE 2014) [R]
CPU scheduling decisions take place under one off our conditions:
When a process switches from the running state to the waiting state, such as for an I/O request
or invocation of the wait ( ) system call.
When a process switches from the running state to the ready state, for example in response to an
interrupt.
DEPT OF CSE
When a process switches from the waiting state to the ready state, say at completion of I/O or a
return from wait ( ).
When a process terminates.
DEPT OF CSE
41. How real-time Scheduling does differs from normal scheduling?(NOV/DEC 2012) [R]
In a normal Scheduling, we have two types of processes. User process & kernel Process. Kernel
processes have time constraints. However, user processes do not have time constraints.
In a RTOS, all process is Kernel process & hence time constraints should be strictly followed.
All process/task (can be used interchangeably) are based on priority and time constraints are important
for the system to run correctly.
42. What do you meant by short-term scheduler (NOV/DEC2010)[R]
The selection process is carried out by the short-term scheduler or CPU scheduler.
The scheduler selects the process form the process in memory that is ready to execute and allocates
the CPU to the process.
43. What is the concept behind strong semaphore and spin lock? (NOV/DEC2015) [R]
A spinlock is one possible implementation of a lock, namely one that is implemented by busy
waiting("spinning").A semaphore is a generalization of a lock(or, the other way around, a lock is a
special case of a semaphore). Usually, but not necessarily, spinlocks are only valid within one process
whereas semaphores can be used to synchronize between different processes, too.
Asemaphorehasacounterandwillallowitselfbeingacquiredbyoneorseveral threads, depending on
what value you post to it, and (in some implementations) depending on what its maximum
allowable value is.
Busy waiting means that a process is waiting for a condition to be satisfied in a tight loop
without relinquish the processor. Alternatively, a process could wait by relinquishing the processor, and
block on a condition and wait to be awakened at some appropriate time in the future.
44. Distinguish between CPU-bounded and I/O bounded processes (NOV/DEC 2016) [An]
CPU Bound means the rate at which process progresses is limited by the speed of the CPU. A
task that performs calculations on a small set of numbers, for example multiplying small matrices, is
likely to be CPU bound.
I/O Bound means the rate at which a process progresses is limited by the speed of the I/O
subsystem. A task that processes data from disk, for example, counting the number of lines in a file is
likely to be I/O bound.
45. What resources are required to create threads (NOV/DEC2016)[R]
When a thread is created, the thread does not require any new resources to execute the thread
shares the resources like memory of the process to which they belong. The benefit of code sharing is
that it allows an application to have several different threads of activity all within the same address
space.
DEPT OF CSE
46. ”Priority inversion is a condition that occurs in real time systems where a low priority process
is starved because higher priority processes have gained hold of the CPU”-Comment on this
statement. (APR/MAY 2017) [An]
Priority inversion is a problematic scenario in scheduling in which a high priority task is
indirectly preempted by a lower priority task effectively "inverting" the relative priorities of the two
tasks. This violates the priority model that high priority tasks can only be prevented from running by
higher priority tasks and briefly by low priority tasks which will quickly complete their use of a
resource shared by the high and low priority
tasks.
DEPT OF CSE
Benefits of Asynchronous communication:
Asynchronous message passing allows more parallelism.
Since a process does not block, it can do some computation while the message is in transit.
In the case of receive; this means a process can express its interest in receiving messages on
multiple ports simultaneously.
45. Give a programming example in which multithreading does not provide better
performance than single-threaded solutions. (APR/MAY 2018)
Multi-threading does not perform well for any sequential program. For example;
Program to calculate an individual tax return. Another example where multithreading does not work
good would be shell program like ―Korn‖ shell.
46. Give the queuing diagram representation of process scheduling.(APR/MAY 2019)
Responsiveness.
Resource sharing
Economy
Scalability.
Challenges
Dividing activities
Balance
Data splitting
Data dependency
Testing and debugging
DEPTOFCSE
PART-B&C
1) Explain the FCFS, preemptive and non-preemptive versions of Shortest-Job First and Round Robin (time
slice = 2) scheduling algorithms with Gantt charts for the four Processes given. Compare their average
turnaround and waiting time.[E] (NOV/DEC 2012)
Process Arrival Time Waiting Time
P1 0 8
P2 1 4
P3 2 9
P4 3 5
P1 10 3
P2 1 1
P3 2 3
P4 1 4
P5 5 2
TheprocessesarearrivedintheorderP1, P2, P3, P4,P5,all at time0.
1. Draw4GanttchartsillustratingtheexecutionoftheseprocessesusingFCFS,SJF Priority and
RR(Time Slice = 1) scheduling
2. What is the turnaround time of each process for each of the scheduling?
3. Calculate the waiting time for each of the process [E](MAY/JUNE2012) (NOV/DEC2015)
DEPTOFCSE
10) Consider the following questions based on the banker‘s algorithm:[E] (MAY/JUNE 2012)
Process Allocation Max Available
P0 ABCD ABCD ABCD
P1 0012 0012 1520
P2 1000 1750
P3 1354 2356
P4 0632 0652
P5 0014 0656
(1) Define safety algorithm.
(2) What is the content of the matrix Need?
(3) Is the system in a safe state?
(4) If a request from process P1 arrives for (0, 4, 2, 0), can the request be granted
immediately?
11) (i)What is meant by critical section problem? Propose a solution based on bakery algorithm.
(ii) Consider the following snapshot of a system:
P0 – P4 are 5 processes present and A, B, C, D are the resources. The maximum need of a Process and
the allocated resources details are given in the table.
Answer the following based on banker‘s algorithm.
(1) What is the content of NEED matrix?
(2) Is the system in a safe state?
(3) If a request from process P0 arrives for(0,2,0)can the request be granted immediately.
[E]
Allocation Max Available
A B C A B C A B C
P0 0 1 0 7 5 3 3 3 2
P1 2 0 0 3 2 2
P2 3 0 2 9 0 2
P3 2 1 1 2 2 2
P4 0 0 2 4 3 3
12) Discuss the threading issues which are considered with multithreaded programs.
[An]MAY/JUNE2014)(APRIL/MAY2011,MAY/JUNE2012)
Consider the following snapshot of a system:
P0-P4 are 5 processes present and A, B, C,D are the resources. The maximum need of a process
and the allocated resources details are given in the table.
DEPTOFCSE
Allocation Max Available
A B C D A B C D A B C D
P0 0 0 1 2 0 0 1 2 1 5 2 0
P1 1 0 0 0 1 7 5 0
P2 1 3 5 4 2 3 5 6
P3 0 6 3 2 0 6 5 2
P4 1 0 1 4 0 6 5 6
Answer the following based on banker‘s algorithm
i) What is the content of NEED matrix?
ii) Is the system in a safe state?
iii) Which processes may cause deadlock if the system is not safe.
iv) If a request from process p1arrives for(0,4,3,1)can the request be granted immediately?
Justify.[E] (MAY/JUNE 2014)
13) Discussindetailthecriticalsectionproblemandalsowritethealgorithmfor Readers-Writers
Problem with semaphores [An](NOV/DEC 2013)
14) Explain the FCFS, preemptive and non-preemptive versions of Shortest-Job First and Round Robin
(time slice = 2) scheduling algorithms with Gantt charts for the four Processes given. Compare
their average turnaround and waiting time.[Ap](APR/MAY2015)
Process Arrival Time Waiting Time
P1 0 10
P2 1 6
P3 2 12
P4 3 15
DEPTOFCSE
18) Is the current allocation in a safe state? [E] (NOV/DEC 2015) [An] (MAY/JUNE 2016)
(i)Is it possible to have concurrency but not parallelism? Explain.
(ii)Consider a system consisting of four resources of the same type that are shared by three processes,
each of which needs at most two resources. Show that the system is deadlock free.
(i)Describe the actions taken by a kernel to context-switch between processes.
(ii)Provide two programming examples in which multithreading does not provide better
performance than a single-threaded solution. [An] (MAY/JUNE 2016)
19) (i) Give an example of a situation in which ordinary pipes are more suitable than named pipes and
an example of a situation in which named pipes are more suitable than ordinary pipes. (8) (NOV/DEC
2016) [An]
(ii)Describethedifferencesamongshort-term,medium-term,andlongterm scheduling[U](8)
(NOV/DEC 2016)
20) (i)Explainwhyinterruptsarenotappropriateforimplementingsynchronization primitives in
multiprocessor systems[An] (8) (NOV/DEC 2016)
(ii) What is the different thread libraries used? Explain any one with example [An](8) ( NOV/DEC
2016)
21) Considerthefollowingsetofprocesses,withthelengthoftheCPU-bursttimein given ms:
Process Burst Time Arrival Time
P1 8 0.00
P2 4 1.001
P3 9 2.001
P4 5 3.001
P5 3 4.001
Draw four Gantt charts illustrating the execution of these processes using FCFC,SJF, Priority and
RR(Quantum=2)scheduling .Also calculate waiting time and turnaround time for each scheduling
algorithms [E]. (13) (APR/MAY 2017)
22) What is a race condition? Explain how a critical section avoids this condition. What are the
properties which a data item should possess to implement a critical section? Describe a solution to the
Dining philosopher problem so that no races arise. [An] (13) (APR/MAY 2017) (APR/MAY 2019).
23) i)What is a process? Discuss components of process and various states of a process with the help
of a process state transition diagram. (8) [U](NOV/DEC 2017)
ii)Writethedifferencebetweenuserthreadandkernelthread.(5)[An](NOV/DEC2017)
DEPT OF CSE
24) i)What is the average turnaround time for the following processes using
a) FCFS(3)
b) SJF non-preemptive.(3)
c) Preemptive SJF.(3)[U](NOV/DEC2017)
DEPT OF CSE
(v) Some processes have requested additional resources, as follows:-
p1 wants one instance of R1.
p3 wants one instance of R2
(1) Draw the resource allocation graph for this system
(2) What is the state (runnable, waiting) of each process? For each process that is waiting indicate
what it is waiting for
(3) Is this system deadlocked? If so, state which processes are involved. If not, give an execution
sequence that eventually ends, showing resource acquisition and release at each step.
32) Consider the following system snapshot using data structures in the Banker‘s
algorithm,withresourcesA,B,CandDandprocessP0toP4:[E](NOV/DEC2017)
33) i) Consider the atomic fetch-and-set x, y instruction unconditionally sets the memory location x to
1 and fetches the old value of x in y without allowing any intervening access to the memory location x.
Consider the following implementation of P and V functions on a binary semaphore.(15) [An]
(NOV/DEC 2017)
void P(binary_semaphore*s)
{
unsigned y;
unsigned*x=&(s->value);
do
{
DEPT OF CSE
fetch-and-setx,y;b
}While(3');
}
void V(binary_semaphore*s)
S- >value = 0;
}
Write whether the implementation mayor may not work if context switching is disabled in P.
(i) Consider a situation where we have a file shared between many people. If one of the people tries
editing the file, no other person should be reading or writing at the same time, otherwise changes will
not be visible to him/her. However if some person is reading the file, then others may read it at the same
time. [An](NOV/DEC 2017)
a) What kind of situation is this?
b) Consider the following problem parameters to solve this situation.
Problem parameters:
1) One set of data is shared among a number of processes.
2) Once a writer is ready, it performs its write. Only one writer may write at a time.
3) If a process is writing, no other process can read it.
4) If at least one reader is reading, no other process can write.
5) Readers may not write and only read.
34) Consider a system consisting of 'm' resources of the same type being shared by n Processes.
Resource can be requested and released by processes only one at a time. Show that the system is
deadlock free if the following two conditions hold :(15) [An] (APR/MAY 2018)
i) The maximum need of each process is between 1 and m resources.
ii) The sum of all maximum needs is less then m+n.
35. Consider the following set of processes, with the length of the CPU burst given in milliseconds: [E]
(APR/MAY 2018)
The process is as summed to have arrived in the order P1,P2,P3,P4,P5time0.
i) Draw Gantt charts that illustrate the execution of these processes using the scheduling algorithms
FCFS (smaller priority number implies higher priority) and RR (quantum = 1). (10)
ii) What is the waiting time of each process for each of the scheduling algorithms?(5)
DEPT OF CSE
36. Write the algorithm using test and set() instruction that satisfy all the critical section requirements .
(5)(APR/MAY 2019)
37. Consider the following snapshot of a system:
P0-P4 are 5 processes present and A,B,C,D are the resources. The maximum need of a process and
the allocated resources details are given in the table.
Allocation Max Available
A B C D A B C D A B C D
P0 2 0 0 1 4 2 1 2 3 3 2 1
P1 3 1 2 1 5 2 5 2
P2 2 1 0 3 2 3 1 6
P3 1 3 1 2 1 4 2 4
P4 1 4 3 2 3 6 6 5
39. (i) Consider two processes, p1 and p2where p1 = 50, t1 = 25, p2 = -75 and t2 = 30. Can these two
processes be scheduled using rate-monotonic scheduling and earliest deadline first scheduling. Illustrate
your answer using Gantt charts. (10)
(ii) Explain in detail about paging in 32 bit and 64 bit architectures. (5) (APR/MAY 2019)
40. (i)Explainbankeralgorithmfordeadlockavoidancewithsuitableexample.(7)
(ii)A system has four processes and five resources. The current allocation and maximum need are as
follows (NOV/DEC 2021)
DEPTOFCSE
Consider value of x as1,2,3.
What is the smallest value of x in which the above system become a safe state?
41. (i)What is critical section? Discuss in detail reader‘s writer‘s problem.(7) (NOV/DEC2021)
(ii) Define Deadlock. State the condition for deadlock. Explain the steps involved in deadlock
recovery. (6)
DEPTOFCSE
PART-
The runtime mapping from virtual to physical addresses is done by a hardware device
called a memory management unit (MMU).
23. What is difference between demands paging pure demand paging?[R]
In demand paging, a page is not loaded into main memory until it is needed. In pure demand
paging, even a single page is not loaded into memory initially. Hence pure demand paging causes a page
fault.
24. Define Copy-on-write.[R]
Copy-on-write finds its main use in virtual memory operating systems; when a process creates a
copy of itself, the pages in memory that might be modified by either the process or its copy are marked
copy-on-write.
25. Define swapping. (NOV/DEC2013)[R]
A process needs to be in memory to be executed. However a process can be swapped
temporarily out of memory to a backing store and then brought back into Memory for continued
execution. This process is called swapping.
26. What are the common strategies to select a free hole from a set of available holes? [R]
The most common strategies are
A. First fit B. Best fit C. Worst fit
27. Define lazy swapper.[R]
Rather than swapping the entire process into main memory, a lazy swapper is used. A lazy
swapper never swaps a page into memory unless that page will be needed.
28. Define effective access time.[R]
Let p be the probability of a page fault (0£p£1). The value of p is expected to be close to 0; that
is, there will be only a few page faults. The effective access time is
Effective access time =(1-p)*ma + p*page fault time.ma: memory-access time
DEPT OF CSE
29. What is the basic approach of page replacement?[R]
If no frame is free is available, find one that is not currently being used and free it. A frame
can be freed by writing its contents to swap space, and changing the page table to
indicate that the page is no longer in memory. Now the freed frame can be used
to hold the page for which the process faulted.
30. What is the various page replacement algorithms used for page replacement?[R]
FIFO page replacement
Optimal page replacement
LRU page replacement
LRU approximation page replacement
Counting based page replacement
Page buffering algorithm.
31. Differentiate between Global and Local page replacement algorithms. (NOV/DEC 2012)
38. Define demand paging in memory management. What are the steps required to handle a page
fault in demand paging. (Nov/Dec 2015) [R]
A demand paging system is quite similar to a paging system with swapping where processes reside
in secondary memory and pages are loaded only on demand, not in advance. When a context switch
occurs, the operating system does not copy any of the old program‘s pages out to the disk or any of the
new program‘s pages into the main memory instead, it just begins executing the new program after
loading the first page and fetches that program‘s pages as they are referenced. While executing a
program, if the program references a page which is not available in the main memory because it was
swapped out a little ago, the processor treats this invalid memory reference as a page fault and transfers
control from the program to the operating system to demand the page back into the memory.
39. How does the system detect thrashing?(May/Jun2016)[An]
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.
40. Name two differences between logical and physical addresses. (May/Jun 2016) [R]
A logical address does not refer to an actual existing address; rather, it refers to an abstract address
in an abstract address space. Contrast this with a physical address that refers to an actual physical
address in memory. A logical address is generated by the CPU and is translated into a physical address
by the memory management unit (MMU). Therefore, physical addresses are generated by the MMU.
41. Why page are sizes always powers of 2 ? (NOV/DEC2016)[An]
Paging is implemented by breaking up an address into a page and offset number. It is most efficient
to break the address into X page bits and Y off set bits, rather than perform arithmetic on the address to
calculate the page number and off set. Because each bit 2526 position represents a power of 2, splitting
an address between bits results in a page size that is a power of 2.
42. What is the purpose of paging the page tables (NOV/DEC2016)[R]
A page table is the data structure used by a virtual memory system in a computer operating system
to store the mapping between virtual addresses and physical addresses. Virtual addresses are used by the
accessing process, while physical addresses are used by the hardware, or more specifically, by the RAM
subsystem.
43. What is the difference between a user-level instruction and a privilege instruction? Which of
the following instruction should be privileged and only allowed to execute in kernel mode?
[An]
DEPTOFCSE
(a) Load a value from a memory address to a general-purpose register
(b) Set a new value in the program counter(PC) register
(c) Turn off interrupts (APR/MAY2017)
Privileged instruction
(d) A privileged instruction is a processor op-code (assembler instruction) which can only be
executed in "supervisor"(orRing-0) mode. These types of instructions tend to be used to access
I/O devices and protected data structures from the windows kernel.
User Level instruction
• User-level is generic and can run on any operating system.
•Load a value from a memory address to a general-purpose register(User Level
Instruction)
•Set a new value in the program counter(PC) register(User Level Instruction)
•Turnoff interrupts (privilege Instruction)
44. Will optimal page replacement algorithm suffer from Be lady‟s anamaly? Justify your
answer (APR/MAY 2017)[An]
In computer storage,Belady‘s anomaly is the phenomenon in which increasing the number of page
frames results in an increase in the number of page faults for certain memory access patterns. This
phenomenon is commonly experienced when using the first-in first-out (FIFO) page replacement
algorithm.
45. Write about swapping. Let us assume the user process is of size 1MB and the backing store is
a standard hard disk with a transfer rate of 5MBPS. Calculate the transfer rate. [E]
(NOV/DEC2017)
Swapping: A process can be swapped temporarily out of memory to a backing store(SWAP
OUT)and then brought back into memory for continued execution(SWAP IN).
Let us assume the user process is of size 1MB & the backing store is a standard hard disk with a
transfer rate of 5MBPS.
Transfer time=1000KB/5000KBpersecond
=1/5 sec=200ms
DEPTOFCSE
46. Consider the following page-reference string:[E](NOV/DEC2017)
1,2,3,4,5,6,7,8,9,10,11,12.
How many page faults and page fault ratio would occur for the FIFO page replacement algorithm?
Assuming there is four frames.
The number of page faults=12
The page fault ratio is 1:1
What are the physical addresses for the logical addresses 3400 and 0110? (APR/MAY
2019)
a. Illegal reference ; traps to operating system
b. 2300+0110 = 2410
50. What is thrashing? And how to resolve this problem?(APR/MAY2019)
In a virtual storage system (an operating system that manages its logical storage or memory in
units called pages), thrashing is a condition in which excessive paging operations are taking place.
DEPTOFCSE
A system that is thrashing can be perceived as either a very slow system or one that has come to
a halt.
One of the recommended ways to eliminate thrashing is to add more memory to main memory.
Another way of resolving the issue of thrashing is by adjusting the size of the swap file.
51. When trashing is used?(NOV/DEC2021)
Refer pervious
52. What is demand paging?(NOV/DEC2021)
Refer pervious
DEPTOFCSE
PART-B&C
22. Explain the concept of demand paging and the performance issue of short process Explain the issue
of demand paging [An] (NOV/DEC 2013)
23. With a neat sketch, explain how logical address is translated into physical address using paging
mechanism? [An] (APR/MAY 2015)
24. Write short notes on Memory Mapped Files.[U](APR/MAY2015) 25.(i)
Consider the following page reference string:
1,2,3,2,5,6,3,4,6,3,7,3,1,5,3,6,3,4,2,4,3,4,5,1
Indicate page faults and calculate total number of page faults and successful ratio for FIFO, optimal
and LRU algorithms. Assume there are four frames and initially all the frames are empty. [E]
(ii)Explain the effect of thrashing.[An](NOV/DEC2015)
26. Discuss the given memory management techniques with diagrams.
a. Partition Allocation Methods
b. Paging and Translation Look-aside Buffer.[An](NOV/DEC2015)
27.(i) Describe a mechanism by which one segment could belong to the address space of two different
processes.
(ii)Why are segmentation and paging sometimes combined into one scheme? Explain them in detail
with example. [An] (MAY/JUNE 2016)
28.(i) Under what circumstances do page faults occur? Describe the actions taken by the operating
system when a page fault occurs.
(ii) Discuss situations in which the least frequently used (LFU) page replacement
algorithm generates fewer page faults than the least recently used (LRU) page replacement
algorithms. Also discuss under that circumstances the opposite holds good. [An] (MAY/JUNE
2016)
29.(i) What is the copy-on-write feature, and under what circumstances is its use beneficial? Why
hardware support is required to implement this feature? (8) [An] (NOV/DEC 2016)
(ii) Consider a system that allocates pages of different sizes to its processes. What are the
advantages of such a paging scheme? What modifications to the virtual memory system provide this
functionality? (8) [U] (NOV/DEC 2016)
30.(i)Explain the difference between internal and external fragmentation(8)[An](NOV/DEC2016)
(ii) Discuss situations in which the most frequently used (MFU) page replacement algorithm generates
fewer page faults than the least recently used (LRU) page-replacement algorithm. Also discuss under
what circumstances the opposite holds.(8)[An](NOV/DEC2016)
DEPTOFCSE
DEPTOFCSE
39. (i)Compare paging with segmentation in terms of memory requirement by the address translation
structure in order to convert virtual addresses to physical memory.
(ii)Explain in detail about page replacement algorithm with suitable example.
(NOV/DEC2021)
40. With a neat diagram. Discuss about a mechanism of paging scheme.(NOV/DEC 2021)
DEPTOFCSE
PART-A
1) What is a file?[R]
A file is a named collection of related information that is recorded on secondary storage. A file
contains either programs or data. A file has certain "structure" based on its type.
2) Listthevariousfileattributes.(APRIL/MAY2011,NOV/DEC2012)(MAY/JUNE
2014)(APRIL/MAY 2015) [R]
A file has certain other attributes, which vary from one operating system to another, but typically
consist of these:
Identifier
Name
Type
Location
Size
Protection
Time
Date
User identification
3) What are the various file operations?(NOV/DEC2012,APRIL/MAY2015)[R]
The six basic file operations are:
Creating a file
Writing a file
Reading a file
Repositioning with in a file
Deleting a file
Truncating a file
4) What are all the information’s associated with an open file?[R]
Several pieces of information are associated with an open file which maybe:
File pointer
File open count
Disk location of the file
Access rights
DEPTOFCSE
DEPTOFCSE
11) What are the various layers of a file system?[R]
The file system is composed of many different levels. Each level in the design uses the feature of
the lower levels to create new features for use by higher levels.
i. Application programs
ii. Logical file system
iii. File-organization module
iv. Basic file system
v. I/O control vi Devices
12) What are the structures used in file-system implementation?(APRIL/MAY 2011) [R]
Severalon-diskandin-memorystructuresareusedtoimplementafilesystem
On-disk structure include Boot control block Partition block
Directory structure used to organize the files File control block (FCB)
In-memory structure include
File permissions
File dates(create, access, write)
File owner, group, ACL
File size
File
data blocks
File Control Block (FCB) is a file system structure in which the state of an open file is
maintained.
24) What are the two types of system directories?(MAY/JUNE2012)[R]
Device directory, describing physical properties of files.
File directory, giving logical properties of the files.
25) What is meant by polling?(MAY/JUNE2014) [R]
Polling is the process where the computer waits for an external device to check for its readiness.
The computer does not do anything else than checking the status of the device .Polling is often used
with low-level hardware. Example: when a printer connected via a parallel port the computer waits until
the next character has been received by the printer. These processes can be as minute as only reading 1
Byte. Polling is the continuous (or frequent) checking by a controlling device or process of other
devices, processes, queues, etc.
26) State any three disadvantages of placing functionality in a device controller, rather than in
the kernel.(MAY/JUNE 2014) [R]
Three advantages:-
29) What are the information contained in a boot control block and partition control
block?(MAY/JUNE 2014) [R]
Boot control block:
Contain information needed by the system to boot an operating from that partition. If the disk
does not contain an operating system, this block can be empty. It is typically the first block of a
partition. In UFS, this is called the boot block.
Partition Control block:
Contains partition details, such as number of blocks in the partition, size of the blocks, free block
count and free block pointers, and free FCB count and FCB pointers.
30) Define buffering.[R]
A buffer is a memory area that stores data while they are transferred between two devices or
between a device and an application. Buffering is done for three reasons
a. To cope with a speed mismatch between the producer and consumer of a data stream
b. To adapt between devices that have different data transfer sizes
c. To support copy semantics for application I/O
31) Define caching.[R]
A cache is a region of fast memory that holds copies of data. Access to the cached copy is more
efficient than access to the original. Caching and buffering are distinct functions, but sometimes a
region of memory can be used for both purposes.
DEPTOFCSE
32) Define spooling.[R]
A spool is a buffer that holds output for a device, such as printer, that cannot accept interleaved
data streams. When an application finishes printing, the spooling system queues the corresponding spool
file for output to the printer. The spooling system copies the queued spool files to the printer one at a time.
33) Define rotational latency and disk band width.(NOV/DEC 2010, MAY/JUNE 2013) [R]
Rotational latency is the additional time waiting for the disk to rotate the desired Sector to the
disk head.
Disk band width is the total number of bytes transferred, divided by the time between the first
request for service and the completion of the last transfer.
34) What are the various disk-scheduling algorithms? [R]
The various disk-scheduling algorithms are
First Come First Served Scheduling
Shortest Seek Time First Scheduling
SCAN Scheduling
C-SCAN Scheduling
35) What is the need for disk scheduling?(NOV/DEC2012)[R]
In operating systems, seek time is very important. Since all device requests are linked in queues,
the seek time is increased causing the system to slow down.
Disk Scheduling Algorithms are used to reduce the total seek time of any request.
36) What is low-level formatting?[R]
Before a disk can store data, it must be divided into sectors that the disk controller can read and
write. This process is called low-level formatting or physical formatting. Low-level formatting fills the
disk with a special data structure for each sector. The data structure for a sector consists of a header, a
data area, and a trailer.
37) What is the use of boot block?[R]
For a computer to start running when powered up or rebooted it needs to have an
initialprogramtorun.Thisbootstrapprogramtendstobesimple.Itfindsthe operating system on the disk loads
that kernel into memory and jumps to an initial address to begin the operating system execution. The
full boot strap program is stored in a partition called the boot blocks, at fixed location on the disk. A
disk that has boot partition is called boot disk or system disk.
38) What is sectors paring?[R]
Low-level formatting also sets aside spare sectors not visible to the operating system. The
controller can be told to replace each bad sector logically with one of the spare sectors.
DEPTOFCSE
This scheme is known as sectors paring or forwarding.
39) What is seek time?(MAY/JUNE2012)[R]
Seek time: the time to position heads over a cylinder (~8mseconaverage).
40) What are storage area networks?(April/May2011)[R]
A storage area network (SAN) is a dedicated network that provides access to consolidated, block
level data storage. SANs are primarily used to make storage devices, such as disk arrays, tape libraries,
and optical jukeboxes, accessible to servers so that the devices appear like locally attached devices to
the operating system.
41) Write a brief note on RAID.(MAY/JUNE2013)[R]
RAID (redundant array of independent disks; originally redundant array of inexpensive disks) is
a way of storing the same data in different places (thus, redundantly) on multiple hard disks. By placing
data on multiple disks, I/O(input/output) operations can overlap in a balanced way, improving
performance. Since multiple disks increase the mean time between failures (MTBF), storing data
redundantly also increases fault tolerance.
42) What Characteristics determine the disk access speed?(MAY/JUNE2012) [R]
Seek time
Rotational latency
Command processing time
Settle time
43) Give the importance of Swap space Management.[R](NOV/DEC2012, APR/MAY2010,
NOV/DEC 2010)
Swap-space management: Swap-space management is low- level task of the operating system.
The main goal for the design and implementation of swap space is to provide the best throughput for the
virtual memory system.
Swap-space use: The operating system needs to release sufficient main memory to bring in a
process that is ready to execute. Operating system uses this swap space in various ways. Paging systems
may simply store pages that have been pushed out of main memory. UNIX operating system allows the
use of multiple swap spaces. These swap space are usually put on separate disks, so the load placed on
the I/O system by paging and swapping can be spread over the systems I/O devices.
Swap-space location: Swap space can reside in two places:
1. Separate disk partition
51) Identify the two important functions of Virtual File System (VFS) layer in the concept of file
system implementation. (Nov/Dec 2015) [R]
Linux VFS provides a set of common functionalities for each files system, using function
pointers accessed through a table. The same functionality is accessed through the same table position for
all file system types, though the actual functions pointed to by the pointers may be files system-specific.
Common operations provided include open( ), read( ), write( ), and m map( ).
52) How does DMA increase system concurrency?(May/Jun2016)[An]
DMA increases system concurrency by allowing the CPU to perform tasks while the DMA system
transfers data via the system and memory buses. Hardware design is complicated because the DMA
controller must be integrated into the system and the system must allow the DMA controller to be a bus
master.
53) Whyrotationallatencyisusuallynotconsideredindiskscheduling?(May/Jun 2016)[An]
Most disks do not export the rotational position information to the host. Even if they did, the time
for this information to reach the scheduler would be subject to imprecision and the time consumed by
the scheduler is variable, so the rotational position information would become incorrect. Further, the
disk requests are usually given in terms of logical block numbers, and the mapping between logical
blocks and physical locations is very complex.
54) Define C-SCAN scheduling (NOV/DEC2016)[R]
In the C-Scan all the Processes are arranged by using Some Circular List. Circular List is that in
which there is no start and end point of the list means the End of the List is the Starting Point of the list.
In the C-Scan Scheduling the CPU will search for the Process from Start to end and if an End has Found
then this again start from the Starting Process.
55) Why it is important to scale up system –bus and device speeds as CPU speed increases?
(NOV/DEC 2016)[An]
Consider a system which performs 50% I/O and 50% computers. Doubling the CPU Performance on
this system would increase the total system performance by only 50%.
DEPTOFCSE
Doublingbothsystemaspectswouldincreaseperformanceby100%.Generally,it is important to remove
the current system bottle neck and to increase overall system
performanceratherthanblindlyincreasingtheperformanceofindividualsystemcomponents.
56) Supposethatthediskrotatesat7200rpm.Whatistheaveragerotational latency of the disk drive?
(APR/MAY 2017) [E]
Average disk access time=average seek time+ average rotational delay + transfer time +
controller overhead.
Therefore We can seek over 195 tracks (about 4% of the disk)during an average rotational latency
59) Enlist different types of directory structure.[R](NOV/DEC2017)
There are many types of directory structure in Operating System. They are as follows:-
1) Single Level Directory
2) Two Level Directory
3) Tree Structured Directory
4) Acyclic Graph Directory
5) General Graph Directory
DEPTOFCSE
(ii) Could a RAID level 1 organization achieve better performance for read
requeststhanaRAIDlevel0organizations?If so, how?[An](MAY/JUNE 2016)
30) (i) Describe some advantages and disadvantages of using SSDs as a caching tier and as a disk-drive
replacement compared with using only magnetic disks. (8) [An] (NOV/DEC 2016)
ii)Discuss how performance optimizations for file systems might result in difficulties in maintaining
the consistency of the systems in the event of computer crashes (8) [U] (NOV/DEC 2016)
31 (i)DistinguishbetweenaSTREAMSdriverandaSTREAMSmodule(8)[An](NOV/DEC 2016)
(ii)Could a RAID level organization achieve better performance for read requests than a RAID
level 0 organizations? If so, how? Explain. (8) [An](NOV/DEC 2016)
32 (i)Discuss about the various file access methods(7)[U](APR/MAY2017)
(ii)With neat sketch explain about the Directory structure, File Sharing (6)[U] (APR/MAY2017)
33 )(i) Explain about kernel I/O subsystem and transforming I/O to hardware operations (7) [U]
(APR/MAY 2017)
(ii) On a disk with 1000 cylinders, numbers 0 to 999, Compute the number of tracks the disk arm must
move to satisfy the entire request in the disk queue. Assume the last received was at track 345 and the
head is moving towards track 0.The queue in FIFO order contains requests for the following tracks.
123,874,692,475,105 and 376.Find the seek length for the following scheduling algorithm.
(1) SSTF (2) LOOK (3) CSCAN [An] (APR/MAY 2017)
34) (i)In a variable partition scheme the operating system has to keep track of allocated and free space.
Suggest a means of achieving this. Describe the effects of new allocations and process terminations in
your suggested scheme.(5) [An](NOV/DEC 2017)
(ii)What are different allocation methods in disk storage? Explain with neat sketch.(8)
35) Consider a disk queue with requests for I/O to blocks on cylinders 93,183, 37,122, 14, 124, 65, 67
Ifthediskheadisstartat53, then find out the total head movement with respect to FCFS, SSTF, SCAN,
C-SCAN and LOOK scheduling.(13) [E] (NOV/DEC 2017)
36) What are the various disk space allocation methods? Explain any two in detail.[U](APR/MAY2018)
37) State and explain the FCFS, SSTF and SCAN disk scheduling with examples.[U](APR/MAY2018)
DEPTOFCSE
38. Suppose that a disk drive has 5000 cylinders, numbered 0 through 4999. The drive is serving a
request at cylinder 143. The queue of pending requests, in FIFO order is 86, 1470, 913, 1774, 948,
1509, 1022, 1750, 130 Starting from the head position what is the total distance(in cylinders)that the
disk arm moves to satisfy all the pending requests for each
39. The following disk-scheduling algorithms? FCFS, SSTF, SCAN, LOOK, C- SCAN C-LOOK.
Explain the pros and cons of all disks scheduling algorithms. (13) (APR/MAY 2019)
40. (i)Explain in detail the various allocation methods with their pros and cons. (8)
a. Brief the various procedures need to be followed‗ in disk management.(5)(APR/MAY2019)
41.(i) What do you mean by directory structure? Also discuss Tree-Structure Directories and Acyclic-
Graph Directories. (7) (NOV/DEC 2021)
(ii) Describe in details about file system implementation and file allocation method (6).
42. Suppose that a disk drive has 200 cylinder, numbered 0 to 199. The work queue is:
23,89,132,42,187. Determine the total distance for the following disk scheduling algorithms
(i)SCAN (ii) LOOK (iii)C-SCAN (iv)C-LOOK
PART-A
1) What is Linux distribution?[R]
A Linux distribution includes all the standard components of the Linux system, plus a set of
administrative tools to simplify the initial installation and subsequent upgrading of Linux and manage
installation and removal of other packages on the system.
2) What is the use of User mode?[R]
Under Linux, no user code is built into the kernel. Any operating-system-support code that does
not need to run in kernel mode is placed into the system libraries and runs in user mode.
3) What are the components of kernel mode[R]
The module support under Linux has four components:
1. The module-management system allows modules to be loaded into memory and to
communicate with the rest of the kernel.
2. The module loader and unloader, which are user-mode utilities, work with the module-
management system to load a module into memory.
3. The driver-registration system allows modules to tell the rest of the kernel that a new driver
has become available.
4. A conflict-resolution mechanism allows different device driver store serve hardware
resources and to protect those resources from accidental use by another driver.
4) What is process Identity?[R]
Each process has a unique identifier. The PID is used to specify the process to the operating system
when an application makes a system call to signal, modify, or wait for the process. Additional identifiers
associate the process with a process group (typically, a tree of processes forked by a single user
command and login session.
5) Define DNS[R]
The Domain Name System (DNS) provides host-name-to-network-address translations for the
entire Internet. Before DNS became widespread, files containing the same information were sent via e-
mail or ftp between all networked hosts.
DEPTOFCSE
6) What is virtualization?[R]
Virtualization, in computing, refers to the act of creating a virtual (rather than actual) version of
something, including but not limited to a virtual computer hardware platform, operating system (OS),
storage device, or computer network resources.
7) What is pluggable authentication modules [R]
The pluggable authentication modules (PAM) system is based on a shared library that can be
used by any system component that needs to authenticate users. An implementation of this system is
available under Linux. PAM allows authentication modules to be loaded on demand as specified in a
system-wide configuration file. If a new authentication mechanism is added at a later date, it can be
added to the configuration file, and all system components will immediately be able to take advantage
of it. PAM modules can specify authentication methods, account restrictions, session setup functions,
and password-changing functions (so that, when users change their passwords, all the necessary
authentication mechanisms can be updated at once).
8) What is the use of fire wall manager[R]
The firewall manager maintains a number of separate firewall chains and allows a skbuff to be
matched against any chain. Chains are reserved for separate purposes: one is used for forwarded
packets, one for packets being input to this host, and one for data generated at this host. Each chain is
held as an ordered list of rules, where a rule specifies one of a number of possible firewall-decision
functions plus some arbitrary data for matching purposes.
3. Experience is welcome, but you at least need to have some hands-on experience of system
management, system setup and managing Linux or Solaris based servers as well as configuring them.
Knowledge in shell programming and architecture is valued very much in the job market. If you know
Buorne or Korn well, you can even score a high-paying salary with minimal experience.
4. Storage technologies like FC, NFS or iSCSI is great, while knowledge regarding backup
technologies is a must for a system administrator.
13) State the components of a Linux System?(May/Jun2016)[R]
Kernel :The kernel is responsible for maintaining all the important abstractions of the operating
system, including such things as virtual memory and processes.
System libraries: The system libraries define a standard set of functions through which applications
can interact with the kernel. These functions implement much of the operating-system functionality that
does not need the full privileges of kernel code.
System utilities: The system utilities are programs that perform individual, specialized management
tasks. Some system utilities are invoked just once to initialize and configure some aspect of the system.
14) Define the function of Caching-only servers.(May/Jun2016)[R]
All DNS servers cache answers to queries they receive from outside their own zone of authority.
A cache-only DNS server is not authoritative for any zone. Related Topics: DNS root servers: Root
servers are critical to the function of a DNS server that is directly connected to the Internet.
15) What is virtualization?(NOV/DEC2016)[R]
In computing, virtualization refers to the act of creating a virtual (rather than actual) version of
something, including virtual computer hardware platforms, storage devices, and computer network
resources.
DEPTOFCSE
16) Whatschedulingalgorithmisusedinlinuxoperatingsystemtoschedulejobs?
(NOV/DEC2016)[R]
The Completely Fair Scheduler (CFS) Algorithm is used in Linux operating system to schedule
jobs.
17) Mention any two features of Linux file systems.(APR/MAY2017)[U]
Portable
Open Source
Multiuser
Multi Programming
19) Enlist the advantages of using kernel modules in Linux(APR/MAY2017)[U]
Loading and unloading a module is much more flexible and faster than recompiling a kernel and
rebooting. You can try different options each time you load a module. Most drivers that handle
hardware will take options for I/O addresses, IRQ or DMA numbers, plus more esoteric options
like full or half duplex. When you have problems getting a card to run correctly, the ability to try
different options can save hours.
Makes it easier to maintain multiple machines on a single kernel base.
20) List the advantages of Linux OS.[U](NOV/DEC2017)
Advantages of Linux OS:
Low cost
Stability
Performance
Security , Flexibility, Compatibility
21) Write the purpose of using virtualization.[R](NOV/DEC2017)
Operating system virtualization provides application-transparent virtualization to users by
decoupling applications from the OS. The OS virtualization technique offers granular control at the
application level by facilitating the transparent migration of individual applications. OS virtualization
can also be used to migrate critical applications to another running operating system instance.
22) List the advantages and disadvantage of writing an operating system in high level language
such as C.[R] (APR/MAY 2018)
The code can be written faster, is more compact, and is easier to understand and debug. In
addition, improvements in compiler technology will improve the generated code for the entire operating
system by simple recompilation. Finally, an operating system is far easier to port to move to some other
hardware if it is written in a higher- level language
DEPTOFCSE
23) What is handle ? How does a process obtain a handle?[U](APR/MAY2018)
The handle is an integer value in the operating system assigned to the associated process when
the process was started. The system uses this handle to keep track of process attributes. An application
can obtain a handle to a process that can be used as a parameter to many process-information and
control functions.
24) Write short notes on driver registration in Linux.(APR/MAY2019)
The driver registration allows modules to tell the rest of the kernel that a new driver has become
available.
25) List out the methods used to recover from the deadlock.(APR/MAY2019)
We can use a protocol to prevent or avoid deadlocks, ensuring that the system will never
Enter a deadlocked state.
a.We can allow the system to enter a deadlocked state, detect it, and recover.
b. We can ignore the problem altogether and pretend that deadlocks never occur in the system.
26) What are the Components of a Linux System?
Every OS has component parts, and the Linux OS also has the following components parts:
a. Boot loader
b. OS Kernel
c. Background services
d. OS Shell
e. Graphics server
f. Desktop environment
g. Applications.
27) Which layer of iOS contains fundamental system services for apps?
The Core Services layer contains the fundamental system services that all applications use, The
Core Services layer provides an abstraction over the services provided in the Core OS layer. It provides
fundamental access to iOS services and consists of the following components:
Collections
Address Book
Networking
File Access
SQLite
Core Location
Net Services
Threading
Preferences
URL Utilities
DEPTOFCSE
PART-B&C
1. Explain in detail about the concepts of Linux system. [U]
2. Explain in detail about virtualization [U]
3. Explain in detail about setting up a Linux main frame server[An]
4. Explain in detail about Linux host and adding guest OS[U]
5. Explain the significance and steps involved in setting up Xen, VMware software‘s on Linux host
for successful virtualization in detail. [An] May/June 2015
6. Briefly discuss about the requirements to become a Linux system administrator.
[An]May/June2015
7. DiscussaboutthestepsinvolvedintheinstallationofaLinuxMultifunctionserver.
[An]May/June2015]
8. Write a short note on Linux Network Services.[U]May/June2015
9. Write about LINUX architecture and LINUX kernel with neat sketch.[U] (Nov/Dec 2015)
10. Explain in detail about LINUX multifunction server, NSVM ware on LINUX host.
[An] (Nov/Dec 2015) 11.
(i)Whyislivemigrationpossibleinvirtualenvironmentsbutmuchlesspossiblefora native operating system?
(ii)What are the primary goals of the conflict-resolution mechanism used by the Linux kernel for
loading kernel modules? [An] (May/June 2016)
11. Explain in step-by-step procedure for setting up a Linux multifunction server.[An] (May/June 2016)
12 .(i) Discuss three advantages of dynamic (shared) linkage of libraries compared with static linkage.
Describe two cases in which static linkage is preferable(8)[U] (NOV/DEC 2016)
(ii)Explain the step by step procedure for setting up a local network services. (8)[U](NOV/DEC2016)
13. Explain the concepts of domain name system and multi function server(13)[U](APR/MAY 2017)
14. Write short notes on Linux kernel and virtualization with neat sketch.(13)[U] (APR/MAY 2017)
15. What do you mean by term synchronization? What is semaphore? Explain how semaphore can used
as synchronization tool. Consider a coke machine that has 10 slots. The producer is the delivery person
and the consumer is the student using the machine. it uses the following three semaphores:
Semaphore mutex
Semaphore full Buffer /*Number of filled slots */ Semaphore
20. i)What optimization were used to minimize the discrepancy between CPU and I/O speeds on
early computer systems. [R](8)
ii) What manages cache in Windows XP? How is cache managed?(5)[R] (APR/MAY 2018)
21. Discuss the process and memory management in Linux.(13)(APR/MAY2019)
22. Explain the architecture of iOS. Discuss the media and service layers clearly.(13)
(APR/MAY2019)
23. (i)Explain in details about how process is managed and scheduled in linux?
(ii)Discuss about Inter Process Communication (IPC)in Linux. (NOV/DEC2021)
24. With frame work explain the working function of android operating system architecture. Compare
the feature of IoS and android. (13) (NOV/DEC 2021)
*************