added LRU and fixed bug in dequeueN

This commit is contained in:
elvis
2022-05-19 21:32:44 +02:00
parent 27be55993c
commit 4283d5450e
7 changed files with 209 additions and 28 deletions

View File

@ -7,6 +7,12 @@
#include "conn.h"
/* Algoritmo che viene usato per il rimpiazzo dei dati:
se = 0 -> FIFO
se = 1 -> LRU
*/
#define ALGORITHM 1
/* struttura dati per gestire i file in memoria principale */
typedef struct {
char *filepath; /* path assoluto del file */