University of South Carolina Columbia Java Scheduling Lab Report
Question Description
I need help with Java scheduling Lab. Everything is in the attached file.
- Please use java.exe to run the class file directly.
- If you cannot run java.exe directly, please add Java Path to your environment.
- Set affinity of Java.exe to one CPU core
1. Write codes to set the current thread with Min_Priority.
2.Run performance monitor/process explorer to monitor the thread you created in 1.What is current priority of thread in windows?
3.Perform the experiment of 1 and 2 with priority number 1 to 9.Found out the relationship between Java and Win32 priority.
Java Priority |
Window Priority number |
Java Priority |
Window Priority number |
1 |
6 |
||
2 |
7 |
||
3 |
8 |
||
4 |
9 |
||
5 |
10 |
4.Create two threads with different priority number, one thread has I/O block, one thread has no I/O block.Describe how the priority number changes and how the thread state changes over the life time of the threads.
5.Create four threads with different priority number without I/O block. Describe how the thread state changes.Did you notice any starving situation?
Have a similar assignment? "Place an order for your assignment and have exceptional work written by our team of experts, guaranteeing you A results."