0% found this document useful (0 votes)
78 views

Assignment 1

This document outlines the assignment for an Operating Systems course. It provides instructions for the assignment, including the due date, formatting requirements, and policies on late submissions and plagiarism. It then lists 25 questions on various topics in operating systems that students must answer for the assignment. The questions cover purposes of operating systems, resource management, process scheduling algorithms, synchronization, security, and more.

Uploaded by

Annie Sikandar
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
78 views

Assignment 1

This document outlines the assignment for an Operating Systems course. It provides instructions for the assignment, including the due date, formatting requirements, and policies on late submissions and plagiarism. It then lists 25 questions on various topics in operating systems that students must answer for the assignment. The questions cover purposes of operating systems, resource management, process scheduling algorithms, synchronization, security, and more.

Uploaded by

Annie Sikandar
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Fall 2022

Assignment 1
Course : Operating Systems
Instructor: Engr. M. Asif Shaikh
Submission Date: Saturday, 21st November 2022, 5:00 pm.
 Late submission would not be rewarded but to be submitted anyways
 Answer should be in your own words on A4 size page
 Be specific and avoid unnecessary detail in your answers
 No descriptive answer should be greater than a paragraph (Not more the 2 paragraph in any
case).
 Copying other’s assignment would be resulted in cancellation of all such assignments
 Save your work from being copied

Tasks
1. What are the three main purposes of an operating system?

2. We have stressed the need for an operating system to make efficient use of the computing hardware. When
is it appropriate for the operating system to forsake this principle and to “waste” resources? Why is such a
system not really wasteful?

3. What is the main difficulty that a programmer must overcome in writing an operating system for a real-
time environment?

4. Keeping in mind the various definitions of operating system, consider whether the operating system
should include applications such as web browsers and mail programs. Argue both that it should and that it
should not, and support your answers.

5. Compare the pros and cons of MacOS, Windows and Linux?

6. List down the main components of PCB.

7. Why multiprocessing is important in modern OS.

8. Why Process Synchronization is important and how critical section problem could be handled

9. Which of the following instructions should be privileged?


a. Set value of timer.
b. Read the clock.
c. Clear memory.
d. Issue a trap instruction.
e. Turn off interrupts.
f. Modify entries in device-status table.
g. Switch from user to kernel mode.
h. Access I/O device.

Page 1 of 3
10. Some CPUs provide for more than two modes of operation. What are two possible uses of these multiple
modes?

11. In a multiprogramming and time-sharing environment, several users share the system simultaneously. This
situation can result in various security problems.
a. What are two such problems?
b. Can we ensure the same degree of security in a time-shared machine as in a dedicated machine?
Explain your answer.

12. The issue of resource utilization shows up in different forms in different types of operating systems. List
what resources must be managed carefully in the following settings:
a. Mainframe or minicomputer systems
b. Workstations connected to servers
c. Mobile computers

13. How are network computers different from traditional personal computers?

14. Describe some usage scenarios in which it is advantageous to use network computers.

15. Describe some of the challenges of designing operating systems for mobile devices compared with
designing operating systems for traditional PCs.

16. Identify several advantages and several disadvantages of open-source operating systems. Include the types
of people who would find each aspect to be an advantage or a disadvantage.

17. What are the five major activities of an operating system with regard to process management?

18. Why do some systems store the operating system in firmware, while others store it on disk?

19. How could a system be designed to allow a choice of operating systems from which to boot? What would
the bootstrap program need to do?

20. The services and functions provided by an operating system can be divided into two main categories.
Briefly describe the two categories, and discuss how they differ.

21. How are iOS and Android similar? How are they different?

22. Explain following critical section solutions.


a. Peterson’s solution
b. Mutex Lock
c. semaphore

23. What advantage is there in having different time-quantum sizes at different levels of a multilevel queuing
system?

24. Discuss how the following pairs of scheduling criteria conflict in certain settings.
a. CPU utilization and response time
b. Average turnaround time and maximum waiting time
c. I/O device utilization and CPU utilization

Page 2 of 3
25. Calculate the waiting time and draw Gantt chart for processes in queue by applying following CPU
scheduling algorithms.
a. First Come First Serve
b. Short Job First Scheduling
c. Priority Scheduling
d. Round Robin Scheduling is quantum slice is 5mS

Process Burst Time mS Priority Arrival Time


P1 3 6 0
P2 4 1 1
P3 8 3 4
P4 1 7 6
P5 7 3 9
P6 3 5 10
P7 1 4 11
P8 4 2 14

Page 3 of 3

You might also like