0% found this document useful (0 votes)
170 views2 pages

(6055) - 301 T.Y. B.Sc. (Computer Science) Cs - 351: Operating Systems - I (2019 Pattern) (Semester - V) (Paper - I) (CBCS)

This document is an examination paper for T.Y. B.Sc. (Computer Science) on Operating Systems, containing a total of 5 questions. It includes multiple-choice questions, short answer questions, and detailed explanation questions on various topics such as process states, scheduling algorithms, and critical section problems. The exam is designed to assess knowledge and understanding of operating systems concepts, with a total duration of 2 hours and a maximum score of 35 marks.

Uploaded by

KARTIK MALVE
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
170 views2 pages

(6055) - 301 T.Y. B.Sc. (Computer Science) Cs - 351: Operating Systems - I (2019 Pattern) (Semester - V) (Paper - I) (CBCS)

This document is an examination paper for T.Y. B.Sc. (Computer Science) on Operating Systems, containing a total of 5 questions. It includes multiple-choice questions, short answer questions, and detailed explanation questions on various topics such as process states, scheduling algorithms, and critical section problems. The exam is designed to assess knowledge and understanding of operating systems concepts, with a total duration of 2 hours and a maximum score of 35 marks.

Uploaded by

KARTIK MALVE
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Total No. of Questions : 5] SEAT No.

:
P-1300 [Total No. of Pages :2

[6055]-301
T.Y. [Link]. (Computer Science)
CS - 351 : OPERATING SYSTEMS - I
(2019 Pattern) (Semester - V) (Paper - I) (CBCS)
Time : 2 Hours] [Max. Marks : 35
Instructions to the candidates :
1) All questions are compulsory.
2) Figures to the right indicate full marks.
3) Assume suitable data if necessary.

Q1) Attempt any EIGHT of the following (out of ten) : [8 × 1 = 8]


a) What is shell?
b) What is thread?
c) List types of system calls.
d) State role of medium term schedular.
e) What is CPU - I/O burst cycle?
f) What is race condition?
g) Define response time?
h) Define Semaphore.
i) What is page table?
j) What is segmentation?
Q2) Attempt any four of the following : (out of five) [4 × 2 = 8]
a) What is operating system? List objectives of operating system.
b) Define critical section problem. Explain in detail.
c) Compare LFU and MFU with two points.
d) What is purpose of scheduling algorithm.

P.T.O.
Q3) Attempt any two of the following : (out of three) [2 × 4 = 8]
a) With the help of diagram describe process states.
b) Consider following set of processes CPU time given in milliseconds.
Illustrate execution of processes using FCFS and preemptive SJF CPU
scheduling algorithm and calculate turn around time, waiting time, average
turn around time, average waiting time.
Processes Burst time A.T
P0 5 1
P1 3 0
P2 2 2
P3 4 3
P4 8 2
c) What is fragmentation? Explain with all its types.

Q4) Attempt any two of the following :(out of three) [2 × 4 = 8]


a) Describe PCB with all its fields.
b) Which three requirements must be satisfied while designing a solution to
critical section problem? Explain each in detail.
c) Consider the following reference string
1,2,3,4,2,1,5,6,2,1,3.
Assume 3 frames. Find the number of page faults according to FIFO,
OPT. page replacement algorithms.
Q5) Attempt any one of the following :(out of two) [1 × 3 = 3]
a) Describe the term distributed operating system. State its advt. and
disadvantages.
b) With the help of diagram describe swapping.


[6055]-301 2

Common questions

Powered by AI

Segmentation addresses limitations of paging by allowing a program to be divided into variable-sized segments, reflecting the logical divisions such as functions or objects. Unlike paging, which divides memory into fixed-size pages, segmentation aligns more closely with the program's structure and logical usage, which can result in more efficient use of memory and less internal fragmentation. However, segmentation can still suffer from external fragmentation, unlike paging systems which are immune to it .

The medium-term scheduler plays a vital role in managing system processes by temporarily removing processes from main memory to reduce the degree of multiprogramming and later reintroducing them. This process is known as swapping. The medium-term scheduler helps improve system responsiveness and efficient utilization of CPU by managing the swapping process and maintaining an optimal number of processes in memory, which enhances performance and resource allocation .

FCFS is a non-preemptive scheduling algorithm that processes requests sequentially based on arrival time, which can result in long waiting times if a short job is queued behind a long one, known as the 'convoy effect.' Conversely, preemptive SJF selects processes with the shortest burst time, potentially reducing average waiting and turnaround times. However, this requires knowing or predicting the burst time accurately, which can be challenging. Preemptive SJF generally reduces these times compared to FCFS but may increase CPU scheduling complexity .

Distributed operating systems offer several advantages, such as resource sharing, improved performance through load balancing, and increased reliability and availability, as failure in one system in a distributed network does not impact other systems. On the downside, they present challenges such as increased complexity in design and management, potential issues with consistency and data corruption across distributed nodes, and added security concerns because multiple systems are involved .

Fragmentation in memory management occurs when storage space is used inefficiently, reducing capacity or performance. There are two main types: External Fragmentation, which happens when free memory is split into small blocks and scattered throughout the system, preventing allocation for larger blocks; and Internal Fragmentation, which occurs when memory blocks are larger than necessary, leading to wasted space within the allocated block. Both types degrade system performance by reducing efficient memory usage .

The critical section problem in operating systems revolves around ensuring that multiple processes do not have concurrent access to shared resources to prevent data corruption. The challenges include avoiding race conditions and ensuring process synchronization. The solution must satisfy three requirements: Mutual Exclusion, which ensures that only one process enters the critical section at a time; Progress, which guarantees that processes will eventually be able to enter the critical section if it is free; and Bounded Waiting, which ensures that no process waits indefinitely to enter its critical section .

LFU and MFU differ primarily in the way they manage page replacement. LFU replaces the page with the lowest access frequency, meaning pages used less often are swapped out. Conversely, MFU replaces the page with the highest access frequency, under the assumption that pages frequently accessed in the past are less likely to be needed again. The impact on memory management is significant: LFU may lead to high page turnovers in systems with varied access patterns, while MFU may protect pages that are in frequent use from premature replacement .

A race condition occurs when multiple system processes or threads attempt to modify shared data concurrently, leading to unpredictable and erroneous outcomes. Resolving race conditions is critical in operating systems to ensure data integrity and consistent system behavior, as they can cause applications to exhibit erratic behavior or crash. Effective synchronization mechanisms, such as semaphores and locks, are employed to coordinate access to shared resources and prevent such conditions .

The CPU-I/O burst cycle concept refers to the alternating sequences of CPU execution and I/O operations a process experiences during its execution. Processes typically require CPU bursts for computation interspersed with I/O bursts for data input or output operations. This cycle is significant in process scheduling because it helps determine which processes should be given priority, as CPU-bound processes benefit from different scheduling policies compared to I/O-bound processes. Understanding this cycle allows optimized scheduling decisions, balancing system throughput and responsiveness .

A semaphore is a synchronization primitive used in operating systems to control access to a common resource by multiple processes. It enables process synchronization by implementing two atomic operations, wait and signal, to manage the resource access count. Semaphores can be used to solve critical section problems by ensuring that a limited number of processes can access a resource simultaneously, thus preventing race conditions and enhancing process coordination .

You might also like