0% found this document useful (0 votes)
53 views

Os Final Project-1

The document discusses CPU scheduling and different scheduling algorithms. It describes three scheduling scenarios: first come first serve (FCFS) for bank customers submitting bills, shortest job first (SJF) for email distribution among a team using round robin. The methodology used FCFS, SJF, and round robin algorithms. Screenshots of code implemented in Dev C/C++ are provided to demonstrate the different scheduling algorithms.

Uploaded by

Minahil khan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
53 views

Os Final Project-1

The document discusses CPU scheduling and different scheduling algorithms. It describes three scheduling scenarios: first come first serve (FCFS) for bank customers submitting bills, shortest job first (SJF) for email distribution among a team using round robin. The methodology used FCFS, SJF, and round robin algorithms. Screenshots of code implemented in Dev C/C++ are provided to demonstrate the different scheduling algorithms.

Uploaded by

Minahil khan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 14

CPU SCHEDULING

Department of Software Engineering

MINAHIL KHAN (BSEM-F20-014)


AMAL ARSHAD(BSEM-F20-044)
ANABIA SALEEM(BSEM-F20-160)

BSSE

MA’AM ARSHI IFTIKHAR


MA’AM SHAWAL RASHEED

S22

Faculty of Computer Science & IT


The Superior University Lahore
CPU SCHEDULING

Table of Contents

INTRODUCTION: 3
SCNERIOS: 3
SCENERIO 1(FCFS): 3
SCENERIO 2(SJF): 3
SCENERIO 3(RR) 3
Methodology 3
Tools 3
Screen Shots of Code 4
screen shots of code 4
screen shots of code 5

screen shots of code 6


screen shots of code 7
screen shots of code 8
screen shots of code 9
screen shots of code 10
screen shots of code 11
screen shots of code 12

Faculty of CS&IT, Superior University, Lahore 2


CPU SCHEDULING

INTRODUCTION:

CPU Scheduling is a process of determining which process will own CPU for execution while
another process is on hold. The main task of CPU scheduling is to make sure that whenever the
CPU remains idle, the OS at least select one of the processes available in the ready queue for
execution.

SCNERIOS:

SCENERIO 1(FCFS):

In banking system, customers came for submission of utility bills and school fees for this
purpose a we use fcfs because a long line of customers for submissions.

SCENERIO 2(SJF):

SCENERIO 3(ASSIGNING EMAILS (ROUND ROBIN)):

Distribute incoming emails fairly across your entire team, getting responses to your customers as
fast as possible. Let Loop's Round Robin automation rules manage the email queue in your
shared inbox.

Methodology
• FIRST COME FIRST SERVE
• SHORTEST REMAING TIME FIRST
• ROUND ROBIN

Tools
● DEV C/C++

Faculty of CS&IT, Superior University, Lahore 3


CPU SCHEDULING

Screen Shots of Code

Faculty of CS&IT, Superior University, Lahore 4


CPU SCHEDULING

Faculty of CS&IT, Superior University, Lahore 5


CPU SCHEDULING

Faculty of CS&IT, Superior University, Lahore 6


CPU SCHEDULING

Faculty of CS&IT, Superior University, Lahore 7


CPU SCHEDULING

Faculty of CS&IT, Superior University, Lahore 8


CPU SCHEDULING

Faculty of CS&IT, Superior University, Lahore 9


CPU SCHEDULING

Faculty of CS&IT, Superior University, Lahore 10


CPU SCHEDULING

Faculty of CS&IT, Superior University, Lahore 11


CPU SCHEDULING

Result

Faculty of CS&IT, Superior University, Lahore 12


CPU SCHEDULING

Faculty of CS&IT, Superior University, Lahore 13


CPU SCHEDULING

Faculty of CS&IT, Superior University, Lahore 14

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy