8000 GitHub - MirazIbnsina/FCFS_OS: Implementation in FCFS in C to find out Waiting Time (WT) and Turn Around TIme (TAT)
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Implementation in FCFS in C to find out Waiting Time (WT) and Turn Around TIme (TAT)

Notifications You must be signed in to change notification settings

MirazIbnsina/FCFS_OS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

FCFS_OS

Implementation FCFS in C code to find out Waiting Time (WT) and Turn Around Time (TAT)

Interface

  1. Click the file fcfs.c
  2. Run any C compiler (Made by CodeBlocks)
  3. Should works fine!

Explanation

Inputs:

  • Number of processes (P0, P1...)
  • Brust time of each processes

Processing:

a. calcutaing values

wt[i+1] = bt[i]+wt[i]

tat[i] = wt[i] + bt[i]

b. Calculating average

avg_wt+=wt[i]

avg_tat+=tat[i]

About

Implementation in FCFS in C to find out Waiting Time (WT) and Turn Around TIme (TAT)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0