2025-03-31 17:19:43 +03:00
|
|
|
#ifndef PROCESS_H
|
|
|
|
#define PROCESS_H
|
|
|
|
|
|
|
|
#include "PageTable.h"
|
|
|
|
|
|
|
|
class Process {
|
2025-04-01 22:06:25 +03:00
|
|
|
public:
|
|
|
|
std::vector<PTE> page_table;
|
|
|
|
std::vector<unsigned int> working_set;
|
|
|
|
unsigned int execution_time, elapsed_time, id;
|
|
|
|
Process *next, *prev;
|
|
|
|
|
|
|
|
Process(unsigned int id, std::vector<PTE> page_table, unsigned int working_set_size, unsigned int execution_time);
|
|
|
|
[[nodiscard]] bool is_finished() const;
|
2025-03-31 17:19:43 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endif //PROCESS_H
|