Copyright Notice David A. Solomon and Mark Russinovich

Similar documents
Unit OS2: Operating System Principles. Windows Operating System Internals - by David A. Solomon and Mark E. Russinovich with Andreas Polze

Case Study. Windows XP. Windows Operating System Internals - by David A. Solomon and Mark E. Russinovich with Andreas Polze

CISC 7310X. C05: CPU Scheduling. Hui Chen Department of Computer & Information Science CUNY Brooklyn College. 3/1/2018 CUNY Brooklyn College

Copyright Notice David A. Solomon and Mark Russinovich

CHAPTER 2: PROCESS MANAGEMENT

Mid Term from Feb-2005 to Nov 2012 CS604- Operating System

Announcements. Reading. Project #1 due in 1 week at 5:00 pm Scheduling Chapter 6 (6 th ed) or Chapter 5 (8 th ed) CMSC 412 S14 (lect 5)

(MCQZ-CS604 Operating Systems)

ALL the assignments (A1, A2, A3) and Projects (P0, P1, P2) we have done so far.

SMD149 - Operating Systems

Scheduling. Scheduling 1/51

CPU Scheduling. Operating Systems (Fall/Winter 2018) Yajin Zhou ( Zhejiang University

Last Class: CPU Scheduling. Pre-emptive versus non-preemptive schedulers Goals for Scheduling: CS377: Operating Systems.

Lecture 2 Process Management

Chapter 6: CPU Scheduling. Operating System Concepts 9 th Edition

Threads Implementation. Jin-Soo Kim Computer Systems Laboratory Sungkyunkwan University

Operating Systems Comprehensive Exam. Spring Student ID # 3/16/2006

Scheduling. Scheduling 1/51

University of Ottawa School of Information Technology and Engineering

Scheduling in the Supermarket

Processes and Threads

OPERATING SYSTEMS. UNIT II Sections A, B & D. An operating system executes a variety of programs:

Lecture 17: Threads and Scheduling. Thursday, 05 Nov 2009

CS370 Operating Systems

CS370 Operating Systems

Threads and Too Much Milk! CS439: Principles of Computer Systems January 31, 2018

CSI3131 Final Exam Review

Threads and Too Much Milk! CS439: Principles of Computer Systems February 6, 2019

LECTURE 3:CPU SCHEDULING

CS 571 Operating Systems. Midterm Review. Angelos Stavrou, George Mason University

CPU Scheduling. Basic Concepts. Histogram of CPU-burst Times. Dispatcher. CPU Scheduler. Alternating Sequence of CPU and I/O Bursts

Department of Computer applications. [Part I: Medium Answer Type Questions]

Process and Thread Management

Outline. Process and Thread Management. Data Structures (2) Data Structures. Kernel Process Block (PCB)

Operating Systems CMPSCI 377 Spring Mark Corner University of Massachusetts Amherst

CSE 153 Design of Operating Systems Fall 2018

Motivation. Threads. Multithreaded Server Architecture. Thread of execution. Chapter 4

What is a Process? Processes and Process Management Details for running a program

Introduction to OS Processes in Unix, Linux, and Windows MOS 2.1 Mahmoud El-Gayyar

Operating Systems Comprehensive Exam. Spring Student ID # 3/20/2013

Linux Operating System

Chapter 4: Multi-Threaded Programming

CPU Scheduling: Objectives

CS370 Operating Systems

Chapter 6: CPU Scheduling

CS 3733 Operating Systems

CSE 153 Design of Operating Systems

OS Structure, Processes & Process Management. Don Porter Portions courtesy Emmett Witchel

Processes. CS 475, Spring 2018 Concurrent & Distributed Systems

Operating Systems. Computer Science & Information Technology (CS) Rank under AIR 100

CMPS 111 Spring 2003 Midterm Exam May 8, Name: ID:

OPERATING SYSTEMS: Lesson 4: Process Scheduling

Chapter 5: CPU Scheduling

Scheduling Mar. 19, 2018

518 Lecture Notes Week 3

CPSC 341 OS & Networks. Processes. Dr. Yingwu Zhu

MC7204 OPERATING SYSTEMS

Chapter 5 CPU scheduling

System Call. Preview. System Call. System Call. System Call 9/7/2018

Announcements/Reminders

Chapter 5: CPU Scheduling. Operating System Concepts 8 th Edition,

Teaching Operating Systems: The Windows Case

Jan 20, 2005 Lecture 2: Multiprogramming OS

Sample Questions. Amir H. Payberah. Amirkabir University of Technology (Tehran Polytechnic)

CSE 4/521 Introduction to Operating Systems. Lecture 29 Windows 7 (History, Design Principles, System Components, Programmer Interface) Summer 2018

Windows History 2009 Windows 7 2

Thread Concept. Thread. No. 3. Multiple single-threaded Process. One single-threaded Process. Process vs. Thread. One multi-threaded Process

CPU Scheduling. CSE 2431: Introduction to Operating Systems Reading: Chapter 6, [OSC] (except Sections )

Unit OS A: Windows Networking

Mon Sep 17, 2007 Lecture 3: Process Management

Chapter 4: Multithreaded Programming

Uniprocessor Scheduling. Basic Concepts Scheduling Criteria Scheduling Algorithms. Three level scheduling

PROCESSES & THREADS. Charles Abzug, Ph.D. Department of Computer Science James Madison University Harrisonburg, VA Charles Abzug

Page 1. Analogy: Problems: Operating Systems Lecture 7. Operating Systems Lecture 7

Process- Concept &Process Scheduling OPERATING SYSTEMS

Processes and Threads

TDIU25: Operating Systems II. Processes, Threads and Scheduling

CSC 716 Advanced Operating System Fall 2007 Exam 1. Answer all the questions. The maximum credit for each question is as shown.

Properties of Processes

CS418 Operating Systems

Exercise (could be a quiz) Solution. Concurrent Programming. Roadmap. Tevfik Koşar. CSE 421/521 - Operating Systems Fall Lecture - IV Threads

Operating Systems and Networks Assignment 2

Announcements. Program #1. Program #0. Reading. Is due at 9:00 AM on Thursday. Re-grade requests are due by Monday at 11:59:59 PM.

CS370 Operating Systems

Processes. Overview. Processes. Process Creation. Process Creation fork() Processes. CPU scheduling. Pål Halvorsen 21/9-2005

Announcements. Program #1. Reading. Due 2/15 at 5:00 pm. Finish scheduling Process Synchronization: Chapter 6 (8 th Ed) or Chapter 7 (6 th Ed)

Chapter 5: CPU Scheduling

SAMPLE MIDTERM QUESTIONS

POSIX Threads Programming

Threads. Thread Concept Multithreading Models User & Kernel Threads Pthreads Threads in Solaris, Linux, Windows. 2/13/11 CSE325 - Threads 1

Operating Systems. II. Processes

Chapter 5: CPU Scheduling

Chapter 5: CPU Scheduling. Operating System Concepts Essentials 8 th Edition

CS 475. Process = Address space + one thread of control Concurrent program = multiple threads of control

PROCESSES. Jo, Heeseung

Processes. Jo, Heeseung

Comp 310 Computer Systems and Organization

CS 326: Operating Systems. CPU Scheduling. Lecture 6

Processes. Process Scheduling, Process Synchronization, and Deadlock will be discussed further in Chapters 5, 6, and 7, respectively.

CSCI-GA Operating Systems Lecture 3: Processes and Threads -Part 2 Scheduling Hubertus Franke

Transcription:

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) 1 1

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? a) Maximum CPU utilization b) Maximum throughput c) Minimal turnaround time d) Minimal waiting time e) Minimal response time f) Maximum Mean Time To Failure (MTTF) 2 Processes and Threads Which information is not associated with a thread s Thread Control Block (TCB): a) Program counter b) CPU registers c) Memory management information d) CPU scheduling information e) Pending I/O information 3 2

Multiprocessing The Windows OS family supports multiple CPUs. Which approach is taken by the Windows scheduler? a) Symmetric multiprocessing b) Asymmetric multiprocessing c) Cooperative multiprocessing 4 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? a) fork()/exec() allows for input/output redirection, CreateProcess() does not b) fork()/exec() allows for setting up pipes, CreateProcess() does not c) With exec() the process identifier remains unchanged, with CreateProcess() it changes always d) fork() implements copy-on-write, CreateProcess() does not 5 3

Windows OS Scheduling Which of the below-mentioned attributes does not fit to the Windows OS scheduling algorithm? a) Cooperative b) Preemptive c) Round-Robin 6 Scheduling Algorithms Which one of the below-mentioned operating systems uses a decreasing-priority-scheduler for a fair-share management of the CPU? a) MS-DOS b) Windows NT/2000/XP c) Berkeley UNIX 4.2 BSD d) VMS 7 4

Windows Scheduler The Windows OS kernel scheduler manages: a) Threads b) Fibers c) Processes 8 Threads and Processes Windows NT/2000/XP - Which statement is true? a) Threads have exactly one Stack b) Each process contains at least one thread c) All threads share security settings of the process they are belonging to 9 5

Windows Processes For a Windows process, the OS maintains various data. Which information is associated with the executive process object? a) Access Token b) List of Virtual Address Descriptors (VADs) c) List of Threads d) List of open handles e) List of open windows 10 Processes & Threads Which of the arguments listed below is not related to dividing an application into multiple threads? a) Better user responsiveness, decoupling of GUI and background execution b) Take advantage of multiple processors c) Increased application complexity d) Better usage of installed main memory 11 6

Quantum The prolongation of the quantum value used in the implementation of a scheduling algorithm has the following goal: a) Increase of throughput b) Optimization of interactive response time c) Increase of overall system stability d) Guarantee of real-time behavior 12 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? a) One-to-one mapping of user-space-threads onto kernel-threads b) One-to-many mapping of user-space-threads onto kernel-threads c) Many-to-one mapping of user-space-threads onto kernel-threads 13 7

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)? a) 15 b) Depending on the actual device driver involved c) 31 d) Current priority is increased by 2 (but never exceeds 15) 14 Windows priority levels Windows has a total of 32 thread priorities. Which one of the statements below is false: a) The highest priority is 31 b) Priorities above 15 are referred to as realtime priorities c) Priorities below 16 are adjusted dynamically by the scheduler d) Increasing a thread s priority will make the thread run faster - even on an otherwise empty system 15 8

Running a program in Windows Which type of programs can be run natively in 32-bit Windows without requiring a helper image? a) MS-DOS programs b) Windows 32-bit programs c) Posix programs d) OS/2 programs e) Windows 16-bit programs 16 9