Dan Goldsmith
| Process | Start Time | Job Length |
|---|---|---|
| 1 | 0 | 5 |
| 2 | 1 | 10 |
| 3 | 2 | 1 |
Average Waiting Time:
Average Turnaround Time:
| Process | Start Time | Job Length |
|---|---|---|
| 1 | 0 | 5 |
| 2 | 1 | 10 |
| 3 | 2 | 1 |
Average Waiting Time:
Average Turnaround Time:
| Process | Arrives At | Execute Time |
|---|---|---|
| A | 1 | 1 |
| B | 2 | 5 |
| C | 3 | 3 |
| 1 | 2 | 3 | 4 | 5 | 6 |
|---|---|---|---|---|---|
| P1 | P2 | P3 | P1 | P2 | P3 |
| Process | Start Time | Job Length |
|---|---|---|
| 1 | 0 | 5 |
| 2 | 1 | 10 |
| 3 | 2 | 1 |
| Process | Start Time | Job Length |
|---|---|---|
| 1 | 0 | 5 |
| 2 | 1 | 10 |
| 3 | 2 | 1 |
TODO: Add Photo
| Process | Arrives At | Execute Time |
|---|---|---|
| A | 1 | 1 |
| B | 2 | 5 |
| C | 3 | 3 |
int main() {
// put your setup code here, to run once:
threadOne.start(led1Thread);
threadTwo.start(led2Thread);
threadThree.start(led3Thread);
wait_ms(osWaitForever);
}
SPARKBOARD!
SPARKBOARD!
void blockingThread(){
while(1){
led1 = !led1;
for (int x=0; x<10000; x++){
//Delay of Approx One Second
wait(0.0001);
}
}
}
threadOne.set_priority(osPriorityLow);
SPARKBOARD