Top Banner
ASSIGNMENT NO # 01 ASSIGNMENT NO # 01 INTRODUCTION TO INTRODUCTION TO OPERATING SYSTEM OPERATING SYSTEM Submitted Submitted to: to: Miss Sana Miss Sana
7
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: ASSIGNMENT NO # 01 INTRODUCTION TO OPERATING SYSTEM Submitted to: Miss Sana.

ASSIGNMENT NO # 01ASSIGNMENT NO # 01

INTRODUCTION INTRODUCTION TO OPERATING TO OPERATING SYSTEMSYSTEM

Submitted Submitted to:to:Miss SanaMiss Sana

Page 2: ASSIGNMENT NO # 01 INTRODUCTION TO OPERATING SYSTEM Submitted to: Miss Sana.

PRESENTATION PRESENTATION

CPU CPU SchedulingScheduling

Made by :Made by :Muhammad Muhammad Usman AmirUsman Amir2009-CS-0052009-CS-005

Page 3: ASSIGNMENT NO # 01 INTRODUCTION TO OPERATING SYSTEM Submitted to: Miss Sana.

CPU SCHEDULINGCPU SCHEDULINGThe task of selecting a waiting process from the ready Queue and allocation the CPU to it. The CPU is allocated to the selected process by the dispatcher

Page 4: ASSIGNMENT NO # 01 INTRODUCTION TO OPERATING SYSTEM Submitted to: Miss Sana.

CPU SCHEDULING CPU SCHEDULING ALGORITHMSALGORITHMSThere are four types of CPU

Scheduling Algorithms are given below:

1.First Come First Served (FCFS)2.Shortest Job First (SJF)3.Priority Scheduling4.Round Robin Scheduling

Page 5: ASSIGNMENT NO # 01 INTRODUCTION TO OPERATING SYSTEM Submitted to: Miss Sana.

ROUND ROBIN ROUND ROBIN SCHEDULINGSCHEDULINGThe Round Robin

Algorithm designed specially for time sharing system new processors are added to the tail of the ready queue

Page 6: ASSIGNMENT NO # 01 INTRODUCTION TO OPERATING SYSTEM Submitted to: Miss Sana.

EXAMPLEEXAMPLEProcess Process Burst TimeBurst Time

P1 24

P2 3

P3 3

P1 P2 P3 P1 P1 P1 P1 P1

0 4 7 10 14 18 22 26 30

Page 7: ASSIGNMENT NO # 01 INTRODUCTION TO OPERATING SYSTEM Submitted to: Miss Sana.

THANK THANK YOUYOU