Skip to content

Commit

Permalink
Merge pull request #4 from LucasAzoli/Dely-update
Browse files Browse the repository at this point in the history
Dely update
  • Loading branch information
delysilva authored Nov 13, 2023
2 parents c9c3d98 + c55bdb7 commit 0963546
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -607,7 +607,7 @@ class Memory {
this.free = this.memsize; // free space in memory
this.active = new Queue(); // active processes in memory
this.LRU = new Queue(); // least recently used processes in memory
this.virtual = new Queue(100).fill("-"); // virtual memory
this.virtual = new Array(100).fill("-"); // virtual memory
}


Expand Down Expand Up @@ -672,7 +672,7 @@ class Memory {
}
}

// update the virtual memory
// update the virtual memory with the first occurence of the allocated process

this.virtual[process.Key] = this.memory.indexOf(process.Key);

Expand Down

0 comments on commit 0963546

Please sign in to comment.