Oslessonplan24 Deceafter
Oslessonplan24 Deceafter
Oslessonplan24 Deceafter
Society's
FMTH0301/Rev.5.2
Course Plan
Prerequisites:
Computer Organization, Data Structures, High level language such as C and knowledge of assembly
language
i. Understand the role that the operating system plays in the management of the various
resources of computer system.
ii. Discuss the basic issues in process management.
iii. Distinguish between the different deadlock prevention and avoidance schemes.
iv. Evaluative and analyze various algorithms in memory management
v. Implement operating system components
Eg: 1.2.3: Represents Program Outcome ‘1’, Competency ‘2’ and Performance Indicators
‘3’.
Course Content
Content Hrs
Unit - 1
Chapter No. 1.Introduction and Systems structures 5 hrs
Operating system definition; Operating System operations; Different types of operating
system – Mainframe systems, Multi programmed systems, Time sharing systems, Desktop
systems, Parallel systems, Distributed systems, Real time systems, Clustered systems,
Handheld systems. Operating System Services; User - Operating System interface; System
calls; Types of system calls; Operating System structure; Virtual machines
Chapter No. 2. Process Management 8 hrs
Process concept; Process scheduling; Operations on processes; Inter-process
communication. Multi-Threaded Programming: Overview; Multithreading models; Thread
Libraries; Threading issues. Process Scheduling: Basic concepts; Scheduling criteria;
Scheduling algorithms; Multiple-Processor scheduling; Thread scheduling.
Chapter No. 3.Process Synchronization 7 hrs
Synchronization: The Critical section problem; Peterson’s solution; Synchronization
hardware; Semaphores; Classical problems of synchronization; Monitors.
Unit - 2
Chapter No. 4.Deadlocks 7 hrs
Deadlocks: System model; Deadlock characterization; Methods for handling deadlocks;
Deadlock prevention Deadlock avoidance; Deadlock detection and recovery from deadlock.
Chapter No. 5. Memory Management 8 hrs
Memory Management Strategies: Background; Swapping; Contiguous memory allocation;
Paging; Structure of page table; Segmentation. Virtual Memory Management: Background;
Demand paging, Page replacement; Allocation of frames; Thrashing.
Chapter No. 6. File System, Implementation of File System 5 hrs
File System: File concept; Access methods; Directory structure; File system mounting; File
sharing; Protection. Implementing File System: File system implementation; Directory
implementation; Allocation methods; Free space management.
Unit - 3
Chapter No. 7.Embedded Operating Systems 5 hrs
Introduction to Embedded operating system, comparison of Embedded Operating System
and GPOS , Characteristics of Embedded Operating System , Case study of ECOS .
Chapter No. 8. Mobile Operating Systems 5 hrs
Introduction to Android, App Developer's View, Overall Architecture, Linux Kernel ,Wake
locks, Hardware Support ,Native User-Space Dalvik and Android's Java, System Services,
Stock AOSP Packages, System Startup
1. Abraham Silberschatz, Peter Baer Galvin, Greg Gagne: Operating System Principles, 9th
edition, Wiley-India, 2006.
2. William Stallings,”Operating System Internals and Design Principles”, 5edition, Pearson
Education, Asia, 2005
3. Smart phone operating system concepts with Symbian O.S. A tutorial guide by Michael J.
Jipping. Symbian Press, Wiley
References
Evaluation Scheme
CIE Scheme
Note
1. Each Question carries 20 marks and may consists of sub-questions.
2. Mixing of sub-questions from different chapters within a unit (only for Unit I and Unit II) is
allowed in Minor I, II and SEE.
3. Answer 5 full questions of 20 marks each (two full questions from Unit I, II and one full
question from Unit III) out of 8 questions in SEE.
Learning Outcomes:-
At the end of the topic the student should be able to:
Lesson Schedule
Class No. - Portion covered per hour
1. Operating System definition : Operating System operations
2. Different types of operating systems: Mainframe Systems, Multi-programmed systems,
Time sharing systems, Desktop Systems
3. Parallel systems, Distributed Systems, Real Time Systems. Clustered Systems, Handheld
Systems.
4. Operating System services: User-operating system interface;
5. System calls ;types of system calls; system structure; Virtual machines
Review Questions
Sl.No. - Questions TLOs BL PI Code
1. Give an example of an operational environment when the system would TLO3 L2 1.4.4
have to be both multi-programming and on-line system
2. When do we say a system is "multi-programming"? When do we say it is TLO3 L2 1.4.4
an "online" system?
3. Explain the difference between platform and environment TLO3 L2 1.4.4
Learning Outcomes:-
At the end of the topic the student should be able to:
Lesson Schedule
Class No. - Portion covered per hour
1. Process Concept: Process scheduling
2. Operations on processes
3. Inter-process communication.
4. Multithreaded Programming: Overview
5. Multithreading models; Thread libraries; threading issues.
6. CPU scheduling: Basic concepts; Scheduling criteria
7. Scheduling algorithms
8. Multiple processor scheduling; Thread scheduling
Review Questions
Sl.No. - Questions TLOs BL PI Code
1. With the help of a detailed process state diagram, explain the different TLO1 L2 1.4.4
states in which a process can be in the system highlighting the different
transitions.
2. Differentiate between different exec system calls. TLO1 L2 1.4.4
3. Typically what is the process information Unix OS maintains? TLO2 L2 1.4.4
4. What is the use of a process control block? Discuss the changes in the TLO2 L2 1.4.4
PCB chains when a. A process makes an I/O request b. A process
completes an I/O Operation.
5. Consider a process with the following code for (i = 0; i < n; i++) fork(); TLO4 L3 1.4.4
How many concurrent tasks can be performed by the code?
6. Suppose we have a single processor, jobs arrive in the order given in TLO4 L3 2.1.3
table below. Process Arrival Time(in ms) Burst Time P0 0 6 P1 1 3 P2 2 1
P3 3 4 Apply the following scheduling algorithms FCFS SJF and RR with
various quantum times With the following assumptions The context
switching takes 1 time unit. None of the jobs require IO. Compare the
performance of various of various algorithms
7. Suppose we have two resident processes P1 and P2 with the TLO4 L3 2.1.3
following burst time observed during the last four CPU allocations
P1 3 3 4 4
P2 5 7 4 4 Using an exponential averaging technique predict the
next burst time for P1 and P2.
8. Consider three processes, all arriving at time zero, with total execution TLO4 L3 2.1.3
time of 10, 20 and 30 units, respectively. Each process spends the first
20% of execution time doing I/O, the next 70% of time doing computation,
and the last 10% of time doing I/O again. The operating system uses a
shortest remaining compute time first scheduling algorithm and schedules a
new process either when the running process gets blocked on I/O or when
the running process finishes its compute burst. Assume that all I/O
operations can be overlapped as much as possible. For what percentage of
time does the CPU remain idle
9. Compare process and thread TLO6 L2 1.4.4
Learning Outcomes:-
At the end of the topic the student should be able to:
Lesson Schedule
Class No. - Portion covered per hour
1. Synchronization: The critical section problem:
2. Peterson’s solution;
3. Synchronization hardware
4. Semaphores
5. Classical problems of synchronization
6. Classical problems of synchronization (cont)
7. Monitors
Review Questions
Sl.No. - Questions TLOs BL PI Code
1.Assume two operations A(counter++) B(counter--) reg1= counter; reg1= TLO1 L3 1.4.4
Reg1+1; Counter = reg1; Show computation sequence to show how race
condition can occur.
2.Discuss the disadvantage of using hardware instruction for solving critical TLO2 L2 1.4.4
section problems .
3.Write the algorithms for wait () and signal () functions. Explain their usage TLO3 L2 1.4.4
in an example .
4.Explain in brief hardware synchronization instructions .How mutual TLO3 L2 1.4.4
exclusion can be implemented using one of them.
5. Consider the methods used by processes P1 and P2 for accessing their TLO3 L3 2.1.3
critical sections whenever needed, as given below. The initial values of
shared Boolean variables S1 and S2 are randomly assigned. Method Used
by P1 while (S1 == S2) ; Critica1 Section S1 = S2; Method Used by P2
while (S1 != S2) ; Critica1 Section S2 = not (S1); With the above
mechanism, state whether mutual exclusion and progress are achieved by
the system
Learning Outcomes:-
At the end of the topic the student should be able to:
Lesson Schedule
Class No. - Portion covered per hour
1. Deadlock System Model and Deadlock Characterization
2. Methods for Handling Deadlocks
3. Deadlock Prevention
4. Deadlock Avoidance
5. Deadlock Detection
6. Deadlock Detection(cont)
7. Recovery from Deadlock
Review Questions
Sl.No. - Questions TLOs BL PI Code
1. What is deadlock? How Deadlock can be prevented TLO1 L2 1.4.4
2. List three examples of deadlock that are not related to computer system TLO1 L2 1.4.4
3. Given 3 process A, B, and C , 3 resources x, y, and z and following TLO3 L3 1.4.4
events . 1) A requests x 2) A requests y 3) B request y 4) B requests z 5)
C requests z 6) C requests x 7) C requests y Mention whether the system
is in deadlock. If it is how to recover the deadlock. 1, 3, 5, 2, 6, 4 2) 2, 6, 3,
5, 1, 4, 7
Learning Outcomes:-
At the end of the topic the student should be able to:
Lesson Schedule
Class No. - Portion covered per hour
1. Memory Management Strategies: Background, Swapping.
2. Contiguous Allocation.
3. Paging.
4. Paging (contd).
5. Segmentation. Virtual Memory Management: Background
6. Demand Paging
7. Page Replacement.
8. Allocation of Frames & Thrashing
Review Questions
Sl.No. - Questions TLOs BL PI Code
1. On scanning primary memory pm addresses 00..0. We find holes of the TLO1 L2 1.4.4
following sizes 10K, 15K, 5K, 32K and 2K. In what order would the
allocation happen if we need to allocate segments having sizes 2K, 7K, 27K
and 1K if we followed a. First fit policy b. Next fit policy c. Best fit policy
2. Describe the action taken by the operating system when a page fault TLO3 L2 1.4.4
occurs
3. What is thrashing? Explain how working set model can be used to solve TLO3 L2 1.4.4
the same
4. If a system has 32 bit virtual addresses and 1 KB page size, what can be TLO3 L3 2.1.3
the size of page table if 1. one-level page tables are used 2. Two levels of
page tables are used
5. Consider a machine with 64 MB physical memory and a 32-bit virtual TLO3 L3 2.1.3
address space. If the page size is 4KB, what is the approximate size of the
page table? (GATE 2001). Explain the steps with neat diagrams.
6. Indi-Comp is a new computer system. It has 32 bits address space. The TLO3 L2 2.1.3
system employs paging with page of 4K size. Suppose the page table is
stored in a semiconductor memory that requires 0.01 microseconds to load
the page table. Processes are swapped every 10 millisecond. Each time a
process runs – its page table need to be loaded. Compute the percentage
of time that gets used in loading a page as an overload.
7. A process refers to 5 pages in the following order TLO3 L3 2.1.3
A,B,C,D,A,B,E,A,B,C,D,E.How many page faults would occur if the program
has three frames to it using i)FIFO replacement ii)LRU replacement
iii)Optimal Replacement
Learning Outcomes:-
At the end of the topic the student should be able to:
Lesson Schedule
Class No. - Portion covered per hour
1. File system: File concept; Access methods;
2. Directory structure; File system mounting;
3. File sharing; Protection
4. Implementing File System: File system implementation ; Directory implementation
5. Allocation methods; free space management.
Review Questions
Sl.No. - Questions TLOs BL PI Code
1. What are the different attributes of files? TLO1 L2 1.4.4
2. Explain different directory structures with suitable diagrams. TLO2 L2 1.4.4
3. Describe the interpretation of the following under the command chmod: TLO3 L2 1.4.4
a. 444 b. 111 001 101
4. How do you provide specify protection scheme in UNIX? TLO4 L2 1.4.4
5. Using a diagram, show how an indexed allocation of a file may be done TLO4 L3 2.1.3
for a disked based system with the following characteristics. The disc size
is 30 blocks each of 1024 bytes (may be modeled as 6 X 5 matrix). File f1
is 11 logical records of 112 bytes, file f2 is 890 logical records of 13 bytes,
file f3 is 510 bytes of binary data stream and file f4 is 4 logical blocks of 95
bytes
Learning Outcomes:-
At the end of the topic the student should be able to:
Lesson Schedule
Class No. - Portion covered per hour
1. Introduction to Embedded operating system
2. Comparison of Embedded Operating System and GPOS
3. Characteristics of Embedded Operating System
4. Case study of ECOS
5. Case study of ECOS(cont)
Review Questions
Sl.No. - Questions TLOs BL PI Code
1. What is RTOS? TLO1 L2 1.4.4
2. Explain the key characteristics of an RTOS? TLO1 L2 1.4.4
3. What are the relative advantages and disadvantages of an real time OS TLO2 L2 1.4.4
over existing general purpose commercial OS?
4. What are the principle objectives that guided the design of the eCOS TLO3 L2 1.4.4
kernel?
Learning Outcomes:-
At the end of the topic the student should be able to:
Lesson Schedule
Class No. - Portion covered per hour
1. Introduction to Android, App Developer\'s View
2. Overall Architecture, Linux Kernel ,Wake locks,
3. Hardware Support ,Native User-Space Dalvik and Android\'s Java
4. System Services, Stock AOSP Packages
5. System Startup
Review Questions
Sl.No. - Questions TLOs BL PI Code
1. What are the benefits of using Android for Mobile application TLO1 L2 1.4.4
development
2. Explain the overall architecture of Android TLO2 L2 1.4.4
3. Discuss the various system services of Android Operating system TLO3 L2 1.4.4
2c Write a short note on system call and its interface 5 CO1 L2 1 1.4.1
3a Explain distributed and parallel systems. 5 CO1 L2 1 1.4.1
3b Discuss the various solutions for critical section 10 CO2 L3 2 1.4.4
problem.
Question Paper Title: Model Question Paper for Semester End Examination
Total Duration (H:M):180 Course :Operating System Maximum Marks :100
mins (CSC324)
Note :Answer two full questions from Unit I, Unit II, and 1 full question from Unit III.
UNIT 1
Q.No. Questions Marks CO BL PO PI
Code
Code Used by P1
Critica1 Section
S1 = S2;
Code Used by P2
Critica1 Section
S2 = not (S1);
3.a 5. Consider a process with the following code for (i = 0; 5 CO1 L3 1 1.4.1
i < n; i++) fork(); How many concurrent tasks can be
performed by the code?
b Explain layered and microkernel approaches of 5 CO1 L2 1 1.4.1
operating system structure
c What is a mail box and give a detailed description on 10 CO2 L3 1 1.4.4
how it may be utilized for IPC
UNIT 2
Q.No. Questions Marks CO BL PO PI
Code
5.a Consider a simple paging system with the following 10 CO4 L3 2 2.1.3
parameters: 2 32 bytes of physical memory; page size of
UNIT 3
Q.No. Questions Marks CO BL PO PI
Code
7.a What are the relative advantages and disadvantages of 10 CO1 L2 1 1.4.4
an real time OS over existing general purpose
commercial OS?