Question

In: Computer Science

Assignment 5 List and briefly describe 4 types of processor scheduling policies. Compare Long Term, Medium...

Assignment 5

  1. List and briefly describe 4 types of processor scheduling policies.
  2. Compare Long Term, Medium Term and Short Term scheduling  
  3. List 4 desired scheduled algorithm characteristics
  4. Describe 2 methods to assign processes to processors in multiprocessing
  5. How is parallel computing different from multiprocessing?   ( 1 point)

Solutions

Expert Solution

Process Scheduling Queues

The OS maintains all PCBs in Process Scheduling Queues. The OS maintains a separate queue for each of the process states and PCBs of all processes in the same execution state are placed in the same queue. When the state of a process is changed, its PCB is unlinked from its current queue and moved to its new state queue.

The Operating System maintains the following important process scheduling queues −

  • Job queue − This queue keeps all the processes in the system.

  • Ready queue − This queue keeps a set of all processes residing in main memory, ready and waiting to execute. A new process is always put in this queue.

  • Device queues − The processes which are blocked due to unavailability of an I/O device constitute this queue.

1.Long-term Scheduling

a-Long term scheduling is performed when a new process is created.

b-If the number of ready processes in the ready queue becomes very high, then there is a overhead on the operating system (i.e., processor) for maintaining long lists, context switching and dispatching increases. Therefore, allow only limited number of processes in to the ready queue. The "long-term scheduler" managers this.

c-Long-term scheduler determines which programs are admitted into the system for processing

d-The long-term scheduler limits the number of processes to allow for processing by taking the decision to add one or more new jobs, based on FCFS (First-Come, first-serve) basis or priority or execution time or Input/Output requirements.

d-Long-term scheduler executes relatively infrequently.


Medium-term Scheduling

a-Medium-term scheduling is a part of the swapping function.

b- This scheduler works in close conjunction with the long-term scheduler.

c-It will perform the swapping-in function among the swapped-out processes.

d-Medium-term scheduler executes some what more frequently.


Short-term Scheduling

a-Short-term scheduler is also called as dispatcher.

b-Short-term scheduler is invoked whenever an event occurs, that may lead to the interruption of the current running process.

c-For example clock interrupts, I/O interrupts, operating system calls, signals, etc.

d-Short-term scheduler executes most frequently. It selects from among the processes that are ready to execute and allocates the CPU to one of them.

e-It must select a new process for the CPU frequently. It must be very fast.

Types of CPU scheduling Algorithm

There are mainly six types of process scheduling algorithms

  1. First Come First Serve (FCFS)
  2. Shortest-Job-First (SJF) Scheduling
  3. Shortest Remaining Time
  4. Priority Scheduling
  5. Round Robin Scheduling
  6. Multilevel Queue Scheduling

First Come First Serve

First Come First Serve is the full form of FCFS. It is the easiest and most simple CPU scheduling algorithm. In this type of algorithm, the process which requests the CPU gets the CPU allocation first. This scheduling method can be managed with a FIFO queue.

Priority Based Scheduling

Priority scheduling is a method of scheduling processes based on priority. In this method, the scheduler selects the tasks to work as per the priority.

Round-Robin Scheduling

Round robin is the oldest, simplest scheduling algorithm. The name of this algorithm comes from the round-robin principle, where each person gets an equal share of something in turn.

Shortest Job First

SJF is a full form of (Shortest job first) is a scheduling algorithm in which the process with the shortest execution time should be selected for execution next

2 methods to assign processes to processors in multiprocessing

Master/slave multiprocessor system

In a master/slave multiprocessor system, the master CPU is in control of the computer and the slave CPU(s) performs assigned tasks. The CPUs can be completely different in terms of speed and architecture. Some (or all) of the CPUs can have share common bus, each can also have a private bus (for private resources), or they may be isolated except for a common communications pathway. Likewise, the CPUs can share common RAM and/or have private RAM that the other processor(s) cannot access. The roles of master and slave can change from one CPU to another.

Processor coupling

Tightly coupled multiprocessor system

Tightly coupled multiprocessor systems contain multiple CPUs that are connected at the bus level. These CPUs may have access to a central shared memory (SMP or UMA), or may participate in a memory hierarchy with both local and shared memory

Processor coupling

Tightly coupled multiprocessor system

Tightly coupled multiprocessor systems contain multiple CPUs that are connected at the bus level. These CPUs may have access to a central shared memory (SMP or UMA), or may participate in a memory hierarchy with both local and shared memory

In computers, parallel processing is the processing of program instructions by dividing them among multiple processors with the objective of running a program in less time. In the earliest computers, only one program ran at a time.

Multiprocessing is the use of two or more central processing units (CPUs) within a single computer system. The term also refers to the ability of a system to support more than one processor and/or the ability to allocate tasks between them.


Related Solutions

Pharmacy automation assignment 1. List and briefly describe the different types of drawers available for use...
Pharmacy automation assignment 1. List and briefly describe the different types of drawers available for use with the OmniRx®? 2. Briefly explain how CytoCare® is used in a pharmacy. 3. What are your personal thoughts on pharmacy automation as it pertains to your job as a pharmacy technician? (50 word min)
Name and describe 2 short term goals, 2 medium term goals and 2 long term GOALS...
Name and describe 2 short term goals, 2 medium term goals and 2 long term GOALS and OBJECTIVES for a business plan of a realtor company
List and describe the three types of InfoSec Policies: In what way are policies different from...
List and describe the three types of InfoSec Policies: In what way are policies different from procedures? please explain in detail. And do not copy.
List and describe briefly 3 Types of Option Strategies:
List and describe briefly 3 Types of Option Strategies:
4. Compare and contrast the 3 types of muscle tissues. 5. Describe why it would be...
4. Compare and contrast the 3 types of muscle tissues. 5. Describe why it would be important to have a tight junction in the cells of the capillaries surrounding the brain and spinal cord.
Compare long-term instruments and short-term risks, in terms of the various types of risk to which...
Compare long-term instruments and short-term risks, in terms of the various types of risk to which investors are exposed. Justify your answer.
4. List the mechanisms that can affect blood pressure in the short term and long term....
4. List the mechanisms that can affect blood pressure in the short term and long term. Illustrate and explain how the Baroreceptor reflex responds to (i) a sudden increase in mean arterial pressure and (ii) a when standing up from a prone position.
List and explain in your own words the 4 types of joints. List and describe, in...
List and explain in your own words the 4 types of joints. List and describe, in your own words, each category under each type. Give an example for each category (try and avoid one that is listed in the handout) Draw each of your examples (except for the categories under synovial joints)
What are the five types of governmental funds? List and describe the 5 types. Provide an...
What are the five types of governmental funds? List and describe the 5 types. Provide an example of a transaction that would be included in each type.
What are the main characteristics of long-term disability insurance? Briefly discuss the three types of life...
What are the main characteristics of long-term disability insurance? Briefly discuss the three types of life insurance policies offered in the US? Briefly discuss the types of disabilities recognized under workers' compensation laws? Please do not copy and paste or plagiarize and answer each questions minimum 1 paragraph, 6-8 sentences per question. Answer each question with number like Answer 1, Answer 2 and Answer 3.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT