Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Refactor CPUalgorithms --> MemoryManagementAlgorithms
  • Loading branch information
Rytnix committed May 31, 2022
commit b5ac34046857a7e013c14590bcf0f7d3711b2898
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

import java.util.ArrayList;

public abstract class CPUalgorithms {
public abstract class MemoryManagementAlgorithms {

/**
* Method to allocate memory to blocks according to CPU algorithms.
Expand All @@ -26,7 +26,7 @@ public abstract class CPUalgorithms {
/**
* @author Dekas Dimitrios
*/
class BestFitCPU extends CPUalgorithms{
class BestFitCPU extends MemoryManagementAlgorithms {

private static final int NO_ALLOCATION
= -255; // if a process has been allocated in position -255,
Expand Down Expand Up @@ -110,7 +110,7 @@ public ArrayList<Integer> fitProcess(int[] sizeOfBlocks, int[] sizeOfProcesses)
/**
* @author Dekas Dimitrios
*/
class WorstFitCPU extends CPUalgorithms{
class WorstFitCPU extends MemoryManagementAlgorithms {

private static final int NO_ALLOCATION
= -255; // if a process has been allocated in position -255,
Expand Down Expand Up @@ -177,7 +177,7 @@ public ArrayList<Integer> fitProcess(int[] sizeOfBlocks, int[] sizeOfProcesses)
/**
* @author Dekas Dimitrios
*/
class FirstFitCPU extends CPUalgorithms{
class FirstFitCPU extends MemoryManagementAlgorithms {

private static final int NO_ALLOCATION
= -255; // if a process has been allocated in position -255,
Expand Down Expand Up @@ -236,7 +236,7 @@ public ArrayList<Integer> fitProcess(int[] sizeOfBlocks, int[] sizeOfProcesses)
/**
* @author Alexandros Lemonaris
*/
class NextFit extends CPUalgorithms{
class NextFit extends MemoryManagementAlgorithms {

private static final int NO_ALLOCATION
= -255; // if a process has been allocated in position -255,
Expand Down