-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprocess.h
26 lines (25 loc) · 892 Bytes
/
process.h
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
/* FILENAME: process.h
* AUTHOR: Ricardo J. Cantarero
* DATE: 11/13/2022
*
* Header File for process.cpp, defines struct process
*/
#ifndef PROCESS_H
#define PROCESS_H
#include <iostream>
struct process { // Represents a process.
int arrivalTime; // Time Process arrives.
int burstTime; // Time Remaining / Burst Time for Process.
int id; // ID for processes, for cout purposes.
int loadOffTime; // Time that the processes was removed from Task Queue (only
// for Round Robin).
process(int aT, int tR, int idNum); // Constructor
process() {} // Constructor
process(const process &p0); // Cpy Constructor
void operator=(const process &p);
void load(int workTime); // Load Func
friend std::ostream &
operator<<(std::ostream &out,
const process &p); // Print to std::out/std::cerr
};
#endif