# CPU scheduling

**URL:** <https://forum.kirupa.com/t/cpu-scheduling/319141>\
**Category:** Uncategorized\
**Created:** [February 10, 2011, 3:04am UTC](https://forum.kirupa.com/t/cpu-scheduling/319141 "2011-02-10T03:04:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![punk123123123](https://avatars.discourse-cdn.com/v4/letter/p/9de0a6/32.png) [@punk123123123](https://forum.kirupa.com/u/punk123123123)\
**Post date:** [February 10, 2011, 3:04am UTC](https://forum.kirupa.com/t/cpu-scheduling/319141/1 "2011-02-10T03:04:28Z")

</div>

i have this project on CPU scheduling and i have no idea how to do it …

So the first algorithum is SJF(Shortest Job First)  
And i am using JCreator to do the java codes. currently i am done doing the random generating of numbers…but i don’t understand how to apply SJF to it…

Hope someone has a sample source code to show and enlighten me. Thanks
