Open navigation menu
Close suggestions
Search
Search
en
Change Language
Upload
Sign in
Sign in
Download free for days
0 ratings
0% found this document useful (0 votes)
26 views
5 pages
PP B20L2S1 IN2310 2022-Dec
Uploaded by
prathibhaamara999
AI-enhanced title
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here
.
Available Formats
Download as PDF or read online on Scribd
Download
Save
Save PP_B20L2S1_IN2310_2022-Dec For Later
Share
0%
0% found this document useful, undefined
0%
, undefined
Print
Embed
Report
0 ratings
0% found this document useful (0 votes)
26 views
5 pages
PP B20L2S1 IN2310 2022-Dec
Uploaded by
prathibhaamara999
AI-enhanced title
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here
.
Available Formats
Download as PDF or read online on Scribd
Carousel Previous
Carousel Next
Download
Save
Save PP_B20L2S1_IN2310_2022-Dec For Later
Share
0%
0% found this document useful, undefined
0%
, undefined
Print
Embed
Report
Download
Save PP_B20L2S1_IN2310_2022-Dec For Later
You are on page 1
/ 5
Search
Fullscreen
176 IN 2310 UNIVERSITY OF MORATUWA Faculty of Information Technology bd BSc. in Information Technology B.Sc. (Hons.) in Information Technology and Management qe Level 2- Semester 1 Examination IN 2310 - OPERATING SYSTEMS Time Allowed: 3 hours November 2022 INSTRUCTIONS TO CANDIDATES . This paper contains 4 questions on 5 Pages including this page. . The total marks obtainable for this examination is 100. The marks assigned for each question & sections there of are included in square brackets. .. This examination accounts for 60% of the module assessment. This is a close book examination. ‘Non programmable calculators are allowed. Start answering cach question using a new page. Answer ALL questions. NV Raney ADDITIONAL MATERIAL None Page 1 of SIN 2310 [Total Marks allocated: 100 Marks]-Answer All Questions uest @ i) Briefly explain what is meant by the term ‘Operating System (OS).’ i) ly exp) yy Operating [2 Marks] ii) Discuss the requirements and objectives of an OS. [3 Marks] (b) List four (4) differences between traps and interrupts. Explain the usage of each of them. [4 Marks] (©) Compare & contrast Windows Operating System with Linux Operating System under two (2) criteria. [4 Marks] @ i) Whatis a system call? [2 Marks] ii) List three different types of system calls. [3 Marks] iii) Explain the usage of a system call with a suitable example. [4 Marks] (©) List three (3) advantages of the microkemel operating system design. [3 Marks} Question 2 (a) Briefly explain the difference between the techniques paging and segmentation in terms of memory management. [I Marks] (b) Figure | shows the situation of memory allocation of a system having processes A, C, F, G, and H with free slots (holes) indicated in shades. 0 100 400 450 550 650 900 1086-1186 1586 Fe] » El |» Fea Figure 1: Memory Allocation Continued. Page 2 of 5IN 2310 Which of the above holes in the memory will be taken by the new processes I (200kB) and process J (300kB) when using each of the following memory replacement policies? [3*2 Marks] i) First fit ii) Best fit iii) Worst fit (©) Explain the difference between internal and external fragmentations. [3 Marks] (@ Describe each of the following page replacement algorithms: i) Least Recently Used (LRU) ii) First In First Out (FIFO) iii) Optimal Page replacement [3x2 Marks] (c) Consider the ‘reference string’ given in Table 1. Assuming four pages can be in the memory at a time per process, find out the numter of page faults for each of the replacement algorithms LRU, FIFO, and Optimal page replacement and compare them. [3*3 Marks] (Al4i2 4[2]s]4]2] Table 1: Reference String Question 3, (a) Define the following terms with respect to an Operating System. i) User level thread ii) Semaphores [2x1 Marks} (b) Write down the pseudo-code for the solution of the classic producer-consumer problem using semaphores. [4 Marks] ContinuedIN 2310 (©) Briefly explain the term ‘race condition,” [2 Marks] (@) In an operating System, there is a shared variable “x”. The relevant functions for “addnum” and “ addsum” are given below. int addnum (int x) int addsum (int x) { int, ad = 0, remainder; intn, sum =1, ¢; n=%; for (c= 1; c<=n; cH) while (t> 1) { remainder = t % 10; ad = ad + remainder; { sum = sum + sum * ¢; t=t/10; } } x=ad; x= sum; return x; return x; } Answer the following questions using the above description, 1 Explain the race condition using the above two functions, [4 Marks} ii, Identify the critical section for each functior nm and write the necessary code Segments to demonstrate solutions for the criti ical region using: a. Swap b. Semaphores [10 Marks} (©) Explain the difference between logical address and physical address G Marks] Continued, Page 4 of 5IN 2310 Question 4 (a) Describe the five states of a process and clearly mention the possible transitions in the five-state process model with the aid of a dicgram. [7 Marks] (b) Illustrate through a suitable example, how the ‘Shortest Job First’ scheduling algorithm works. Further explain, under which concition the algorithm provides an optimal solution. [7 Marks] (©) Briefly describe each of the following factors considered as performance criteria in order to achieve efficient processor management: i) Tumaround time ii) Wait time [2*2 Marks] (@ Consider a system with one CPU and five processes. Hach process hasan arrival time and burst time as given in the following table: Process | Arrival Time | Burst Time _| Po 0 80 | Pi 10 20 Po 10 10 Ps 80 20 Pa 85 50. ji) Supposing a system uses Round Robin scheduling with a quantum of 15, create a Gantt chart illustrating the execution of these processes. [4 Marks] ii) What is the turnaround time for processes Ps and Pa? [I Marks] iii) What is the average waiting time for the processes? [2 Marks] END OF THE PAPER 5 ofS
You might also like
Os Quetion Bank
PDF
No ratings yet
Os Quetion Bank
8 pages
Operating System
PDF
No ratings yet
Operating System
3 pages
Os 1
PDF
No ratings yet
Os 1
2 pages
Os Paper All
PDF
No ratings yet
Os Paper All
6 pages
OSp R15 Prev Q.papers JNTUH
PDF
No ratings yet
OSp R15 Prev Q.papers JNTUH
15 pages
CS2254 QB
PDF
No ratings yet
CS2254 QB
7 pages
Operating System IV Sem PYQS (3year)
PDF
No ratings yet
Operating System IV Sem PYQS (3year)
5 pages
Guessing Question Paper & IMP
PDF
No ratings yet
Guessing Question Paper & IMP
3 pages
Anna University Question Paper
PDF
No ratings yet
Anna University Question Paper
4 pages
Operating System BCST 501
PDF
No ratings yet
Operating System BCST 501
2 pages
Cmpe242 SPRING 2012-2013 FINAL
PDF
No ratings yet
Cmpe242 SPRING 2012-2013 FINAL
7 pages
OS Imps
PDF
No ratings yet
OS Imps
4 pages
Operating Systems 1
PDF
No ratings yet
Operating Systems 1
4 pages
ICS 2202 - Operating Systems Concepts - December 2023
PDF
No ratings yet
ICS 2202 - Operating Systems Concepts - December 2023
4 pages
OS Pyq
PDF
No ratings yet
OS Pyq
6 pages
Operating System Questions
PDF
No ratings yet
Operating System Questions
7 pages
Final 2017-2018
PDF
No ratings yet
Final 2017-2018
2 pages
KCS401 - OS - Final Question Bank
PDF
No ratings yet
KCS401 - OS - Final Question Bank
6 pages
IT2060 - Operating System and System Administration
PDF
No ratings yet
IT2060 - Operating System and System Administration
5 pages
Operating Systems KCS 401
PDF
No ratings yet
Operating Systems KCS 401
2 pages
460 Question Paper
PDF
No ratings yet
460 Question Paper
2 pages
@e Bca 202
PDF
No ratings yet
@e Bca 202
3 pages
Operating Systems Jan 2023
PDF
No ratings yet
Operating Systems Jan 2023
8 pages
BCS303-Operating Systems
PDF
No ratings yet
BCS303-Operating Systems
7 pages
Sample Questions
PDF
No ratings yet
Sample Questions
5 pages
CSBS2201 Sem July 2022
PDF
No ratings yet
CSBS2201 Sem July 2022
2 pages
CS311 Exam
PDF
No ratings yet
CS311 Exam
16 pages
Operating - Systems-Qb
PDF
No ratings yet
Operating - Systems-Qb
7 pages
Os 3140702
PDF
No ratings yet
Os 3140702
13 pages
OS Most Imp Questions PDF
PDF
No ratings yet
OS Most Imp Questions PDF
4 pages
Os BCT3.2
PDF
No ratings yet
Os BCT3.2
29 pages
Os Previous Year Question
PDF
No ratings yet
Os Previous Year Question
16 pages
CS311 Exam
PDF
No ratings yet
CS311 Exam
16 pages
Imp Ques of Os
PDF
No ratings yet
Imp Ques of Os
4 pages
Operating System Last 5 Year Question Paper
PDF
100% (1)
Operating System Last 5 Year Question Paper
9 pages
Pos R22
PDF
No ratings yet
Pos R22
2 pages
Osy QB
PDF
No ratings yet
Osy QB
8 pages
OS Previous Year
PDF
No ratings yet
OS Previous Year
6 pages
OS Question Bank Unit 1-5
PDF
No ratings yet
OS Question Bank Unit 1-5
9 pages
CST206 Operating Systems, June 2022
PDF
100% (1)
CST206 Operating Systems, June 2022
3 pages
Os Question Bank-1
PDF
No ratings yet
Os Question Bank-1
6 pages
Operating System CS-601
PDF
No ratings yet
Operating System CS-601
5 pages
CS2201 OS Paper Set 1
PDF
No ratings yet
CS2201 OS Paper Set 1
3 pages
Paper 6
PDF
No ratings yet
Paper 6
2 pages
OS Question Bank
PDF
No ratings yet
OS Question Bank
4 pages
CS4107 Operating System - Imsc (End - SP19)
PDF
No ratings yet
CS4107 Operating System - Imsc (End - SP19)
2 pages
Gujarat Technological University
PDF
No ratings yet
Gujarat Technological University
11 pages
Time Allowed: 3 Hours Full Marks: 70: Answer To Question No.1 Is Compulsory and Answer Any Five Questions From The Rest
PDF
No ratings yet
Time Allowed: 3 Hours Full Marks: 70: Answer To Question No.1 Is Compulsory and Answer Any Five Questions From The Rest
2 pages
CS2254 QB
PDF
No ratings yet
CS2254 QB
6 pages
A15ad Operating Systems
PDF
No ratings yet
A15ad Operating Systems
1 page
2015
PDF
No ratings yet
2015
2 pages
CIA II - SE25B - III B.SC (CS)
PDF
No ratings yet
CIA II - SE25B - III B.SC (CS)
6 pages
HCSCR3062T 2019
PDF
No ratings yet
HCSCR3062T 2019
3 pages
Question Bank - 10ECE65
PDF
No ratings yet
Question Bank - 10ECE65
4 pages
Cs Paper - 3 Unsolved 2019,20
PDF
No ratings yet
Cs Paper - 3 Unsolved 2019,20
7 pages
ICS 2201 - Operating Systems Concept - January 2022
PDF
No ratings yet
ICS 2201 - Operating Systems Concept - January 2022
3 pages
OS Anwer Key Min
PDF
No ratings yet
OS Anwer Key Min
8 pages
Sybca Os Question Bank
PDF
No ratings yet
Sybca Os Question Bank
17 pages