CS 143A Quiz 1 Solution.

Slides:



Advertisements
Similar presentations
Processes and Threads Chapter 3 and 4 Operating Systems: Internals and Design Principles, 6/E William Stallings Patricia Roy Manatee Community College,
Advertisements

Chapter 3 Process Description and Control
CSC 501 Lecture 2: Processes. Von Neumann Model Both program and data reside in memory Execution stages in CPU: Fetch instruction Decode instruction Execute.
Process Description and Control
Processes CSCI 444/544 Operating Systems Fall 2008.
Advanced OS Chapter 3p2 Sections 3.4 / 3.5. Interrupts These enable software to respond to signals from hardware. The set of instructions to be executed.
CS-502 Fall 2006Processes in Unix, Linux, & Windows 1 Processes in Unix, Linux, and Windows CS502 Operating Systems.
Computer System Structures memory memory controller disk controller disk controller printer controller printer controller tape-drive controller tape-drive.
Unix & Windows Processes 1 CS502 Spring 2006 Unix/Windows Processes.
1 Process Description and Control Chapter 3 = Why process? = What is a process? = How to represent processes? = How to control processes?
Operating Systems (CSCI2413) Lecture 3 Processes phones off (please)
Process Description and Control A process is sometimes called a task, it is a program in execution.
Using Two Queues. Using Multiple Queues Suspended Processes Processor is faster than I/O so all processes could be waiting for I/O Processor is faster.
Processes in Unix, Linux, and Windows CS-502 Fall Processes in Unix, Linux, and Windows CS502 Operating Systems (Slides include materials from Operating.
Process Description and Control Chapter 3. Major Requirements of an OS Interleave the execution of several processes to maximize processor utilization.
Process in Unix, Linux, and Windows CS-3013 A-term Processes in Unix, Linux, and Windows CS-3013 Operating Systems (Slides include materials from.
Introduction to Processes CS Intoduction to Operating Systems.
Implementing Processes and Process Management Brian Bershad.
Computer Architecture and Operating Systems CS 3230: Operating System Section Lecture OS-1 Process Concepts Department of Computer Science and Software.
Lecture 3 Process Concepts. What is a Process? A process is the dynamic execution context of an executing program. Several processes may run concurrently,
Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition, Chapter 3: Processes.
CE Operating Systems Lecture 10 Processes and process management in Linux.
8-Sep Operating Systems Yasir Kiani. 8-Sep Agenda for Today Review of previous lecture Process scheduling concepts Process creation and termination.
© 2004, D. J. Foreman 1 Implementing Processes and Threads.
Linux Processes Travis Willey Jeff Mihalik. What is a process? A process is a program in execution A process includes: –program counter –stack –data section.
Processes, Threads, and Process States. Programs and Processes  Program: an executable file (before/after compilation)  Process: an instance of a program.
Process Description and Control Chapter 3. Source Modified slides from Missouri U. of Science and Tech.
Chapter 2 Process Management. 2 Objectives After finish this chapter, you will understand: the concept of a process. the process life cycle. process states.
Process Description and control G.Anuradha (Referred from william stallings and galvin 8 th edition)
1 Process Description and Control Chapter 3. 2 Process A program in execution An instance of a program running on a computer The entity that can be assigned.
Chapter 3: Processes. 3.2 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts Chapter 3: Processes Process Concept Process Scheduling Operations.
ECE 297 Concurrent Servers Process, fork & threads ECE 297.
Tutorial 2: Homework 1 and Project 1
Processes and Threads Chapter 3 and 4 Operating Systems: Internals and Design Principles, 6/E William Stallings Patricia Roy Manatee Community College,
Multiprogramming. Readings r Chapter 2.1 of the textbook.
Processes and threads.
Process concept.
Process Management Process Concept Why only the global variables?
Chapter 3: Process Concept
Protection of System Resources
Lecture Topics: 11/1 Processes Process Management
Chapter 3: Processes.
Processes A process is a running program.
Processes in Unix, Linux, and Windows
Chapter 3: Processes.
Processes in Unix, Linux, and Windows
Processes in Unix, Linux, and Windows
Operating Systems Lecture 6.
Process & its States Lecture 5.
Mid Term review CSC345.
Chapter 3: Processes.
Process Description and Control
Process Description and Control
Processes Hank Levy 1.
Process Description and Control
Processes and Process Management
Process Description and Control
Process Description and Control
Process Description and Control
Process Description and Control
February 5, 2004 Adrienne Noble
Chapter 3: Processes.
Unix Process Control B.Ramamurthy 4/11/2019 B.Ramamurthy.
Processes in Unix, Linux, and Windows
Implementing Processes and Threads
Processes in Unix and Windows
CS510 Operating System Foundations
Processes Hank Levy 1.
Chapter 3: Process Management
Presentation transcript:

CS 143A Quiz 1 Solution

7) Threads of the same task have the following characteristics: (I) Share the same address space, (II) Reduce context switching overhead; (III) Are protected from each other the same way as processes. Which thread characteristics are correct? a. I, II, III b. I, III c. I, II 8) Which of the following are true about traps and interrupts: a. Other interrupts are enabled when an interrupt routine runs b. Traps are usually generated by hardware c. The CPU allows the currently running process to finish its currently executing function before it switches to an interrupt d. None of the above 9) What system command spawns a child process that has a copy of each parent process local variable? a. clone() b. spawn() c. fork() d. child() 10) A preemptive scheduling algorithm will: a. Insert a process before another in the waiting queue b. Stop a process temporarily and run another in the queue c. Have prior knowledge of how long a set of processes will take to run and schedule them perfectly 1) To protect itself a typical operating system provides: a. Access modes (privileged and user) b. Encryption c. Sealed Cases d. Hidden Files 2) Secondary storage is used because a. Main memory is too slow b. Main memory is volatile c. Main memory is obsolete 3) Synchronous I/O means a. CPU starts the transfer and goes off to do something else until interrupt arrives b. CPU starts the transfer and waits until the transfer is finished c. None of the above 4) Stack Pointer is a. Included in a process control block b. Stored on disk in the header of a file c. Received from a web client 5) Program Counter represents the following information a. Address of the Memory Base Information b. Address of the Process Identification (PID) c. Address of the Next Instruction 6) A process gets from “Running” state to “Waiting” state if a. Process runs out of time slice (quantum) b. Process calls a ‘read’ system call c. Process calls an ‘exit’ system call