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

Good Luck!: University of Gujrat

This document contains a mid-term exam for an operating systems course. It has 4 questions worth a total of 25 marks. Question 1 asks about system calls, context switching between processes, and differences between user-level and kernel-level threads. Question 2 asks about process structures like the stack, heap, and shared memory and to draw a diagram. Question 3 provides a round-robin scheduling problem. Question 4 asks about the differences between multi-threading and multi-processing. The exam is timed for 90 minutes.

Uploaded by

sami ullah
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)
43 views2 pages

Good Luck!: University of Gujrat

This document contains a mid-term exam for an operating systems course. It has 4 questions worth a total of 25 marks. Question 1 asks about system calls, context switching between processes, and differences between user-level and kernel-level threads. Question 2 asks about process structures like the stack, heap, and shared memory and to draw a diagram. Question 3 provides a round-robin scheduling problem. Question 4 asks about the differences between multi-threading and multi-processing. The exam is timed for 90 minutes.

Uploaded by

sami ullah
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
You are on page 1/ 2

UNIVERSITY OF GUJRAT

Mid-Term Exam spring-2020


Course Title: operating system Time allowed: 90 minutes
Course code: SE-205 Maximum Marks: 25
Roll No: _____________

________________________________________________________________________

Question # 1 Attempt the following Questions: (3*2=6)

I. What is the purpose of a system call?


II. Describe the action taken by a kernel to switch the context between processes.
III. What are two differences between user-level threads and kernel-level threads? Under what
circumstances is one type better than the other?

Question # 2
When a process creates a new process using the fork () operation. What are the following
terms describes? Also draw the label diagram of the structure of a process.
a. Stack
b. Heap
c. Shared memory segments (5)

Question # 3 Processes p1 ,p2,p3,p5,p6 Arrives in the memory with burst time 7,4,6,5,25 . (9)

1. Draw the Gant chart according to the ROUND ROBIN Scheduling with the time Quantum=4.
2. Find waiting time and Average waiting time of each process.
3. Also find the completion and Average completion time.

Question # 4 Difference between Multi-threading and Multi-processing (5)

GOOD LUCK!
“If you want to live a happy life, tie it to a goal. Not to people or things.”

You might also like