a. The process has finished printing and needs the ... · Assignment 3 Princess Nora Bint...

1
Prepared by: TA. Latifa Alrashed 1 NET201- Principles of Information & Technology Systems Second Semester 1435/1436 H Assignment 3 Princess Nora Bint Abdulrahman University Faculty of Computer and Information Sciences Department of Networks and Telecommunications Question 1: What is the status of a process in each of the following situations? (2.5 Points) a. The process is using the CPU. b. The process has finished printing and needs the attention of the CPU again. c. The process has been stopped because its time slot is over. d. The process is reading data from the keyboard. e. The process is printing data. Question 2: A multi-programming operating system uses virtual memory that doesn’t requires the whole program to be in physical memory during execution (NOTE: it allows swapping). The size of physical memory is 100 MB. The size of virtual memory is 1GB. (1.5 points) a. How many programs of size 10MB can be run concurrently by this operating system? Question 3: Three processes (A, B, AND C) are running concurrently. Process A has acquired File1, but needs File2. Process B has acquired File3, but needs File1. Process C has acquired File2, but needs File3. (3 Points) a. Draw a diagram for these processes. [2 Points] b. Is this a deadlock situation? [1 Point] Question 4: Three processes (A, B, and C) are running concurrently. Process A has acquired File1. Process B has acquired File2, but needs File1. Process C has acquired File3, but needs File2. (3 Points) a. Draw a diagram for these processes. [2 Points] b. Is this a deadlock situation? If your answer is “no”, show how the processes can eventually finish their tasks. [1 Point]

Transcript of a. The process has finished printing and needs the ... · Assignment 3 Princess Nora Bint...

Page 1: a. The process has finished printing and needs the ... · Assignment 3 Princess Nora Bint Abdulrahman University ... The process is using the CPU. b. The process has finished printing

       

Prepared  by:  TA.  Latifa  Alrashed    

1  

NET201- Principles of Information & Technology Systems Second Semester 1435/1436 H Assignment 3

Princess Nora Bint Abdulrahman University Faculty of Computer and Information Sciences Department of Networks and Telecommunications

Question 1: What is the status of a process in each of the following situations? (2.5 Points)

a. The process is using the CPU. b. The process has finished printing and needs the attention of the CPU again. c. The process has been stopped because its time slot is over. d. The process is reading data from the keyboard. e. The process is printing data.  

Question 2: A multi-programming operating system uses virtual memory that doesn’t requires the whole program to be in physical memory during execution (NOTE: it allows swapping). The size of physical memory is 100 MB. The size of virtual memory is 1GB. (1.5 points)

a. How many programs of size 10MB can be run concurrently by this operating system?

 Question 3: Three processes (A, B, AND C) are running concurrently. Process A has acquired File1, but needs File2. Process B has acquired File3, but needs File1. Process C has acquired File2, but needs File3. (3 Points)

a. Draw a diagram for these processes. [2 Points]               b. Is this a deadlock situation? [1 Point]

Question 4: Three processes (A, B, and C) are running concurrently. Process A has acquired File1. Process B has acquired File2, but needs File1. Process C has acquired File3, but needs File2. (3 Points)

a. Draw a diagram for these processes. [2 Points] b. Is this a deadlock situation? If your answer is “no”, show how the processes

can eventually finish their tasks. [1 Point]