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

24
P2/DoubleHashTable.h Normal file
View File

@@ -0,0 +1,24 @@
#ifndef DOUBLEHASHTABLE_H
#define DOUBLEHASHTABLE_H
#include <vector>
#include "Process.h"
#include "HashTable.h"
class DoubleHashTable : public HashTable
{
public:
bool Insert(Process *p);
int Search(unsigned int PID);
Process *Get(unsigned int PID);
bool Remove(unsigned int PID);
void Print(unsigned int m);
DoubleHashTable(int size);
~DoubleHashTable();
private:
Process **processList;
int HashIndex(unsigned int k, int i);
};
#endif