[go: up one dir, main page]

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

Mid1 Sec05 Fall2020 Cse325-1-2

This document contains instructions for a midterm exam for an Operating Systems course. It outlines 6 questions to be answered in 1 hour and 20 minutes related to processes, scheduling, and threads. The questions cover topics like process tables in batch systems, process states in a speech recognition app, handling multiple interrupts, scheduling processes in batch and timesharing systems, output of a fork program, and use of threads in an application like Google Earth.
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)
84 views2 pages

Mid1 Sec05 Fall2020 Cse325-1-2

This document contains instructions for a midterm exam for an Operating Systems course. It outlines 6 questions to be answered in 1 hour and 20 minutes related to processes, scheduling, and threads. The questions cover topics like process tables in batch systems, process states in a speech recognition app, handling multiple interrupts, scheduling processes in batch and timesharing systems, output of a fork program, and use of threads in an application like Google Earth.
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

10 November, 2020

EAST WEST UNIVERSITY


Department of Computer Science and Engineering
B.Sc. in Computer Science and Engineering Program
Mid I Examination, Fall 2020 Semester

Course: CSE 325 Operating System, Section-05


Instructor: Masiath Mubassira, Lecturer, CSE Department
Full Marks: 30(20 will be counted for final grading)
Time: 1 Hour and 20 Minutes (Extra 10 mins for turning in on google
classroom)

Note: There are SIX questions, answer ALL of them. Course Outcome (CO), Cognitive Level and
Mark of each question are mentioned at the right margin.

1. Is process table needed in a batch processing system? Explain briefly. [CO1, C3,
Marks:3]
2. In a speech to text synthesis app such as Google assistant you need to click
the microphone icon. Then it will listen to your instruction such as “Play [CO1, C3,
Senorita song”. After hearing the instruction, the speech is converted into text Marks:5]
which will be displayed on the screen. Then it will complete executing the
instruction by playing the song on Youtube. Briefly explain in which
state/states the process was in the given scenario.
[CO1, C3,
3. Explain briefly how multiple interrupt signals are handled in a system.
Marks:3]
4. Assume a uniprocessor system has three processes (P1, P2, and P3) and
P1 needs five (5), P2 needs four (4), and P3 needs six (6) seconds CPU [CO1, C3,
time. Each of which needs three (3), three (3), three (3) seconds of input Marks:7]
waiting time respectively and five (5), four (4), six (6) seconds of output
waiting time respectively. Consider a time slice of 3 seconds. How long
will it take to complete the processes in:
a. Batch processing system?
b. Timesharing system?
Also, calculate the time efficiency.

5. Find the output for the following program. Show all necessary steps. [CO2, C3,
Marks:5]
main( )
{
int i=0;
p=fork();
printf(“Tuesday\n”);

while (i<2)
{
if(p>0){

Page 1
10 November, 2020

printf(“CSE”);
}
else{
p=fork();
printf(“Hello World\n”);
}
i++;
}
}

6. a) Google earth application is a computer program that displays a 3D


representation of Earth based on satellite imagery. Users can explore the globe [CO1, C3,
by entering addresses. Users can also create their own project by adding any Marks:7]
placemark, draw lines or shapes, or they can add places after searching their
desired location. Suggest and explain how many threads are needed to make
sure that all the tasks are executing properly.
b) Suggest and explain which type of thread implementation should be used for
the above scenario after analyzing pros and cons for each type of thread (user-
level, kernel-level and hybrid).

Page 2

You might also like