Assignment 1
Assignment 1
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.
8. Why Process Synchronization is important and how critical section problem could be handled
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?
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
Page 3 of 3