Need help with Java FCFS program. I have written the IO intesive and CPU intensi
ID: 667803 • Letter: N
Question
Need help with Java FCFS program. I have written the IO intesive and CPU intensive along with the scheduler but I am not sure how to implement FCFS and get the average.
FCFS scheduler with 5 input output bound threads (1 class) and 5 CPU bound threads (another class).
Get start and stop time for each thread and print out the time it takes to run.
Get start and stop time to schedule and run all the threads and print out the time to run.
Run times three times and provide results for each.
a. First time intersperse the IO bound and computationally intensive operations
b. Second time run the IO bound threads first and the processor bound second.
c. Third time run the processor bound threads first and the IO bound second.
Then provide average for a, b and c.
I can email my code if someone can help me.
Explanation / Answer
Email the code. Along with the question at al13n.3291@gmail.com.