Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mirazibnsina/fcfs_os
Implementation in FCFS in C to find out Waiting Time (WT) and Turn Around TIme (TAT)
https://github.com/mirazibnsina/fcfs_os
Last synced: 18 days ago
JSON representation
Implementation in FCFS in C to find out Waiting Time (WT) and Turn Around TIme (TAT)
- Host: GitHub
- URL: https://github.com/mirazibnsina/fcfs_os
- Owner: MirazIbnsina
- Created: 2023-01-14T16:52:41.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-06-25T13:15:31.000Z (7 months ago)
- Last Synced: 2024-11-06T03:17:08.196Z (2 months ago)
- Language: C
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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 processesProcessing:
a. calcutaing values
wt[i+1] = bt[i]+wt[i]
tat[i] = wt[i] + bt[i]
b. Calculating averageavg_wt+=wt[i]
avg_tat+=tat[i]