Department of Computer Science Faculty of Engineering, Built Environment & IT University of Pretoria. COS122: Operating Systems
|
|
- Marshall McLaughlin
- 5 years ago
- Views:
Transcription
1 Department of Computer Science Faculty of Engineering, Built Environment & IT University of Pretoria COS122: Operating Systems Exam Opportunity 1 25 August 2018 Initials and Surname: Student Number: Degree: BSc CS BSc IT BIT BIS BEng Other Examiners Mr. Christoph Stallmann, Prof. Stefan Gruner, Prof. Martin Olivier Mr. Avinash Singh, Mr. Werner Hauger, Mr. Jason Gordon Instructions 1. By attempting to write this test you declare automatically that you are in a physically and mentally healthy condition and that you consider yourself fit enough for participation. 2. Read the question paper carefully and answer all the questions which follow. 3. The examination opportunity comprises of 8 questions on 12 pages and you have 120 minutes to complete the test. 4. This is a closed book paper: you may therefore not have any study material with you. 5. You may use a non-programmable pocket calculator. Please switch off your cell phone, and keep it off for the duration of the test. 6. All examination regulations and code of conduct of the University of Pretoria are fully applicable during this test. Question: Total Marks: Score: 1
2 For the statistics of COS122, please indicate (voluntarily) whether you have a study-buddy, or whether you are studing alone without study-buddy. Please mark the answer-box accordingly: I study together with a study-buddy I study alone without a study-buddy Please also indicate (voluntarily) how many hours of preparation you have invested into this semester test: Less than 20 preparation hours Between 20 and 40 preparation hours Between 40 and 60 preparation hours More than 60 preparation hours Many thanks for your voluntary answers, which will help the Department of Computer Science with the development of the academic curriculum. 2
3 Chapter 1 - Computer System Overview 1. (a) Draw the flow chart of a read-from-memory operation with caching where data is read from (4) memory and sent to the CPU. (b) Briefly explain why information between the cache and main memory is exchanged in blocks (2) and not in bytes. Chapter 2 - Operating System Overview 2. (a) Briefly explain how an operating system works as a "shield". (2) 3
4 (b) Briefly explain how computers were used before operating systems came around. (2) (c) Briefly explain the historical connections between operating systems, software engineering, (5) and the "software crisis" of the late 1960s. (d) Draw a diagram of the multi-programming example with three processes (A, B, C) to illustrate (3) the reduction of useless waiting time when multi-programming is in place. 4
5 (e) List the three types of redundancy by means of which a system s fault tolerance can be (3) increased? Chapter 3 - Process Description and Control 3. (a) Name any four reasons for a process to terminate (or be terminated). (4) (b) Draw a six-state process state transition diagram with one suspend state to illustrate the (8) lifetime of a process in an operating system. Clearly label the states and transitions. 5
6 4. Suppose main memory contains three processes. Process A is in memory from address onwards, process B is in memory from address onwards and process C is at address onwards. Process Memory Range A B C Just before timestep 1, process A changes state to Running; at time 1 its first instruction at 2000 will be executed. Process B is at the head of the Ready queue, followed by Process C. B will begin execution at address 4000 and C will begin execution at address None of these processes have any conditional or iteration statements. The code of each process will therefore be executed from its beginning to its end. Process A terminates at instruction 2014, process B terminates at instruction 4015 and process C terminates at instruction Each instruction is executed in one (1) time unit. I/O operations also execute in one time unit, but may be blocked for a longer period of time while waiting for the device to serve the request. Assume furthermore that the dispatcher does not consume any time to execute. Hence, if say, process A executes at time 19 and the dispatcher switches execution to process B, the next instruction of process B will already be executed at time 20. Time slices have a duration of eight (8) time units. All queues are FIFO queues. The five-state process model is used. No new processes arrive during the time that this question refers to. Instructions 2002, 2013, 4004, 4014 and 6006 are I/O instructions. The I/O instructions complete during the following time units. I/O Instruction Completed during Time
7 (a) Use a program trace to determine at what time each of these I/O instructions are initiated. (5) Hint: Keep track of the ready queue to determine which of the processes will execute next. I/O Instruction Initiated at Time (b) Was the processor ever idle during this entire process? If so, during which time period? (1) Chapter 4 - Threads 5. (a) Explain the difference between the following four concepts. Be specific, vague wording like (4) "A is like B" or "A is a subset of B" will not earn you any marks. As part of your explanation, mention how these concepts are related to each other. Unit Description Program Process Thread Fibre 7
8 (b) For the two thread levels below, briefly explain the main advantage of each. The advantage (2) of one is the disadvantage of the other. Type Main Advantage User-level Threads Kernel-level Threads (c) Rank processes, user-level threads, and kernel-level threads according their the average (3) latency of operations. Latency Processes, UL threads, KL threads Slow Medium Fast (d) How can the benefits of both user-level and kernel-levels threads be achieved? (1) 6. (a) You were appointed by Google to improve the concurrency of their DeepDream engine. Google wants you to design a special version of the engine to run on AMD processors. AMD s Ryzen Threadripper can run 32 threads concurrently. Certain tasks, like loading the image files from disk, is currently executed sequentially. Calculate the relative speedup when executing DeepDream on the Threadripper if 25% of the code is sequential. Show the equation used, all steps followed, and present your final answer as a float with 3 decimal places. Also provide a recommendation to Google with a supporting argument whether or not the existing code is efficient enough to run on the 32-threaded processor. (4) 8
9 (b) What is a thread pool and what are their advantages over managing threads manually? (2) (c) How many threads are typically available in a kernel-level thread pool? Why? (2) (d) What is a zombie process? Hint: The are two characteristics applicable here. (2) (e) Name the one feature that allows virtualization in Linux? (1) (f) What is the difference between the interruptible and uninterruptible thread states in Linux? (1) (g) What is an app "window" called in Android? (1) (h) What is the difference between the visible and foreground lifetime in Android? (2) 9
10 (i) The Grand Central Dispatch in Mac allows developers to specify certain sections of the code (1) as blocks which are automatically execute in parallel. Give one word that describes this approach where a function is executed in a non-blocking fashion and can take a callback function that is executed after the block is done. Hint: Apple took this idea from the JavaScript language and it is also a common approach in RPCs. Chapter 5 - Mutual Exclusion and Synchronization 7. (a) Below are three of the six requirements that a facility providing support for mutual exclusion (3) has to meet. List the other three requirements. When no process is in a critical section, any process that requests entry to its critical section must be permitted to enter without delay. No assumptions are made about relative process speeds or number of processors. A process remains inside its critical section for a finite time only. (b) Provide the omitted code for the following struct to implement the two (counting) semaphore (5) primitives. For numbers 3 and 6, choose one of the following comments that describes the given operation in the conditional statement: Remove a process from s.queue and place the process on the ready list. Place this process in s.queue and block the process. struct semaphore int count; queuetype queue; ; void semwait(semaphore s) 1. if( 2. ) 10
11 // 3. void semsignal(semaphore s) 4. if( 5. ) // 6. Snippet/Comment Code/Explanation Snippet 1 Snippet 2 Comment 3 Snippet 4 Snippet 5 Comment 6 (c) The following illustrates the exchange instruction of mutual exclusion with hardware support. (2) Provide the missing snippets. int const n = // Number of processes int bolt; void p(int i) while( 1. ) int key = 1; do exchange( 2., 3. ) while ( 4. ); // Critical section bolt = 0; // Remainder void main() bolr = 0; parbegin (p(1), p(2),..., p(n)); 11
12 Snippet Code Snippet 1 Snippet 2 Snippet 3 Snippet 4 8. Consider the following algorithm that is intended to achieve mutual exclusion between the critical sections of Process 1 and Process 2. // Process 1 flag[0] = true; while(flag[1]) flag[0] = false; // Delay flag[0] = true; // Critical section flag[0] = false; // Process 2 flag[1] = true; while(flag[0]) flag[1] = false; // Delay flag[1] = true; // Critical section flag[1] = false; (a) Will this algorithm ever allow both processes to enter their critical sections at the same (1) time? (b) Name one reason why the algorithm is incorrect. (1) (c) Provide a sequence of events that may cause this algorithm to fail. (3) 12
Operating Systems Comprehensive Exam. Spring Student ID # 3/16/2006
Operating Systems Comprehensive Exam Spring 2006 Student ID # 3/16/2006 You must complete all of part I (60%) You must complete two of the three sections in part II (20% each) In Part I, circle or select
More information(b) External fragmentation can happen in a virtual memory paging system.
Alexandria University Faculty of Engineering Electrical Engineering - Communications Spring 2015 Final Exam CS333: Operating Systems Wednesday, June 17, 2015 Allowed Time: 3 Hours Maximum: 75 points Note:
More informationTENTAMEN / EXAM. TDDB68 / TDDB72 Processprogrammering och operativsystem / Concurrent programming and operating systems 14 jan 2009, 08:00 12:00 TER2
Linköpings universitet IDA Department of Computer and Information Sciences Prof. Dr. Christoph Kessler TENTAMEN / EXAM TDDB68 / TDDB72 Processprogrammering och operativsystem / Concurrent programming and
More informationOperating Systems Comprehensive Exam. Spring Student ID # 2/17/2011
Operating Systems Comprehensive Exam Spring 2011 Student ID # 2/17/2011 You must complete all of Section I You must complete two of the problems in Section II If you need more space to answer a question,
More informationMidterm Exam Amy Murphy 19 March 2003
University of Rochester Midterm Exam Amy Murphy 19 March 2003 Computer Systems (CSC2/456) Read before beginning: Please write clearly. Illegible answers cannot be graded. Be sure to identify all of your
More informationCS 450 Exam 2 Mon. 4/11/2016
CS 450 Exam 2 Mon. 4/11/2016 Name: Rules and Hints You may use one handwritten 8.5 11 cheat sheet (front and back). This is the only additional resource you may consult during this exam. No calculators.
More informationMCS-378 Intraterm Exam 1 Serial #:
MCS-378 Intraterm Exam 1 Serial #: This exam is closed-book and mostly closed-notes. You may, however, use a single 8 1/2 by 11 sheet of paper with hand-written notes for reference. (Both sides of the
More informationOperating Systems Comprehensive Exam. Spring Student ID # 3/20/2013
Operating Systems Comprehensive Exam Spring 2013 Student ID # 3/20/2013 You must complete all of Section I You must complete two of the problems in Section II If you need more space to answer a question,
More informationCS4411 Intro. to Operating Systems Exam 1 Fall points 10 pages
CS4411 Intro. to Operating Systems Exam 1 Fall 2005 (October 6, 2005) 1 CS4411 Intro. to Operating Systems Exam 1 Fall 2005 150 points 10 pages Name: Most of the following questions only require very short
More informationThe concept of concurrency is fundamental to all these areas.
Chapter 5 Concurrency(I) The central themes of OS are all concerned with the management of processes and threads: such as multiprogramming, multiprocessing, and distributed processing. The concept of concurrency
More information2017 Pearson Educa2on, Inc., Hoboken, NJ. All rights reserved.
Operating Systems: Internals and Design Principles Chapter 4 Threads Ninth Edition By William Stallings Processes and Threads Resource Ownership Process includes a virtual address space to hold the process
More informationCMPSCI 377: Operating Systems Exam 1: Processes, Threads, CPU Scheduling and Synchronization. October 9, 2002
Name: Student Id: General instructions: CMPSCI 377: Operating Systems Exam 1: Processes, Threads, CPU Scheduling and Synchronization October 9, 2002 This examination booklet has 10 pages. Do not forget
More informationOperating Systems Comprehensive Exam. Fall Student ID # 10/31/2013
Operating Systems Comprehensive Exam Fall 2013 Student ID # 10/31/2013 You must complete all of Section I You must complete two of the problems in Section II If you need more space to answer a question,
More informationThere are 13 total numbered pages, 7 Questions.
UNIVERSITY OF TORONTO FACULTY OF APPLIED SCIENCE AND ENGINEERING FINAL EXAMINATION, April, 2017 Third Year Materials ECE344H1 - Operating Systems Calculator Type: 4 Exam Type: A Examiner D. Yuan Please
More informationMidterm Exam Solutions and Grading Guidelines March 3, 1999 CS162 Operating Systems
University of California, Berkeley College of Engineering Computer Science Division EECS Spring 1999 Anthony D. Joseph Midterm Exam Solutions and Grading Guidelines March 3, 1999 CS162 Operating Systems
More informationCROWDMARK. Examination Midterm. Spring 2017 CS 350. Closed Book. Page 1 of 30. University of Waterloo CS350 Midterm Examination.
Times: Thursday 2017-06-22 at 19:00 to 20:50 (7 to 8:50PM) Duration: 1 hour 50 minutes (110 minutes) Exam ID: 3520593 Please print in pen: Waterloo Student ID Number: WatIAM/Quest Login Userid: Sections:
More informationSuggested Solutions (Midterm Exam October 27, 2005)
Suggested Solutions (Midterm Exam October 27, 2005) 1 Short Questions (4 points) Answer the following questions (True or False). Use exactly one sentence to describe why you choose your answer. Without
More informationDEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING UNIT I
DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING Year and Semester : II / IV Subject Code : CS6401 Subject Name : Operating System Degree and Branch : B.E CSE UNIT I 1. Define system process 2. What is an
More informationUNIVERSITY OF MORATUWA
UNIVERSITY OF MORATUWA FACULTY OF ENGINEERING DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING B.Sc. Engineering 2012 Intake Semester 8 Examination CS4532 CONCURRENT PROGRAMMING Time allowed: 2 Hours March
More informationCS4411 Intro. to Operating Systems Final Fall points 12 pages
CS44 Intro. to Operating Systems Final Exam Fall 5 CS44 Intro. to Operating Systems Final Fall 5 points pages Name: Most of the following questions only require very short answers. Usually a few sentences
More informationOperating Systems (1DT020 & 1TT802)
Uppsala University Department of Information Technology Name: Perso. no: Operating Systems (1DT020 & 1TT802) 2009-05-27 This is a closed book exam. Calculators are not allowed. Answers should be written
More informationCMPS 111 Spring 2013 Prof. Scott A. Brandt Midterm Examination May 6, Name: ID:
CMPS 111 Spring 2013 Prof. Scott A. Brandt Midterm Examination May 6, 2013 Name: ID: This is a closed note, closed book exam. There are 23 multiple choice questions, 6 short answer questions. Plan your
More informationCS 140 Midterm Examination Winter Quarter, 2012
CS 140 Midterm Examination Winter Quarter, 2012 You have 1.5 hours (90 minutes) for this examination; the number of points for each question indicates roughly how many minutes you should spend on that
More informationChapter 3 Processes. Process Concept. Process Concept. Process Concept (Cont.) Process Concept (Cont.) Process Concept (Cont.)
Process Concept Chapter 3 Processes Computers can do several activities at a time Executing user programs, reading from disks writing to a printer, etc. In multiprogramming: CPU switches from program to
More informationLecture 2 Process Management
Lecture 2 Process Management Process Concept An operating system executes a variety of programs: Batch system jobs Time-shared systems user programs or tasks The terms job and process may be interchangeable
More informationKEY CENG 334. Midterm. Question 1. Question 2. Question 3. Question 4. Question 5. Question 6. Total. Name, SURNAME and ID
00 11 00 11 01 01 01 01 01 01 00 11 00 11 Name, SURNAME and ID Middle East Technical University Department of Computer Engineering KEY CENG 334 Section 2 and 3 Spring 2010-2011 Midterm Duration: 120 minutes.
More informationCHAPTER 3 - PROCESS CONCEPT
CHAPTER 3 - PROCESS CONCEPT 1 OBJECTIVES Introduce a process a program in execution basis of all computation Describe features of processes: scheduling, creation, termination, communication Explore interprocess
More informationCSE 451 Midterm 1. Name:
CSE 451 Midterm 1 Name: 1. [2 points] Imagine that a new CPU were built that contained multiple, complete sets of registers each set contains a PC plus all the other registers available to user programs.
More informationDEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING UNIT-1
DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING Year & Semester Section Subject Code Subject Name Degree & Branch : I & II : M.E : CP7204 : Advanced Operating Systems : M.E C.S.E. 1. Define Process? UNIT-1
More informationCOMP 2320 Operating Systems 1st Semester, Mid-term Examination
Page 1 of 9 Time Allowed: 50 Minutes Answer all SIX questions (total 63 marks) Questions are printed on both side. This is a closed book examination COMP 2320 Operating Systems 1st Semester, 2006-2007
More informationVALLIAMMAI ENGINEERING COLLEGE
VALLIAMMAI ENGINEERING COLLEGE SRM Nagar, Kattankulathur 603 203 DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING QUESTION BANK II SEMESTER CP7204 Advanced Operating Systems Regulation 2013 Academic Year
More informationLecture 6. Process Synchronization
Lecture 6 Process Synchronization 1 Lecture Contents 1. Principles of Concurrency 2. Hardware Support 3. Semaphores 4. Monitors 5. Readers/Writers Problem 2 1. Principles of Concurrency OS design issue
More informationCSc33200: Operating Systems, CS-CCNY, Fall 2003 Jinzhong Niu December 10, Review
CSc33200: Operating Systems, CS-CCNY, Fall 2003 Jinzhong Niu December 10, 2003 Review 1 Overview 1.1 The definition, objectives and evolution of operating system An operating system exploits and manages
More informationComputer System Architecture Final Examination Spring 2002
Computer System Architecture 6.823 Final Examination Spring 2002 Name: This is an open book, open notes exam. 180 Minutes 22 Pages Notes: Not all questions are of equal difficulty, so look over the entire
More informationCSE473/Spring st Midterm Exam Tuesday, February 19, 2007 Professor Trent Jaeger
CSE473/Spring 2008-1st Midterm Exam Tuesday, February 19, 2007 Professor Trent Jaeger Please read the instructions and questions carefully. You will be graded for clarity and correctness. You have 75 minutes
More informationConcurrency, Mutual Exclusion and Synchronization C H A P T E R 5
Concurrency, Mutual Exclusion and Synchronization C H A P T E R 5 Multiple Processes OS design is concerned with the management of processes and threads: Multiprogramming Multiprocessing Distributed processing
More informationConcurrent & Distributed Systems Supervision Exercises
Concurrent & Distributed Systems Supervision Exercises Stephen Kell Stephen.Kell@cl.cam.ac.uk November 9, 2009 These exercises are intended to cover all the main points of understanding in the lecture
More informationDepartment of Computer applications. [Part I: Medium Answer Type Questions]
Department of Computer applications BBDNITM, Lucknow MCA 311: OPERATING SYSTEM [Part I: Medium Answer Type Questions] UNIT 1 Q1. What do you mean by an Operating System? What are the main functions of
More informationCONCURRENCY:MUTUAL EXCLUSION AND SYNCHRONIZATION
M05_STAL6329_06_SE_C05.QXD 2/21/08 9:25 PM Page 205 CHAPTER CONCURRENCY:MUTUAL EXCLUSION AND SYNCHRONIZATION 5.1 Principles of Concurrency A Simple Example Race Condition Operating System Concerns Process
More informationFor use by students enrolled in #71251 CSE430 Fall 2012 at Arizona State University. Do not use if not enrolled.
Operating Systems: Internals and Design Principles Chapter 4 Threads Seventh Edition By William Stallings Operating Systems: Internals and Design Principles The basic idea is that the several components
More informationLecture. DM510 - Operating Systems, Weekly Notes, Week 11/12, 2018
Lecture In the lecture on March 13 we will mainly discuss Chapter 6 (Process Scheduling). Examples will be be shown for the simulation of the Dining Philosopher problem, a solution with monitors will also
More informationCPSC 261 Midterm 2 Thursday March 17 th, 2016
CPSC 261 Midterm 2 Thursday March 17 th, 2016 [9] 1. Multiple choices [5] (a) Among the following terms, circle all of those that refer to a responsibility of a thread scheduler: Solution : Avoiding deadlocks
More informationCOMP 3361: Operating Systems 1 Final Exam Winter 2009
COMP 3361: Operating Systems 1 Final Exam Winter 2009 Name: Instructions This is an open book exam. The exam is worth 100 points, and each question indicates how many points it is worth. Read the exam
More informationDo not start the test until instructed to do so!
CS 3204 Operating Systems Midterm (Abrams) Spring 2004 VIRG INIA POLYTECHNIC INSTITUTE AND STATE U T PRO SI M UNI VERSI TY Instructions: Do not start the test until instructed to do so! Print your name
More informationOperating Systems: Internals and Design Principles. Chapter 4 Threads Seventh Edition By William Stallings
Operating Systems: Internals and Design Principles Chapter 4 Threads Seventh Edition By William Stallings Operating Systems: Internals and Design Principles The basic idea is that the several components
More informationCS 5523 Operating Systems: Midterm II - reivew Instructor: Dr. Tongping Liu Department Computer Science The University of Texas at San Antonio
CS 5523 Operating Systems: Midterm II - reivew Instructor: Dr. Tongping Liu Department Computer Science The University of Texas at San Antonio Fall 2017 1 Outline Inter-Process Communication (20) Threads
More informationMidterm Exam March 3, 1999 CS162 Operating Systems
University of California, Berkeley College of Engineering Computer Science Division EECS Spring 1999 Anthony D. Joseph Midterm Exam March 3, 1999 CS162 Operating Systems Your Name: SID: TA: Discussion
More informationUnit 3 : Process Management
Unit : Process Management Processes are the most widely used units of computation in programming and systems, although object and threads are becoming more prominent in contemporary systems. Process management
More informationSNS COLLEGE OF ENGINEERING
SNS COLLEGE OF ENGINEERING Coimbatore. Department of Computer Science and Engineering Question Bank- Even Semester 2015-2016 CS6401 OPERATING SYSTEMS Unit-I OPERATING SYSTEMS OVERVIEW 1. Differentiate
More informationGeneral Objectives: To understand the process management in operating system. Specific Objectives: At the end of the unit you should be able to:
F2007/Unit5/1 UNIT 5 OBJECTIVES General Objectives: To understand the process management in operating system Specific Objectives: At the end of the unit you should be able to: define program, process and
More informationMultiprocessor and Real- Time Scheduling. Chapter 10
Multiprocessor and Real- Time Scheduling Chapter 10 Classifications of Multiprocessor Loosely coupled multiprocessor each processor has its own memory and I/O channels Functionally specialized processors
More informationTHE AUSTRALIAN NATIONAL UNIVERSITY Mid-semester Quiz, Second Semester COMP2310 (Concurrent and Distributed Systems)
THE AUSTRALIAN NATIONAL UNIVERSITY Mid-semester Quiz, Second Semester 2001 COMP2310 (Concurrent and Distributed Systems) Writing Period: 65 minutes duration Study Period: 0 minutes duration Permitted Materials:
More informationSTUDENT NAME: STUDENT ID: Problem 1 Problem 2 Problem 3 Problem 4 Problem 5 Total
University of Minnesota Department of Computer Science CSci 5103 - Fall 2016 (Instructor: Tripathi) Midterm Exam 1 Date: October 17, 2016 (4:00 5:15 pm) (Time: 75 minutes) Total Points 100 This exam contains
More informationChapter 3: Processes. Operating System Concepts 9 th Edition
Chapter 3: Processes Silberschatz, Galvin and Gagne 2013 Chapter 3: Processes Process Concept Process Scheduling Operations on Processes Interprocess Communication Examples of IPC Systems Communication
More informationThis exam paper contains 8 questions (12 pages) Total 100 points. Please put your official name and NOT your assumed name. First Name: Last Name:
CSci 4061: Introduction to Operating Systems (Spring 2013) Final Exam May 14, 2013 (4:00 6:00 pm) Open Book and Lecture Notes (Bring Your U Photo Id to the Exam) This exam paper contains 8 questions (12
More informationCPS 310 midterm exam #2, 4/10/2017
CPS 310 midterm exam #2, 4/10/2017 Your name please: NetID: Sign for your honor: Answer all questions. Please attempt to confine your answers to the space provided. Allocate your time carefully: you have
More informationUNIT -3 PROCESS AND OPERATING SYSTEMS 2marks 1. Define Process? Process is a computational unit that processes on a CPU under the control of a scheduling kernel of an OS. It has a process structure, called
More informationCOMP SCI 3SH3: Operating System Concepts (Term 2 Winter 2006) Test 2 February 27, 2006; Time: 50 Minutes ;. Questions Instructor: Dr.
COMP SCI 3SH3: Operating System Concepts (Term 2 Winter 2006) Test 2 February 27, 2006; Time: 50 Minutes ;. Questions Instructor: Dr. Kamran Sartipi Name: Student ID: Question 1 (Disk Block Allocation):
More informationMCT611 Computer Architecture & Operating Systems Module Handbook. Master of Science in Software Engineering & Database Technologies (MScSED)
MCT611 Computer Architecture & Operating Systems Module Handbook Master of Science in Software Engineering & Database Technologies (MScSED) Table of Contents 1 Module Details... 2 1.1 Module Description...2
More informationChapter 6: Process Synchronization. Operating System Concepts 8 th Edition,
Chapter 6: Process Synchronization, Silberschatz, Galvin and Gagne 2009 Module 6: Process Synchronization Background The Critical-Section Problem Peterson s Solution Synchronization Hardware Semaphores
More informationEastern Mediterranean University School of Computing and Technology Department of Information Technology. ITEC202 Operating Systems
Page 1 of 8 ITEC202 Operating Systems, Midterm Exam Eastern Mediterranean University School of Computing and Technology Department of Information Technology ITEC202 Operating Systems ITEC 202 Midterm Examination
More informationStudent Name:.. Student ID... Course Code: CSC 227 Course Title: Semester: Fall Exercises Cover Sheet:
King Saud University College of Computer and Information Sciences Computer Science Department Course Code: CSC 227 Course Title: Operating Systems Semester: Fall 2016-2017 Exercises Cover Sheet: Final
More informationMidterm Exam March 13, 2013 CS162 Operating Systems
University of California, Berkeley College of Engineering Computer Science Division EECS Spring 2013 Anthony D. Joseph Midterm Exam March 13, 2013 CS162 Operating Systems Your Name: SID AND 162 Login:
More informationCS 450 Exam 2 Mon. 11/7/2016
CS 450 Exam 2 Mon. 11/7/2016 Name: Rules and Hints You may use one handwritten 8.5 11 cheat sheet (front and back). This is the only additional resource you may consult during this exam. No calculators.
More informationOperating Systems (Classroom Practice Booklet Solutions)
Operating Systems (Classroom Practice Booklet Solutions) 1. Process Management I 1. Ans: (c) 2. Ans: (c) 3. Ans: (a) Sol: Software Interrupt is generated as a result of execution of a privileged instruction.
More informationINSTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) Dundigal, Hyderabad
INSTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) Dundigal, Hyderabad - 500 043 INFORMATION TECHNOLOGY TUTORIAL QUESTION BANK Course Name Course Code Class Branch OPERATING SYSTEMS ACS007 IV Semester
More informationProcess Management And Synchronization
Process Management And Synchronization In a single processor multiprogramming system the processor switches between the various jobs until to finish the execution of all jobs. These jobs will share the
More informationSections 01 (11:30), 02 (16:00), 03 (8:30) Ashraf Aboulnaga & Borzoo Bonakdarpour
Course CS350 - Operating Systems Sections 01 (11:30), 02 (16:00), 03 (8:30) Instructor Ashraf Aboulnaga & Borzoo Bonakdarpour Date of Exam October 25, 2011 Time Period 19:00-21:00 Duration of Exam Number
More informationCLASS: II YEAR / IV SEMESTER CSE SUBJECT CODE AND NAME: CS6401 OPERATING SYSTEMS UNIT I OPERATING SYSTEMS OVERVIEW
CLASS: II YEAR / IV SEMESTER CSE SUBJECT CODE AND NAME: CS6401 OPERATING SYSTEMS SYLLABUS UNIT I OPERATING SYSTEMS OVERVIEW Computer System Overview-Basic Elements, Instruction Execution, Interrupts, Memory
More informationIndian Institute of Technology, Kharagpur
1 Indian Institute of Technology, Kharagpur End-Spring Semester 2017-18 Date of Examination: 24-04-2018 Session: AN (2-5 pm) Duration: 3 hrs Subject No.: CS31702 Subject: COMPUTER ARCHITECTURE AND OPERATING
More informationOPERATING SYSTEMS ECSE 427/COMP SECTION 01 WEDNESDAY, DECEMBER 7, 2016, 9:00 AM
December 2016 Final Examination OPERATING SYSTEMS ECSE 427/COMP 310 - SECTION 01 WEDNESDAY DECEMBER 7 2016 9:00 AM Examiner: Assoc Examiner: Student Name: Answers McGill ID: INSTRUCTIONS: This is a CLOSED
More informationTHE AUSTRALIAN NATIONAL UNIVERSITY Mid Semester Examination April COMP3320/6464 High Performance Scientific Computing
THE AUSTRALIAN NATIONAL UNIVERSITY Mid Semester Examination April 2012 COMP3320/6464 High Performance Scientific Computing Study Period: 15 minutes Time Allowed: 90 hours Permitted Materials: NONE The
More informationCS4411 Intro. to Operating Systems Final Fall points 10 pages
CS44 Intro. to Operating Systems Final Exam Fall 9 CS44 Intro. to Operating Systems Final Fall 9 points pages Name: Most of the following questions only require very short answers. Usually a few sentences
More informationComp 310 Computer Systems and Organization
Comp 310 Computer Systems and Organization Lecture #10 Process Management (CPU Scheduling & Synchronization) 1 Prof. Joseph Vybihal Announcements Oct 16 Midterm exam (in class) In class review Oct 14 (½
More informationSynchronization Principles
Synchronization Principles Gordon College Stephen Brinton The Problem with Concurrency Concurrent access to shared data may result in data inconsistency Maintaining data consistency requires mechanisms
More informationUniversity of California at Berkeley College of Engineering Department of Electrical Engineering and Computer Science
University of California at Berkeley College of Engineering Department of Electrical Engineering and Computer Science CS 162 Spring 2010 I. Stoica FIRST MIDTERM EXAMINATION Tuesday, March 9, 2010 INSTRUCTIONS
More information( D ) 4. Which is not able to solve the race condition? (A) Test and Set Lock (B) Semaphore (C) Monitor (D) Shared memory
CS 540 - Operating Systems - Final Exam - Name: Date: Wenesday, May 12, 2004 Part 1: (78 points - 3 points for each problem) ( C ) 1. In UNIX a utility which reads commands from a terminal is called: (A)
More informationCSC 1600: Chapter 6. Synchronizing Threads. Semaphores " Review: Multi-Threaded Processes"
CSC 1600: Chapter 6 Synchronizing Threads with Semaphores " Review: Multi-Threaded Processes" 1 badcnt.c: An Incorrect Program" #define NITERS 1000000 unsigned int cnt = 0; /* shared */ int main() pthread_t
More informationCS-537: Midterm Exam (Spring 2001)
CS-537: Midterm Exam (Spring 2001) Please Read All Questions Carefully! There are seven (7) total numbered pages Name: 1 Grading Page Points Total Possible Part I: Short Answers (12 5) 60 Part II: Long
More informationPart II Process Management Chapter 6: Process Synchronization
Part II Process Management Chapter 6: Process Synchronization 1 Process Synchronization Why is synchronization needed? Race Conditions Critical Sections Pure Software Solutions Hardware Support Semaphores
More informationDr. D. M. Akbar Hussain DE5 Department of Electronic Systems
Concurrency 1 Concurrency Execution of multiple processes. Multi-programming: Management of multiple processes within a uni- processor system, every system has this support, whether big, small or complex.
More informationFinal Examination (Fall 2016) (Section 1)
CS 453/552: Operating Systems Final Examination (Fall 2016) (Section 1) Time: 120 minutes Name : Total Points: 150 Please read the following carefully. You get five points for writing your name above!
More informationDept. of CSE, York Univ. 1
EECS 3221.3 Operating System Fundamentals No.5 Process Synchronization(1) Prof. Hui Jiang Dept of Electrical Engineering and Computer Science, York University Background: cooperating processes with shared
More informationKing Fahd University of Petroleum and Minerals. Write clearly, precisely, and briefly!!
1 King Fahd University of Petroleum and Minerals Information and Computer Science Department ICS 431: Operating System FINAL EXAM DO NOT OPEN UNTIL INSTRUCTED TO DO SO!!!! Write clearly, precisely, and
More informationStudent Name: University of California at Berkeley College of Engineering Department of Electrical Engineering and Computer Science
University of California at Berkeley College of Engineering Department of Electrical Engineering and Computer Science CS 162 Spring 2011 I. Stoica FIRST MIDTERM EXAMINATION Wednesday, March 9, 2011 INSTRUCTIONS
More informationThis slide show uses materials from the Windows Operating System Internals Curriculum Development Kit
This slide show uses materials from the Windows Operating System Internals Curriculum Development Kit --From the Windows Operating System Internals Curriculum Development Kit Although programs and processes
More informationComp2310 & Comp6310 Systems, Networks and Concurrency
The Australian National University Mid Semester Examination August 2018 Comp2310 & Comp6310 Systems, Networks and Concurrency Study period: 15 minutes Time allowed: 1.5 hours (after study period) Total
More informationCSC Operating Systems Spring Lecture - XII Midterm Review. Tevfik Ko!ar. Louisiana State University. March 4 th, 2008.
CSC 4103 - Operating Systems Spring 2008 Lecture - XII Midterm Review Tevfik Ko!ar Louisiana State University March 4 th, 2008 1 I/O Structure After I/O starts, control returns to user program only upon
More informationCSE 451 Midterm Exam May 13 th, 2009
CSE 451 Midterm Exam May 13 th, 2009 Your Name: Student ID: General Information: This is a closed book examination. You have 50 minutes to answer as many questions as possible. The number in parentheses
More informationCS 351 Exam 3 Mon. 5/11/2015
CS 351 Exam 3 Mon. 5/11/2015 Name: Rules and Hints You may use one handwritten 8.5 11 cheat sheet (front and back). This is the only additional resource you may consult during this exam. No calculators.
More informationModule 1. Introduction:
Module 1 Introduction: Operating system is the most fundamental of all the system programs. It is a layer of software on top of the hardware which constitutes the system and manages all parts of the system.
More informationCMPSC 311 Such Final Very Exam
Section: 2:30 3:35 Name: CMPSC 311 Such Final Very Exam May 5, 2014 Closed book, closed neighbor, no electronic tools or additional papers. You may not share or discuss exam questions with anyone. This
More informationCS604 - Operating System Solved Subjective Midterm Papers For Midterm Exam Preparation
CS604 - Operating System Solved Subjective Midterm Papers For Midterm Exam Preparation The given code is as following; boolean flag[2]; int turn; do { flag[i]=true; turn=j; while(flag[j] && turn==j); critical
More informationFaculty of Environment and Technology
Faculty of Environment and Technology Academic Year: 12/13 Examination Period: January Module Leader: Module Code: Title of Module: Craig Duffy UFCEHX-20-2 Computer Networks and Operating Systems Duration
More informationPESIT Bangalore South Campus
INTERNAL ASSESSMENT TEST II Date: 04/04/2018 Max Marks: 40 Subject & Code: Operating Systems 15CS64 Semester: VI (A & B) Name of the faculty: Mrs.Sharmila Banu.A Time: 8.30 am 10.00 am Answer any FIVE
More informationGraduate Examination. Department of Computer Science The University of Arizona Spring March 5, Instructions
Graduate Examination Department of Computer Science The University of Arizona Spring 2004 March 5, 2004 Instructions This examination consists of ten problems. The questions are in three areas: 1. Theory:
More informationOPERATING SYSTEMS. UNIT II Sections A, B & D. An operating system executes a variety of programs:
OPERATING SYSTEMS UNIT II Sections A, B & D PREPARED BY ANIL KUMAR PRATHIPATI, ASST. PROF., DEPARTMENT OF CSE. PROCESS CONCEPT An operating system executes a variety of programs: Batch system jobs Time-shared
More informationLecture 5: Process Description and Control Multithreading Basics in Interprocess communication Introduction to multiprocessors
Lecture 5: Process Description and Control Multithreading Basics in Interprocess communication Introduction to multiprocessors 1 Process:the concept Process = a program in execution Example processes:
More informationMidterm Exam Answers
Department of Electrical Engineering and Computer Science MASSACHUSETTS INSTITUTE OF TECHNOLOGY 6.824 Fall 2002 Midterm Exam Answers The average score was 55 (out of 80). Here s the distribution: 10 8
More informationCPS 310 first midterm exam, 2/26/2014
CPS 310 first midterm exam, 2/26/2014 Your name please: Part 1. More fun with forks (a) What is the output generated by this program? In fact the output is not uniquely defined, i.e., it is not necessarily
More information