Initial commit

This commit is contained in:
jslightham
2023-05-21 23:28:11 -04:00
commit 0360e7dfcc
31 changed files with 2068 additions and 0 deletions

20
P2/HashTable.h Normal file
View File

@@ -0,0 +1,20 @@
#ifndef HASHTABLE_H
#define HASHTABLE_H
#include <vector>
#include "Process.h"
class HashTable
{
public:
virtual bool Insert(Process *p) = 0;
virtual int Search(unsigned int PID) = 0;
virtual Process *Get(unsigned int PID) = 0;
virtual bool Remove(unsigned int PID) = 0;
virtual void Print(unsigned int m) = 0;
protected:
int maxCount;
int count;
};
#endif