Unit OS4: Scheduling and Dispatch

Slides:



Advertisements
Similar presentations
CPU Scheduling Tanenbaum Ch 2.4 Silberchatz and Galvin Ch 5.
Advertisements

Operating Systems Process Scheduling (Ch 3.2, )
Windows Operating System Internals - by David A. Solomon and Mark E. Russinovich with Andreas Polze Unit OS1: Overview of Operating Systems 1.1. Windows.
OS/2 Warp Chris Ashworth Cameron Davis John Weatherley.
© Neeraj Suri EU-NSF ICT March 2006 Budapesti Műszaki és Gazdaságtudományi Egyetem Méréstechnika és Információs Rendszerek Tanszék Zoltán Micskei
Chapter 4: Threads. Overview Multithreading Models Threading Issues Pthreads Windows XP Threads.
Introduction to Operating Systems – Windows process and thread management In this lecture we will cover Threads and processes in Windows Thread priority.
Windows 2000 and Solaris: Threads and SMP Management Submitted by: Rahul Bhuman.
Chapter 5: CPU Scheduling
Wk 2 – Scheduling 1 CS502 Spring 2006 Scheduling The art and science of allocating the CPU and other resources to processes.
Operating System Process Scheduling (Ch 4.2, )
Process Scheduling in Windows XP, Linux, and UNIX By Sarah G. Levinson CSC 4320.
Budapesti Műszaki és Gazdaságtudományi Egyetem Méréstechnika és Információs Rendszerek Tanszék Scheduling in Windows Zoltan Micskei
Chapter 8 Windows Outline Programming Windows 2000 System structure Processes and threads in Windows 2000 Memory management The Windows 2000 file.
MODERN OPERATING SYSTEMS Third Edition ANDREW S. TANENBAUM Chapter 11 Case Study 2: Windows Vista Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall,
Scheduling Dave Eckhardt Outline ● Chapter 6: Scheduling.
CSC 360- Instructor: K. Wu CPU Scheduling. CSC 360- Instructor: K. Wu Agenda 1.What is CPU scheduling? 2.CPU burst distribution 3.CPU scheduler and dispatcher.
Windows OS Internals - Copyright © 2005 David A. Solomon, Mark E. Russinovich, and Andreas Polze Unit OS4: Scheduling and Dispatch 4.4. Windows Thread.
Mac OS X Panther Operating System
Windows Operating System Internals - by David A. Solomon and Mark E. Russinovich with Andreas Polze Unit OS6: Device Management 6.1. Principles of I/O.
Threads, Thread management & Resource Management.
CE Operating Systems Lecture 11 Windows – Object manager and process management.
Unit OS11: Performance Evaluation Lab Manual.
Unit OS A: Windows Networking A.4. Lab Manual. 2 Copyright Notice © David A. Solomon and Mark Russinovich These materials are part of the Windows.
Scott Ferguson Section 1
ITFN 3601 Introduction to Operating Systems Lecture 3 Processes, Threads & Scheduling Intro.
Multithreaded Programing. Outline Overview of threads Threads Multithreaded Models  Many-to-One  One-to-One  Many-to-Many Thread Libraries  Pthread.
Copyright Notice © David A. Solomon and Mark Russinovich
Processes, Threads, and Process States. Programs and Processes  Program: an executable file (before/after compilation)  Process: an instance of a program.
Threads, Thread management & Resource Management.
Windows Operating System Internals - by David A. Solomon and Mark E. Russinovich with Andreas Polze Unit OS3: Concurrency 3.3. Advanced Windows Synchronization.
Windows Operating System Internals - by David A. Solomon and Mark E. Russinovich with Andreas Polze Unit OS1: Overview of Operating Systems 1.1. Windows.
Concepts and Structures. Main difficulties with OS design synchronization ensure a program waiting for an I/O device receives the signal mutual exclusion.
1 CPU Scheduling Basic Concepts Scheduling Criteria Scheduling Algorithms Multiple-Processor Scheduling Real-Time Scheduling.
Operating System Examples - Scheduling. References r er/ch10.html r bangalore.org/blug/meetings/200401/scheduler-
Advanced Operating Systems CS6025 Spring 2016 Processes and Threads (Chapter 2)
1 OPERATING SYSTEMS. 2 CONTENTS 1.What is an Operating System? 2.OS Functions 3.OS Services 4.Structure of OS 5.Evolution of OS.
Processes and Threads Chapter 3 and 4 Operating Systems: Internals and Design Principles, 6/E William Stallings Patricia Roy Manatee Community College,
UNIT–II: Process Management
lecture 5: CPU Scheduling
Process Management Process Concept Why only the global variables?
EEE Embedded Systems Design Process in Operating Systems 서강대학교 전자공학과
OPERATING SYSTEMS CS3502 Fall 2017
Networks and Operating Systems: Exercise Session 2
CASE STUDY 1: Linux and Android
Concurrency, Processes and Threads
Unit OSC: Interoperability
Unit OS9: Real-Time and Embedded Systems
Chapter 4: Multithreaded Programming
April 6, 2001 Gary Kimura Lecture #6 April 6, 2001
Chapter 4 Threads.
Unit OS11: Performance Evaluation
Unit OS A: Windows Networking
Unit OS8: File System 8.6. Quiz
Unit OS2: Operating System Principles
Unit OS10: Fault Tolerance
Unit OSB: Comparing the Linux and Windows Kernels
Chapter 2.2 : Process Scheduling
Chapter 6: CPU Scheduling
Case Study 2: Windows History of windows 2000
TDC 311 Process Scheduling.
Chapter 6: CPU Scheduling
CPU SCHEDULING.
Threads Chapter 4.
Chapter 6: CPU Scheduling
Chapter 5: CPU Scheduling
Concurrency, Processes and Threads
Chapter 6: CPU Scheduling
Concurrency, Processes and Threads
Chapter 6: CPU Scheduling
Presentation transcript:

Unit OS4: Scheduling and Dispatch 4.6. Quiz Windows Operating System Internals - by David A. Solomon and Mark E. Russinovich with Andreas Polze

Copyright Notice © 2000-2005 David A. Solomon and Mark Russinovich These materials are part of the Windows Operating System Internals Curriculum Development Kit, developed by David A. Solomon and Mark E. Russinovich with Andreas Polze Microsoft has licensed these materials from David Solomon Expert Seminars, Inc. for distribution to academic organizations solely for use in academic environments (and not for commercial use)

Optimization Criteria The scheduler in an operating system has to manage the CPU efficiently. Which one of the optimization criteria mentioned below is not related to CPU scheduling? Maximum CPU utilization Maximum throughput Minimal turnaround time Minimal waiting time Minimal response time Maximum Mean Time To Failure (MTTF) f) MTTF

Processes and Threads Which information is not associated with a thread’s Thread Control Block (TCB): Program counter CPU registers Memory management information CPU scheduling information Pending I/O information c) Memory management information

Multiprocessing The Windows OS family supports multiple CPUs. Which approach is taken by the Windows scheduler? Symmetric multiprocessing Asymmetric multiprocessing Cooperative multiprocessing a) symmetric multiprocessing

Process Creation - Windows API In Unix, new processes are created using the fork() system call. New programs can be loaded into an existing process using exec(). How does the Unix approach differ from the CreateProcess() system call found in the Windows API? fork()/exec() allows for input/output redirection, CreateProcess() does not fork()/exec() allows for setting up pipes, CreateProcess() does not With exec() the process identifier remains unchanged, with CreateProcess() it changes always fork() implements copy-on-write, CreateProcess() does not c) With exec() the process identifier remains unchanged, with CreateProcess() it changes always.

Windows OS Scheduling Which of the below-mentioned attributes does not fit to the Windows OS scheduling algorithm? Cooperative Preemptive Round-Robin a) Cooperative

Scheduling Algorithms Which one of the below-mentioned operating systems uses a decreasing-priority-Scheduler for a fair-share management of the CPU? MS-DOS Windows Berkeley UNIX 4.2 BSD VMS c) Berkeley UNIX 4.2 BSD

Windows Scheduler The Windows OS kernel scheduler manages: Threads Fibers Processes a) Threads

Threads and Processes Windows - Which statement is true? Threads have exactly one Stack Each process contains at least one thread All threads share security settings of the process they are belonging to b) Each process contains at least one thread.

Windows Processes For a Windows process, the OS maintains various data. Which information is associated with the executive process object? Access Token List of Virtual Address Descriptors (VADs) List of Threads List of open handles List of open windows e) List of open Windows

Processes & Threads Which of the arguments listed below is not related to dividing an application into multiple threads? Better user responsiveness, decoupling of GUI and background execution Take advantage of multiple processors Increased application complexity Better usage of installed main memory d) Better usage of installed main memory

Quantum The prolongation of the quantum value used in the implementation of a scheduling algorithm has the following goal: Increase of throughput Optimization of interactive response time Increase of overall system stability Guarantee of real-time behavior a) Increase of throughput.

User-Space vs. Kernel-Threads The Windows OS family implements multi-threading. Which one of the below-mentioned approaches is not present in the Windows OS? One-to-one mapping of user-space-threads onto kernel-threads One-to-many mapping of user-space-threads onto kernel-threads Many-to-one mapping of user-space-threads onto kernel-threads b) One-to-many mapping of user-space-threads onto kernel-threads.

Priority Elevation The Windows OS scheduler occasionally increases the priority of non-real-time threads. What is the priority of a waiting GUI thread after the occurrence of a GUI event (window message)? 15 Depending on the actual device driver involved 31 Current priority is increased by 2 (but never exceeds 15) d) Current priority is increased by 2 (but never exceeds 15).

Windows priority levels Windows has a total of 32 thread priorities. Which one of the statements below is false: The highest priority is 31 Priorities above 15 are referred to as “realtime” priorities Priorities below 16 are adjusted dynamically by the scheduler Increasing a thread’s priority will make the thread run faster - even on an otherwise empty system d) Increasing a thread’s priority will make the thread run faster - even on an otherwise empty system

Running a program in Windows Which type of programs can be run natively in 32-bit Windows without requiring a helper image? MS-DOS programs Windows 32-bit programs Posix programs OS/2 programs Windows 16-bit programs b) Windows 32-bit programs with .EXE extension