Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Define the term PROCESS and describe the relationship between PROCESSES and PROCESS CONTROL BLOCKS also please specify the steps performed by an OS to create

  • Define the term PROCESS and describe the relationship between PROCESSES and PROCESS CONTROL BLOCKS also please specify the steps performed by an OS to create a new process.

    Computer OS functions resemble a working Restaurant’s functions. Here we are going to use OS and Restaurant analogy. This question is about an analogy between a restaurant and a computer

    CPU is expecting to have two things for each application’s 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 the instructions

    PROCESS: The food preparation. The customer wants a to have special food. Each food should be prepared based on customers' needs. Each food order comes with process stages. Data and instructions. One food order my have more than one process. Customer ordered, salad, and pizza. Like user launches three applications (MS Word, MS PowerPoint and Web browser) and on his/her computer. That means 3 different 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. has been managed based on OS. The waiter takes the orders from users (restaurant customers). And make sure all customers ordered was fulfilled

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

    PROCESS STATES:

    1. Running: The process (the food order) that is currently being executed by CPU ( i.e. Cook is working on the food order )
    2. Ready: A process that is prepared to execute when given the opportunity
    3. Blocked/Waiting: A process that cannot execute until some event occurs,
    4. New: A process that has just been created but has not yet been admitted to the pool of executable processes by the OS. New customer came in and order new food.
    5. The process was completed by the CPU,

  • QUESTION 2 : Develop State Process Model for this system. Your name should be on the diagram

    QUESTION 3: There are four customers coming to the restaurant on Monday. All four ordered food to eat in the restaurant. You should be developing process states for trace for the given cases below. This is going to be a timeline for the cook ( i.e CPU )

    The parameters are:

    The restaurant opens at 10:00 AM and closes at 5:00 PM

    Each food other takes 30 minutes to prepare. The total CPU /Cook processing time for one process order is 30 minutes.

    Customer 1 Arrival time 10:00 Orders three different foods

    Customer 2 Arrival time 10:00 Orders four different foods

    Customer 3 Arrival time 2:00 PM Orders three different foods

    Customer 4 Arrival time 3:00 PM Orders two different foods


Step by Step Solution

3.45 Rating (158 Votes )

There are 3 Steps involved in it

Step: 1

Question1 Process A process is a series of steps and decisions involved in order to complete a task It is the program that is being executed A program is in secondary memory but when it is to be execu... 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

Operating Systems Internals and Design Principles

Authors: William Stallings

8th edition

133805913, 978-0133805918

More Books

Students also viewed these Operating System questions

Question

What are the steps performed by an OS to create a new process?

Answered: 1 week ago