B. B. Karki, LSU 0.1 CSC 4103: Operating Systems CSC 4103: Operating Systems Spring 2013 Bijaya B Karki and Coretta Douglas Wednesday 5:00 PM to 7:50 PM.

Slides:



Advertisements
Similar presentations
Process Control Management Prepared by: Dhason Operating Systems AICT
Advertisements

CS 149: Operating Systems February 3 Class Meeting
CAS3SH3 Midterm Review. The midterm 50 min, Friday, Feb 27 th Materials through CPU scheduling closed book, closed note Types of questions: True & False,
Operating Systems Review.
Operating Systems ECE344 Ding Yuan Final Review Lecture 13: Final Review.
Silberschatz, Galvin and Gagne ©2013 Operating System Concepts Essentials – 2 nd Edition Chapter 6a: CPU Scheduling.
Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition Chapter 5: CPU Scheduling.
Silberschatz, Galvin and Gagne  2002 Modified for CSCI 399, Royden, Operating System Concepts Operating Systems Lecture 16 Scheduling II.
Operating System Concepts with Java – 7 th Edition, Nov 15, 2006 Silberschatz, Galvin and Gagne ©2007 Processes and Their Scheduling.
CPU Scheduling Algorithms
Chapter 3: CPU Scheduling
Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition, Chapter 5: CPU Scheduling.
02/06/2008CSCI 315 Operating Systems Design1 CPU Scheduling Algorithms Notice: The slides for this lecture have been largely based on those accompanying.
OS0- Operating System Concepts Textbook: A. Silberschatz, P. Galvin and Greg Gagne, Operating System Concepts, 6th Edition, John Wiley & Sons, Inc, 2001.
CMPT 300: Operating Systems Review THIS REIVEW SHOULD NOT BE USED AS PREDICTORS OF THE ACTUAL QUESTIONS APPEARING ON THE FINAL EXAM.
CY2003 Computer Systems Lecture 11 Review Lecture.
Introduction to Operating Systems J. H. Wang Sep. 18, 2012.
CS 3305 Course Overview. Introduction r Instructor: Dr Hanan Lutfiyya r Office: MC 355 r hanan at csd dot uwo ca r Office Hours: m Drop-by m Appointment.
CPU-Scheduling Whenever the CPU becomes idle, the operating system must select one of the processes in the ready queue to be executed. The short term scheduler.
Computer Architecture and Operating Systems CS 3230: Operating System Section Lecture OS-3 CPU Scheduling Department of Computer Science and Software Engineering.
COT 4600 Operating Systems Spring 2011 Dan C. Marinescu Office: HEC 304 Office hours: Tu-Th 5:00-6:00 PM.
Silberschatz and Galvin  Chapters 3 and 5 Possible questions –Tracing a given program involving fork, exec, semaphores, and share memory –Wring.
1 Introduction to Operating Systems 9/16/2008 Lecture #1.
Introduction to Operating Systems J. H. Wang Sep. 18, 2015.
Discussion Week 10 TA: Kyle Dewey. Overview TA Evaluations Project #3 PE 5.1 PE 5.3 PE 11.8 (a,c,d) PE 10.1.
Operating Systems Review for Chap.6 & 7 Hung Q. Ngo KyungHee University Spring 2009
30 October Agenda for Today Introduction and purpose of the course Introduction and purpose of the course Organization of a computer system Organization.
1 CSCI 3120: Operating Systems Summer 2003 Instructor: Kirstie Hawkey Office hours (outside Room 311): Mon: 2:30-3:30, Fri: 10:30-11:30.
OS, Operating System First Semester, Year 2000 Wannarat Suntiamorntut Department of Computer Engineering, PSUWannarat Suntiamorntut.
Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition, Lecture 7: CPU Scheduling Chapter 5.
Chapter 5 Processor Scheduling Introduction Processor (CPU) scheduling is the sharing of the processor(s) among the processes in the ready queue.
Homework Assignment #2 J. H. Wang Oct. 17, 2007.
Introduction to Operating Systems J. H. Wang Sep. 15, 2010.
Silberschatz, Galvin and Gagne  Operating System Concepts Operating Systems 1. Overview 2. Process Management 3. Storage Management 4. I/O Systems.
OBJECTIVE: To learn about the various system calls. To perform the various CPU scheduling algorithms. To understand the concept of memory management schemes.
Operating Systems ECE344 Ding Yuan Final Review Lecture 13: Final Review.
CS1253- OPERATING SYSTEMS. SYLLABUS UNIT I PROCESSES AND THREADS 9 Introduction to operating systems – Review of computer organization – Operating.
Course Overview 1 FCM 710 Architecture of Secure Operating Systems Prof. Shamik Sengupta Office 4210 N
Introduction to Operating Systems J. H. Wang Sep. 13, 2013.
1/31/20161 Final Exam Dec 10. Monday. 4-7pm. Phelp 1160 Similar to midterm The exam is closed book. You can bring 2 page of notes (double sided) Nachos.
CE Operating Systems Lecture 8 Process Scheduling continued and an introduction to process synchronisation.
CPU Scheduling Operating Systems CS 550. Last Time Deadlock Detection and Recovery Methods to handle deadlock – Ignore it! – Detect and Recover – Avoidance.
Lecturer 5: Process Scheduling Process Scheduling  Criteria & Objectives Types of Scheduling  Long term  Medium term  Short term CPU Scheduling Algorithms.
Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition Chapter 5: CPU Scheduling.
Chapter 5: CPU Scheduling. 5.2 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts Chapter 5: CPU Scheduling Basic Concepts Scheduling Criteria.
Operating Systems (CS 340 D) Dr. Abeer Mahmoud Princess Nora University Faculty of Computer & Information Systems Computer science Department.
CSI 3131 Summer 2016 Principles of Operating Systems Instructor: Dr. Nathalie Japkowicz Office: STE 5029 Office Hours: n In.
Introduction to Operating Systems
Operating System (OS) QUESTIONS AND ANSWERS
Section 10: Last section! Final review.
CPU Scheduling.
Lecture Note 0: Course Introduction
ICS 143 Principles of Operating Systems
Operating Systems Review.
Chapter 6: CPU Scheduling
Chapter 5: CPU Scheduling
Introduction to CPSC3125 Operating System
Operating System Concepts
CGS 3763 Operating Systems Concepts Spring 2013
COT 4600 Operating Systems Spring 2011
Operating Systems Lecture 1.
CSC227: Operating Systems
First Semester 1439/1440 Welcome 
February 5, 2004 Adrienne Noble
Lecture Note 0: Course Introduction
CPU SCHEDULING SIMULATION
Today’s agenda ~10min: file system (UNIX) ~1hr: final review + Q&A
EECE.4810/EECE.5730 Operating Systems
CSE 153 Design of Operating Systems Winter 2019
Sarah Diesburg Operating Systems CS 3430
Presentation transcript:

B. B. Karki, LSU 0.1 CSC 4103: Operating Systems CSC 4103: Operating Systems Spring 2013 Bijaya B Karki and Coretta Douglas Wednesday 5:00 PM to 7:50 PM 1116 Patrick Taylor Hall

B. B. Karki, LSU 0.2 CSC 4103: Operating Systems Office Hours Instructor: Bijaya B. Karki or Coretta Douglas  1:00 PM to 3:00 PM, Monday and Wednesday Any time by appointment  3127B or 3118 Patrick Taylor  or Teaching Assistant:  Any time by appointment 

B. B. Karki, LSU 0.3 CSC 4103: Operating Systems Reading Materials & Resources Textbooks (Required): F A. Silberschatz, P.B. Galvin and G. Gagne, “Operating System Concepts,” (7 th or Newer Edition), Wiley: ISBN or A. Silberschatz, P.B. Galvin and G. Gagne, “Operating System Concepts with JAVA,” (7 th or Newer Edition), Wiley: ISBN F M. Kiefer and S.A. Smolka, “Introduction to Operating System Design and Implementation: The OSP 2 Approach,” 2007 (Java version) or M. Kiefer and S.A. Smolka, “OSP: An Environment for Operating System Projects,” Addison-Wesley, 1991 (C version) Lecture Notes:  Posted regularly on moodle Resources:  Will be provided with an UNIX account (in classes) to work in project.

B. B. Karki, LSU 0.4 CSC 4103: Operating Systems Grading Policy Grading Scale:  A = 90 % or more  B = 78 to 89 %  C = 65 to 77 %  D = 50 to 64 %  F = below 50 %. Grading Items:  Quiz (pop) (10 %)  Homework (15 %)  Programming (15 %)  Midterm Exam (30 %)  Final Exam (30 %)

B. B. Karki, LSU 0.5 CSC 4103: Operating Systems Rules/Recommendation Late submission of homework/programming assignments will be penalized. Excuse can be granted in special circumstances. No books, lecture notes, laptops and other materials will be allowed in quizzes and exams. Academic dishonesty will be treated seriously.

B. B. Karki, LSU 0.6 CSC 4103: Operating Systems Homework and Programming Assignments Homework: 15 % of total grading  Assigned at the rate of approximately 3 weeks.  Also useful in preparation for the mid-term and final exams. Programming: 15 % of total grading  OSP: Operating System Project Implementation and exploration of key OS features and algorithms OSP manual and textbook.  Other programming Implementation outside OSP.  Working on Unix machine.  Java or C/C++.

B. B. Karki, LSU 0.7 CSC 4103: Operating Systems Topics To Be Covered Protection & Security Process Management Mass Storage Management Memory Management Overview Operating Systems

B. B. Karki, LSU 0.8 CSC 4103: Operating Systems Overview Introduction Computer System Structures Operating System Structures

B. B. Karki, LSU 0.9 CSC 4103: Operating Systems Process Management Processes Threads CPU Scheduling Process Synchronization Deadlocks

B. B. Karki, LSU 0.10 CSC 4103: Operating Systems Memory Management Main Memory Virtual Memory

B. B. Karki, LSU 0.11 CSC 4103: Operating Systems Mass Storage Management File-System Interface File-System Implementation I/O Systems Mass-Storage Structure

B. B. Karki, LSU 0.12 CSC 4103: Operating Systems Protection and Security Protection Security

B. B. Karki, LSU 0.13 CSC 4103: Operating Systems Sample Exam Questions The questions in midterm and final exams will be of three types.  Type A: True or false statements  Type B: Short answer (descriptive or numerical) questions  Type C: Long answer (multi-part) questions The list of the sample questions given here is not complete but it gives you an idea about what the exam would look like. The number of questions and the order they appear in the actual exams will vary. Closed-book exams:  Books, notes and computers are not allowed.  Six (or more) quizzes (10 % + 5 % bonus), midterm (30 %) and final (30 %).

B. B. Karki, LSU 0.14 CSC 4103: Operating Systems Type A Questions (Each = 1 Point) Answer “True” or “False” to the following statements.  Desktop system is mainly concerned with convenience.  The FCFS scheduling can never be preemptive.  In a pure demand paging, some pages of a process are kept in the main memory prior to the process execution.  DMA transfers data between devices and memory byte by byte.  A counting semaphore can be implemented with binary semaphores.  The N-step disk-scheduling algorithm suffers from starvation.

B. B. Karki, LSU 0.15 CSC 4103: Operating Systems Type B Questions (Each = 2 or 3 Points) 1.Define CPU bound and I/O bound processes. What would be the problem if all processes were CPU bound? 2.Describe how the hardware supports segmentation. 3.A single-lane bridge connects the north and south parts of a town. The bridge can become deadlocked if both a northbound and a southbound vehicle get on the bridge at the same time. The drivers are stubborn and are not willing to back up. Using semaphores, design an algorithm that prevents the deadlock. 4.Consider a 20-block long file on a disk. If you are currently at the 10 th logical block and want to access logical block 15, how many physical blocks must be read from the disk according to the index allocation scheme? Justify your answer. Assume that the information about the file is already in memory. 5.If the average waiting time is 30 ms for the queue of average number of 8 processes, calculate the average arrival rate.

B. B. Karki, LSU 0.16 CSC 4103: Operating Systems Type C Questions (Each = 6 Points) 1.Consider five processes, P1, P2, P3, P4 and P5, with CPU burst times of 10, 29, 3, 7, and 12 milliseconds, respectively.  a) Draw Gantt charts for the FCFS, SJF and RR scheduling algorithms (time quantum of 10 ms)  b) Find out which of these algorithms would give the minimum average waiting time.  c) Compare the average turnaround time between SJF and RR scheduling algorithms. 2.Consider the following page-reference string: 1, 2, 3, 4, 2, 1, 5, 6, 2, 1, 2, 3, 7, 6, 3, 2, 1, 2, 3, 6 How many page faults would occur for the following replacement algorithms, assuming four frames which all are initially free.  a) FIFO replacement  b) LRU replacement  c) Optimal replacement

B. B. Karki, LSU 0.17 CSC 4103: Operating Systems Type C Questions (Contd.) 3.A barbershop consists of 5 chairs for the customers to wait and one barber chair for the haircut. If there are no customers to be served, the barber goes to sleep. If a customer enters the barbershop and all chairs are occupied, then the customer leaves the shop. If the barber is busy but chairs are available, then the customer sits in one of the free chairs. If the barber is asleep, the customer wakes up the barber. Use the following semaphores to coordinate the barber and customers. semaphore mutex, customers, barber; int waiting; Here, mutex is initialized to 1. The semaphores customers and barber, each of which is initialized to 0, track the availability of customers and barber. The variable waiting, which is initialized to 0 gives a count of waiting customers.  a) Explain the meaning of mutex.  b) Determine the type (binary or counting) of the three semaphores.  c) Write the structure of a barber process.  d) Write the structure of a customer process.