OS PROCESS SCHEDULING Flashcards

1
Q

What is an operating system?

A

An operating system (OS) is system software that manages computer hardware, software resources, and provides common services for computer programs.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are the main objectives of an Operating System

A
  • Convenience
  • Efficiency
  • Ability to evolve
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Draw a diagram showing the place operating systems occupy in the computer architecture

A

*See notes for pic

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Give examples of OS services

A
  • Program development
  • Program execution
  • Access I/O devices
  • Controlled access to files
  • System access
  • Error detection and response
  • Accounting
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is process scheduling

A

Process Scheduling is an OS task that schedules processes of

different states like ready, waiting, and running.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Give reasons why process scheduling is important

A

• Process scheduling allows OS to allocate a time interval of CPU
execution for each process.
• Another important reason for using a process scheduling system is
that it keeps the CPU busy all the time.
• This allows you to get the minimum response time for programs

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is the purpose of process scheduling queues

A

• Process Scheduling Queues help you to maintain a distinct queue for each and
every process states and PCBs.
• All the process of the same execution state are placed in the same queue.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What are process states and PCBs

A

• Process control block (PCB) is a data structure used by computer operating systems to store all the
information about a process.
• Information in a process control block is updated during the transition of process states
• Therefore, whenever the state of a process is modified, its PCB needs to be
unlinked from its existing queue, which moves back to the new state queue.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What are the types of operating system queues

A
  1. Job queue – It helps you to store all the processes in the system.
  2. Ready queue – This type of queue helps you to set every process residing in the main
    memory, which is ready and waiting to execute.
  3. Device queues – It is a process that is blocked because of the absence of an I/O device.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Using a diagram explain how process scheduling queues work

A

*See notes for pic

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What are the Two-state process models

A

Running
• In the Operating system, whenever a new process is built, it is entered into the system, which
should be running.

Not Running
• The process that are not running are kept in a queue, which is waiting for their turn to execute.
Each entry in the queue is a point to a specific process.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Explain some important objectives of process scheduling

A
  • Maximize the number of interactive users within acceptable response times.
  • Achieve a balance between response and utilization.
  • Avoid indefinite postponement and enforce priorities.
  • It also should give reference to the processes holding the key resources.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is a scheduler?

A

A scheduler is a type of system software that allows you to handle process scheduling.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What are the main types of process schedulers

A

Long term
Short term
Medium term

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Describe long term schedulers

A
  • Long term scheduler is also known as a job scheduler.
  • This scheduler regulates the program and select process from the queue and loads them into memory for execution.
  • It also regulates the degree of multi-programing.
  • However, the main goal of this type of scheduler is to offer a balanced mix of jobs, like Processor, I/O jobs., that allows managing multiprogramming
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Describe medium term schedulers

A
  • Medium-term scheduling is an important part of swapping.
  • It enables you to handle the swapped out-processes.
  • In this scheduler, a running process can become suspended, which makes an I/O request.
  • A running process can become suspended if it makes an I/O request.
  • A suspended processes can’t make any progress towards completion.
  • In order to remove the process from memory and make space for other processes, the suspended process should be moved to secondary storage.
17
Q

Describe short term schedulers

A
  • Short term scheduling is also known as CPU scheduler.
  • The main goal of this scheduler is to boost the system performance according to set criteria.
  • This helps you to select from a group of processes that are ready to execute and allocates CPU to one of them.
  • The dispatcher gives control of the CPU to the process selected by the short term scheduler
18
Q

What are the attributes of a process

A

The Process attributes refer to process characteristics such as data set size, kernel scheduling priority, the number of pages of memory, and the number of page faults.