Rakesh9100 / CalcDiverse

CalcDiverse is a customized collection of calculators for various aspects of mathematics. Individuals with basic web development knowledge can create distinctive calculators and submit pull requests.
https://calcdiverse.netlify.app
Apache License 2.0
149 stars 397 forks source link

[Bug] Fix CPU Scheduling Calculator #1348

Open Yuvraj960 opened 3 months ago

Yuvraj960 commented 3 months ago

Description

The output of the CPU Scheduling calculator is totally wrong. FCFS input: image And output: image

Which is totally wrong, because CPU doesn't wait for 2 seconds. Here one process is coming at 1second. Algorithm says that CPU should be allocated to that process which will come first now which is written first in the textbox.

And the Round Robin process is totally wrong: Input: image

Output: image

You can identify here the waiting time is written to be -2 which is practically not possible.

Also I want to rename this calculator to Non Preemptive CPU Scheduling Calculator. Because It consists of non preemptive version of the Scheduling Algorithms. This will help user to recognize algorithms before opening calculator.

Please assign this issue to me @Rakesh9100

Checklist

Code of Conduct

github-actions[bot] commented 3 months ago

Hey @Yuvraj960, Welcome to the project CalcDiverse! 🎊 Thanks for opening an issue! 🙌 Please wait for the issue to be assigned. Happy Coding!! ✨

Yuvraj960 commented 3 months ago

@Rakesh9100 Kindly review this issue, because the newly merged CPU Scheduling calculator is not working correctly. The code written is whole wrong. Also if possible please remove this calculator from your already live CalcDiverse app, because the output of the calculator is highly inefficient. I will design this calculator from scratch as the code written for this is not reusable and confusing also so can't be repaired.

Yuvraj960 commented 3 months ago

@Rakesh9100 Kindly assign issues

jessicachawla commented 3 months ago

@Rakesh9100 this issue can be assigned

Rakesh9100 commented 3 months ago

Okay go ahead @Yuvraj960

SHRAVANIc01 commented 3 months ago

can you assign me this ? I want to contribute