CAT2 Os
CAT2 Os
Course Outcomes:
CO3 To understand process management, concurrency and thread introduction.
Course Outcomes:
CO1 To understand the role, functionality of the layering systems software components
CO2 To understand the design and usage of the OS API and OS services.
Knowledge Level: K1-Knowledge, K2-Understand, K3-Apply, K4-Analyze, K5-Synthesis K6 - Evaluate
ANSWER KEY
PART A
1. An interrupt is a signal emitted by a device attached to a computer or from a program within the
computer. It requires the operating system (OS) to stop and figure out what to do next. An interrupt
temporarily stops or terminates a service or a current process.
2. To minimize resource starvation and to ensure fairness amongst the parties utilizing the resources
ACHARIYA
COLLEGE OF ENGINEERING TECHNOLOGY
(Approved by AICTE New Delhi & Affiliated to Pondicherry University)
An ISO 9001 : 2008 Certified Institution
DEPARTMENT OF ARTIFICIAL INTELLIGENCE & DATA SCIENCE
3. Managing Input-Output unit
Consistent user interface
Multitasking
Platform for Application programs
Security
Error detecting
Control over system performance
4. Concurrency is the ability of an operating system to execute multiple tasks simultaneously or in an
overlapping manner.
5. To make a program run as fast as one might expect, not surprisingly OS developers came up with a
technique, which we call limited direct execution. The “direct execution” part of the idea is
simple: just run the program directly on the CPU
6. When two or more process cooperates with each other, their order of execution must be preserved
otherwise there can be conflicts in their execution and inappropriate outputs can be produced.
A cooperative process is the one which can affect the execution of other process or can be affected
by the execution of other process. Such processes need to be synchronized so that their order of
execution can be guaranteed.
7. i. Any function that a customer desires to have that is not currently in platform specification
ii. It is not a bug, but a feature or function that seems desirable , but is not available for use.
8. It is the operations, which execute without interruption of any other process inbetween their
execution.
9. A mutex is an acronym for mutual exclusion, which is a technique to ensure that only one thread or
process can access a shared resource at a time. A mutex is a type of lock that can be acquired or
released by a thread or process to control the access to the resource.
10. Low level synchronization mechanism suitable primarily for use on shared memory multiprocessor.
PART B
11. Process Life Cycle in Os is one of the five states in which a process can be starting from the time it
has been submitted for execution , till the time ehen it has been executed by the system. Here we will
learn detailed explanation about each states.
12. Preemptive Scheduling: Preemptive scheduling is used when a process switches from running
state to ready state or from the waiting state to the ready state.
Non-Preemptive Scheduling: Non-Preemptive scheduling is used when a process terminates , or
when a process switches from running state to waiting state.
ACHARIYA
COLLEGE OF ENGINEERING TECHNOLOGY
(Approved by AICTE New Delhi & Affiliated to Pondicherry University)
An ISO 9001 : 2008 Certified Institution
DEPARTMENT OF ARTIFICIAL INTELLIGENCE & DATA SCIENCE
14. The process requests for some resource. OS grant the resource if it is available otherwise let the process
waits. The process uses it and release on the completion. The process requests for some resource. OS
grant the resource if it is available otherwise let the process waits. The process uses it and release on the
completion.
1. Mutual Exclusion
A resource can only be shared in mutually exclusive manner. It implies, if two process cannot use the
same resource at the same time.
2. Hold and Wait
A process waits for some resources while holding another resource at the same time.
3. No preemption
The process which once scheduled will be executed till the completion. No other process can be
scheduled by the scheduler meanwhile.
4. Circular Wait
All the processes must be waiting for the resources in a cyclic manner so that the last process is
waiting for the resource which is being held by the first process.