-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProcess.h
More file actions
68 lines (53 loc) · 1.3 KB
/
Process.h
File metadata and controls
68 lines (53 loc) · 1.3 KB
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
//
// Created by Brian Weir (https://github.com/bweir27) on 11/14/20.
//
#ifndef PROCESS_H
#define PROCESS_H
#include <stdint.h>
#include <cstdlib>
#include <iostream>
#include <ios>
#include <fstream>
#include <sstream>
#include <cstdio>
#include <string>
#include <cstring>
#include <cstdlib>
#include <map>
#include <iterator>
#include <iomanip>
#include <vector>
#include <queue>
#include <typeinfo>
#include <algorithm>
using namespace std;
class Process {
// string p_name;
// uint32_t priority;
// uint32_t arrival_time;
// uint32_t total_time;
// uint32_t block_interval;
// uint32_t block_time_remaining;
// bool is_finished;
public:
//the core behavior values
string p_name;
uint32_t priority;
uint32_t arrival_time;
uint32_t total_time;
uint32_t block_interval;
//other variables used
uint32_t time_until_finished;
uint32_t time_until_next_block;
int time_until_arrival;
int block_time_remaining;
int start_time;
int finish_time;
double turnaround_time;
bool is_finished;
Process(string name, uint32_t priority, uint32_t arrival_time, uint32_t total_time, uint32_t block_interval); //constructor
// friend bool operator< (const Process& p1, const Process& p2);
void print() const;
private:
};
#endif //PROCESS_H