Severity: Warning
Message: fopen(/tmp/ci_sessionho4gdvco1ucab2ejespel89g8f6m5vr7): failed to open stream: No space left on device
Filename: drivers/Session_files_driver.php
Line Number: 176
Backtrace:
File: /var/www/html/application/controllers/Project.php
Line: 10
Function: __construct
File: /var/www/html/index.php
Line: 311
Function: require_once
Severity: Warning
Message: session_start(): Failed to read session data: user (path: /tmp)
Filename: Session/Session.php
Line Number: 143
Backtrace:
File: /var/www/html/application/controllers/Project.php
Line: 10
Function: __construct
File: /var/www/html/index.php
Line: 311
Function: require_once
In this project shows the programmatic implementation of Shortest Job First Scheduling Algorithm in Java. Here we calculated the Average waiting time and Average Turn Around Time.
Shortest Job First (preemptive) : In this scheduling algorithm, the process with the smallest brust time is selected for execution. If a process with even a shorter burst time arrives, the current process is removed or preempted from execution, and the shorter job is allocated CPU cycle.
Pros :
1) SJF is frequently used in long term scheduling process.
2) It reduces the average Waiting Time for a specific set of process
3) It is appopriate for the job running in batch, where run time is known is advance.
Cons :
1) It require the knowledge about how long will process will run
2) It lead to starvation
Submitted by Vipul Rajesh Chandankar (VipulChandankar)
Download packets of source code on Coders Packet
Comments