-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProcess.h
More file actions
33 lines (25 loc) · 787 Bytes
/
Process.h
File metadata and controls
33 lines (25 loc) · 787 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
32
33
//
// Created by asus on 24.11.2018.
//
#ifndef PROJECT1_PROCESS_H
#define PROJECT1_PROCESS_H
#include <iostream>
#include <algorithm>
#include <string.h>
#include <queue>
using namespace std;
class Process {
public:
Process(int priority, int arTime, const string &procName, const string &codeFile, int processID);
int priority;
int arTime; //arrival time
int compTime; //completion time
int processID;
int turnAround;
int waitingTime;
int instrPtr; //points to the next instruction to be executed
string procName;//process name
string codeFile;//assigned code file's name
vector <int> instrVec; //vector for keeping the instructions, according to the code file
};
#endif //PROJECT1_PROCESS_H