OS
OS
Need :
Handling interrupts
To switch from user mode to kernel mode
Input Output management
For protecting the operating system from errant users
18 Can traps be generated intentionally by a user program? If so, for what purpose.
A trap can be generated intentionally by a user program. It can be used to call
operating system routines or to catch arithmetic errors.
19 Why do some systems store the operating system in firmware, while others store it
on disk?
For certain devices, for handheld PDA‘s and cellular telephones, a disk with a file
system may be not being available for the device. In this situation the OS must be
stored in firmware.
20 What are the advantages of peer to peer systems over client server systems? (April
2016)
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, ifserver own.
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, maintaining this type of network is comparatively very
less
Security : Rules defining security and access rights can be defined at the time of
set-up of server.
28 Write the difference between Batch Systems and Time Sharing Systems.(Nov 2015)
Batch Systems Time Sharing Systems
Batch systems focuses to improve the CPU Time Sharing Systems focuses to improve
Utilization multi user interactive environment
Batches the jobs (programs) together and Handle multiple-interactive jobs, by
executes job in sequence. Thus reducesidle sharing processor time among multipleusers.
time of CPU Multiple users access via terminals
Eg IBM SYS, IBM OS for 7090/ 7094 Eg: Compatible time sharing systems
(CTSS)
29 Differentiate system calls and system programs.( APRIL/MAY 2021)
The system calls are list of the function that will be call in section between user and kernel.
But the system program is the program that can do system works like : Change system
settings.
PART-B
1 Explain in detail computer system organization.
2 With neat sketch discuss Computer System Overview (Nov 2015) ( Apr 2022)
3 Explain about various managements of operating system and responsibilities
4 Discuss about various services provided by operating system. ( APRIL/MAY 2021)
5 List and explain the classification of system calls and its significance (Nov 2018)
6 Describe System Calls, System Programs in detail with neat sketch and OS
Generation (April 2017, Dec 2021)
7 Enumerate different operating system structures and explain with neat sketch (April2017)
(May 2019)
8 Discuss the following ( Apr 2022)( Dec 2021)
a) Operating System functions
b) Cache Memory
c) Direct Memory
9 Discuss the essential properties of the following types of systems
(i) Time sharing systems.
(ii) Multiprocessor systems
(iii) Distributed systems
(iv) Clustered systems
10 With a neat diagram, explain the memory hierarchy and the performance of various levels of
storage system.
34 What are the differences between user level threads and kernel level threads? Under
what circumstances is one type better that the other?(Nov 2015) (April 2016)
User Level Threads Kernel Level Threads
Threads that run user programs and Threads that runs the kernel operations
applications are user level threads and kernel programs are called as kernellevel
threads
User threads are supported above the kernel threads are supported and
kernel and are managed without kernel managed directly by the operating system.
support
In one-one thread model, user thread requires creating the corresponding kernel
thread. Because the overhead of creating kernel threads can burden the performance
of an application
In many-one thread model developers can create as many user threads as
necessary, and the corresponding kernel threads can run in parallel on a
multiprocessor.
PART-B
1 What is the need for process synchronization? Explain critical section problem with a
two process. Discuss about Petersons solution for two process
2 i. What is a race condition? Explain how a critical section avoids this condition.
ii. Discuss about hardware Synchronization and Write the algorithm using test and set
instruction that satisfy all the critical section requirements(May 2019)
3 i. Give a solution for readers writers problem using conditional critical region
ii. Discuss about producer Consumer Problem and suggest a solution for this.
4 Discuss about the problems in solving Dining Philosopher problem using semaphore and
how will you solve the above problem using monitors
The processes are assumed to have arrived in the order P1, P2, P3, P4, P5, all at time 0.
a. Draw four Gantt charts illustrating the execution of these processes using FCFS,
SJF(preemptive & non-premptive), priority (preemptive & non-premptive) (a smaller
priority number implies a higher priority), and RR (quantum = 2) scheduling.
b. Find the average waiting time and turnaround time using each of the methods.
c. Which results in the minimal average waiting time (over all
processes)?
9 Consider the following snapshot of a system(May 2019)(Apr 2022 ) (Dec 2021)
Process 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
Answer the following question using Banker‘s algorithm
(i) Illustrate that the system is in safe state by demonstrating an order in which the processes
may complete.
(ii) If a request from a process P1 arrives for (1,1,0,0) , Can the request be granted
immediately?
(iii) If the request from P4 arrives for (0,0,2,0) , Can the request be granted immediately
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
What are the physical addresses for the logical addresses 3400 and 0110?
Physical addresses for the logical addresses 3400 is 1727 and 0110 is 329
13 Will optimal page replacement algorithm suffer from Belady’s anomaly? Justify your
answer. (April 2017)
Optimal page replacement algorithm does not suffer from Belady‘s anomaly. Because optimal
page replacement algorithm follows the stack property. It replaces the page that will not be
used for the longest time. Belady's anomaly occurs when a page- replacement algorithm evicts
a page that will be needed in the immediate future.
Free-Space Management
Since disk space is limited, we need to reuse the space from deleted files for newfiles,
if possible.
To keep track of free disk space, the system maintains a free-space list. The free-space
list records all free disk blocks.
To create a file, we search the free-space list for the required amount of space and
allocate that space to the new file.
When a file is deleted, its disk space is added to the free-space list.
29 Identify the 2 important functions of Virtual file System layer in the concept of
system implementation.(Nov 2015)
The VFS layer serves two important functions:
It separates file-system-generic operations from their implementation by defining a
clean VFS interface. Several implementations for the VFS interface may coexist on the
same machine, allowing transparent access to different types of file systems mounted
locally.
It provides a mechanism for uniquely representing a file throughout a network. The
VFS is based on a file-representation structure, called a vnode, that contains a
numerical designator for a network-wide unique file.
30 What is SSD?(May 2019)
An SSD is nonvolatile memory that is used like a hard drive. SSDs have the same
characteristics as traditional hard disks but can be more reliable because they have no moving
parts and faster because they have no seek time or latency. It consumes less power. It is more
expensive per megabyte than traditional hard disks, have less capacity than the larger hard
disks and may have shorter life spans than hard disks. So their uses are limited. One use for
SSDs is in storage arrays, where they hold file-system metadata that require high performance.
SSDs are also used in some laptop computers to make them smaller, faster and more energy
efficient.
3 Explain traditional Unix process model and Linux‘s threading model in process
management? (Dec 2021)
4
Write notes on Linux process scheduling algorithms and its kernel synchronization.
5
Discuss the Process and Memory management in Linux.(May 2019)( Apr 2022)
9 i)Discuss about the components of Android mobile OS architecture with SDK Framework. (7)
ii) Explain about how scheduling is handled in Linux system. (6) (APRIL/MAY 2021)
10 i)With a neat diagram explain the components of a Linux system. (7)
ii) Describe about inter process communication in Linux system.(6) (APRIL/MAY 2021)