Question
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:
- Running: The process (the food order) that is currently being executed by 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. New customer came in and order new food.
- 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...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started