Process Structure and Administration LAB 1 PDF

Title Process Structure and Administration LAB 1
Course Operating Systems
Institution Cork Institute of Technology
Pages 3
File Size 79.5 KB
File Type PDF
Total Downloads 56
Total Views 147

Summary

Lab Answers to Second Process Structure and Administrations Lab...


Description

SOFT7006 labs

Lab 1: Process Structure and Administration True or False 1) A process consists of code, data and administration information. True 2) A process image is a picture of a running process. False 3) The process control block is the key tool that enables the OS to administer and support processes. True 4) Resource data tables are cross referenced, are stored in main memory, and are only accessed by the kernel. True 5) It is not the responsibility of the operating system to control the execution of processes. False 6) A ready process will become blocked if it requests a service from the OS. False 7) A process that is not in main memory is immediately available for execution, regardless of whether or not it is awaiting an event. False 8) The process control block is the least important data structure in an OS. False

Multiple choice questions 1. A process that has been temporarily removed from RAM describes of a _________ process. A) blocked B) suspended C) ready D) swapped 2. It is the principal responsibility of the __________ to control the execution of processes. A) OS B) process control block C) memory D) dispatcher 3. __________ involves moving part or all of a process from main memory to disk. A) Swapping C) Storing

B) Relocating D) Blocking

SOFT7006 labs 4. When a process is in the _________ state it is in secondary memory but is available for execution as soon as it is loaded into main memory. A) Blocked C) Ready

B) Blocked-Suspend D) Ready-Suspend

5. A process is in the _________ state when it is in main memory and awaiting an event. A) Blocked C) Ready-Suspend

B) Blocked-Suspend D) Ready

6. The OS must maintain __________ tables to manage processes. A) process C) memory

B) I/O D) file

7. The portion of the operating system that selects the next process to run is called the _________ or _________. A) trace C) scheduler

B) process control block D) dispatcher

Short answer questions 1. The Operating System is a layer of software between the applications and the computer hardware that supports applications and utilities. 2. A process is in the Blocked-Suspend state when it is in secondary memory and awaiting an event. 3. The three essential elements of a process Executable Program Code , a set of data associated with that code, and administration data. 4. The files tables provide information about the existence of files, their location on secondary memory, their current status, and other attributes. 5. A process in the ready state is in main memory and available for execution. 6. Memory tables are used to keep track of both main (real) and secondary (virtual) memory.

SOFT7006 labs 7. The process control block information can be grouped into three general categories: process identification, CPU state information and process control information.

Research Investigate the concept of a process in Wikipedia at https://en.wikipedia.org/wiki/Process_(computing) and answer the following questions. 1. Distinguish between a ‘computer program’ and a ‘process’. In computing, a process is an instance of a computer program that is being executed. It contains the program code and its current activity. 2. What do Unix and Windows call “descriptors of resources” that are allocated to a process? file descriptors (Unix terminology) or handles (Windows)

3. The article names process states as: Created, Running, Waiting, Blocked, Swapped out and waiting, Swapped out and blocked, & Terminated. What is the name given to these states in the notes and what does each one mean? Article Notes Created New Running Running Waiting Ready Blocked Blocked Swapped Out and Waiting Ready Suspend Swapped out and Blocked Blocked Suspend Terminated Exit 4. Explain the terms ‘multi-tasking’, ‘time-sharing’, ‘concurrency’ & ‘context switching’. Multi-tasking: A multitasking operating system may just switch between processes to give the appearance of many processes executing simultaneously (that is, in parallel), though in fact only one process can be executing at any one time on a single CPU (unless the CPU has multiple cores, then multithreading or other similar technologies can be used)

Time-Sharing: Swapping processes out to give the appearance of concurrency Concurrency: The appearance of processes running simultaneously. Context Switching: The act of swapping processes out secondary storage...


Similar Free PDFs