WebClub-NITK / Hacktoberfest-2k18

Repository for Hacktoberfest 2018 open for the global open source community.
https://webclub-nitk.github.io/Hacktoberfest-2k18/
19 stars 104 forks source link

Add process scheduling #259

Closed 1337M0nst3r closed 5 years ago

1337M0nst3r commented 5 years ago

Resolves Issue #242

Description

Implemented round robin process scheduling algorithm

Technical Specifications

Made in C++

Screenshots (if required)

2018-10-21-193732_1366x768_scrot 2018-10-21-193740_1366x768_scrot 2018-10-21-193749_1366x768_scrot 2018-10-21-193755_1366x768_scrot 2018-10-21-193805_1366x768_scrot

How to run

Open systems/os/process_scheduling/rr/c++/rr.cpp in any C++ IDE and press build & run OR open a terminal go to systems/process_scheduling/rr/c++/ and type: g++ rr.cpp && ./a.out then press enter

Checklist

Ram-Aditya commented 5 years ago

@1337M0nst3r Are you sure you have implemented the algorithm correctly? Consider your first example.

These are a few of the many issues with the implementation. Kindly recheck your implementation and feel free to clear any confusions/misinterpretations that may have been the cause of the issues.

1337M0nst3r commented 5 years ago

I can fix the schedule times problem but you said to initialize the processes's arrival time with random values between 0 and 50s what's their purpose?

1337M0nst3r commented 5 years ago

Nevermind I got it, now what should I do? Create another pull request?

Ram-Aditya commented 5 years ago

@1337M0nst3r Yes, please create a new PR.