Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

This question is to better understand the Management of Application Execution by using the analogy between restaurant and computer. CPU is expecting to have two

This question is to better understand the Management of Application Execution by using the analogy between restaurant and computer.

CPU is expecting to have two things for each applications process section, a) data (this is ingredients for the cook) and b) Instructions (specific order of the food (recipe)). Consider the below-given parameters while working on questions 2 and 3.

The parameters of the OS and Restaurant analogy.

CPU: The cook who prepares the food based on given ingredients (data) and instructions. It will receive data and instructions for each process.

PROCESS: The food preparation. The customer wants to have/order food. Each food order should be prepared based on customers' needs. Each food order considers to be a process and comes with data and instructions. Customers may order more than one process (i.e. salad, drink, and pizza). That means 3 different processes. Consider the customer as an application in computer OS. In this example, one application comes with three processes.

OPERATING SYSTEM: The rules of the restaurant. The restaurant should be run based on these rules. Like in the computer, all computer resources, CPU, Memory, etc. have been managed based on OS. The waiter takes the orders from users (restaurant customers). And make sure all customer's orders were fulfilled

MAIN MEMORY: That keeps the customer orders (Data and Instructions) well organized. In Computer this is RAM.

PROCESS STATES:

Running: The process (the food order) that is currently being executed by the CPU ( i.e. Cook is working on the food order )

Ready: A process that is prepared to execute when given the opportunity

Blocked/Waiting: A process that cannot execute until some event occurs,

New: A process that has just been created but has not yet been admitted to the pool of executable processes by the OS. A new customer came in and order new food.

The process was completed by the CPU ( Food was prepared and deviled to the customer )

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Transactions On Large Scale Data And Knowledge Centered Systems Vi Special Issue On Database And Expert Systems Applications Lncs 7600

Authors: Abdelkader Hameurlain ,Josef Kung ,Roland Wagner ,Stephen W. Liddle ,Klaus-Dieter Schewe ,Xiaofang Zhou

2012th Edition

3642341780, 978-3642341786

More Books

Students also viewed these Databases questions

Question

purchases less purchase return and allowance

Answered: 1 week ago

Question

Understanding Group Leadership Culture and Group Leadership

Answered: 1 week ago