mirror of
https://github.com/bspeice/itcs3146-project
synced 2024-12-21 14:18:17 -05:00
Final Update to MemoryManagement
This commit is contained in:
parent
365e071558
commit
449a72b23f
@ -51,7 +51,7 @@ public class memoryManagement{
|
|||||||
//Create random jobs or read from the file and create jobs
|
//Create random jobs or read from the file and create jobs
|
||||||
if(read.equals("")){
|
if(read.equals("")){
|
||||||
System.out.print("Creating " + JOBAMOUNT + " random jobs...");
|
System.out.print("Creating " + JOBAMOUNT + " random jobs...");
|
||||||
jobLength = JOBAMOUNT;
|
jobLength = 40;
|
||||||
for(int i = 0; i < jobLength; i++){
|
for(int i = 0; i < jobLength; i++){
|
||||||
id[i] = i+1;
|
id[i] = i+1;
|
||||||
size[i] = rand.nextInt(MEMORYSIZE / 10)+1;
|
size[i] = rand.nextInt(MEMORYSIZE / 10)+1;
|
||||||
@ -143,4 +143,4 @@ public class memoryManagement{
|
|||||||
//Forcibly close down all threads
|
//Forcibly close down all threads
|
||||||
System.exit(0);
|
System.exit(0);
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user