2025-03-31 17:19:43 +03:00
|
|
|
#include "Process.h"
|
|
|
|
|
|
|
|
Process::Process(PageTable *pageTable, const unsigned int executionTime)
|
|
|
|
: pageTable(pageTable), executionTime(executionTime), elapsedTime(0) {
|
|
|
|
}
|
|
|
|
|
2025-03-31 22:20:01 +03:00
|
|
|
bool Process::is_finished() const {
|
2025-03-31 17:19:43 +03:00
|
|
|
return elapsedTime >= executionTime;
|
|
|
|
}
|