forked from SM719/CPU_Scheduler
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProcess.h
More file actions
31 lines (26 loc) · 676 Bytes
/
Process.h
File metadata and controls
31 lines (26 loc) · 676 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#ifndef __CPU_Scheduler__Process__
#define __CPU_Scheduler__Process__
#include <iostream>
#include <string.h>
#include <deque>
using namespace std;
class Process
{
public:
int pid_; //Process id
int timeIn_; //Time of arrival into ready queue
int prio_; //Priority code
int tncpu_; //Total number of CPU Bursts
int totalWaitingTime_;
int totalExecutionTime_;
deque<int> cpuBrusts_;
deque<int> IOBrusts_;
Process(int pid, int timeIn, int prio, int tncpu) :
pid_(pid), timeIn_(timeIn), prio_(prio), tncpu_(tncpu),
totalWaitingTime_(0), totalExecutionTime_(0)
{};
Process() :
totalWaitingTime_(0), totalExecutionTime_(0)
{};
};
#endif