Kumar-laxmi / Algorithms

A Repository for algorithms in C, C++, Python and Java
Apache License 2.0
310 stars 372 forks source link

FCFS disk scheduling algorithm in Java ,python,c,c++ #1270

Closed SimranLahrani842 closed 1 month ago

SimranLahrani842 commented 1 year ago

Given an array of disk track numbers and initial head position, we need to find the total number of seek operations done to access all the requested tracks if First Come First Serve (FCFS) disk scheduling algorithm is used.

First Come First Serve (FCFS) FCFS is the simplest [disk scheduling algorithm]. As the name suggests, this algorithm entertains requests in the order they arrive in the disk queue. The algorithm looks very fair and there is no starvation (all requests are serviced sequentially) but generally, it does not provide the fastest service.

SimranLahrani842 commented 1 year ago

Given an array of disk track numbers and initial head position, we need to find the total number of seek operations done to access all the requested tracks if First Come First Serve (FCFS) disk scheduling algorithm is used.

First Come First Serve (FCFS) FCFS is the simplest [disk scheduling algorithm]. As the name suggests, this algorithm entertains requests in the order they arrive in the disk queue. The algorithm looks very fair and there is no starvation (all requests are serviced sequentially) but generally, it does not provide the fastest service.

Assign me this @Kumar-laxmi

jahnvisahni31 commented 1 year ago

assign me this

mayank2mahi commented 1 year ago

@Kumar-laxmi Sir ji please assign me this issue as I eagerly want to contribute to this issue under SSoC'23.

github-actions[bot] commented 1 month ago

Stale issue message