+Attribution
This commit is contained in:
parent
6605044f15
commit
d718e6ecb2
6
Makefile
6
Makefile
@ -1,3 +1,9 @@
|
|||||||
|
# +-------------+---------+-----------------------+
|
||||||
|
# | John Breaux | jab0910 | JohnBreaux@my.unt.edu |
|
||||||
|
# +-------------+---------+-----------------------+
|
||||||
|
# | 2022-04-04 |
|
||||||
|
# +-----------------------------------------------+
|
||||||
|
|
||||||
# ---------- Variables listed below --------- #
|
# ---------- Variables listed below --------- #
|
||||||
|
|
||||||
# Executable
|
# Executable
|
||||||
|
@ -1,4 +1,10 @@
|
|||||||
|
/*
|
||||||
|
+-------------+---------+-----------------------+
|
||||||
|
| John Breaux | jab0910 | JohnBreaux@my.unt.edu |
|
||||||
|
+-------------+---------+-----------------------+
|
||||||
|
| 2022-04-04 |
|
||||||
|
+-----------------------------------------------+
|
||||||
|
*/
|
||||||
/*
|
/*
|
||||||
consumer:
|
consumer:
|
||||||
Unlinks blocks from list2,
|
Unlinks blocks from list2,
|
||||||
|
@ -1,3 +1,10 @@
|
|||||||
|
/*
|
||||||
|
+-------------+---------+-----------------------+
|
||||||
|
| John Breaux | jab0910 | JohnBreaux@my.unt.edu |
|
||||||
|
+-------------+---------+-----------------------+
|
||||||
|
| 2022-04-04 |
|
||||||
|
+-----------------------------------------------+
|
||||||
|
*/
|
||||||
#define N 8
|
#define N 8
|
||||||
#define timescale 10000
|
#define timescale 10000
|
||||||
|
|
||||||
|
@ -1,4 +1,10 @@
|
|||||||
|
/*
|
||||||
|
+-------------+---------+-----------------------+
|
||||||
|
| John Breaux | jab0910 | JohnBreaux@my.unt.edu |
|
||||||
|
+-------------+---------+-----------------------+
|
||||||
|
| 2022-04-03 |
|
||||||
|
+-----------------------------------------------+
|
||||||
|
*/
|
||||||
struct block {
|
struct block {
|
||||||
block *prev;
|
block *prev;
|
||||||
block *next;
|
block *next;
|
||||||
|
@ -1,4 +1,10 @@
|
|||||||
|
/*
|
||||||
|
+-------------+---------+-----------------------+
|
||||||
|
| John Breaux | jab0910 | JohnBreaux@my.unt.edu |
|
||||||
|
+-------------+---------+-----------------------+
|
||||||
|
| 2022-04-04 |
|
||||||
|
+-----------------------------------------------+
|
||||||
|
*/
|
||||||
/*
|
/*
|
||||||
producer:
|
producer:
|
||||||
Unlinks blocks from freelist,
|
Unlinks blocks from freelist,
|
||||||
|
@ -1,4 +1,10 @@
|
|||||||
|
/*
|
||||||
|
+-------------+---------+-----------------------+
|
||||||
|
| John Breaux | jab0910 | JohnBreaux@my.unt.edu |
|
||||||
|
+-------------+---------+-----------------------+
|
||||||
|
| 2022-04-04 |
|
||||||
|
+-----------------------------------------------+
|
||||||
|
*/
|
||||||
/*
|
/*
|
||||||
transformer:
|
transformer:
|
||||||
Unlinks block x from list1
|
Unlinks block x from list1
|
||||||
|
@ -1,3 +1,10 @@
|
|||||||
|
/*
|
||||||
|
+-------------+---------+-----------------------+
|
||||||
|
| John Breaux | jab0910 | JohnBreaux@my.unt.edu |
|
||||||
|
+-------------+---------+-----------------------+
|
||||||
|
| 2022-04-04 |
|
||||||
|
+-----------------------------------------------+
|
||||||
|
*/
|
||||||
#include <semaphore.h> // POSIX semaphores!
|
#include <semaphore.h> // POSIX semaphores!
|
||||||
#include "list.hpp" // list implementation
|
#include "list.hpp" // list implementation
|
||||||
#include "globals.hpp" // lists, sems, muts
|
#include "globals.hpp" // lists, sems, muts
|
||||||
|
@ -1,3 +1,10 @@
|
|||||||
|
/*
|
||||||
|
+-------------+---------+-----------------------+
|
||||||
|
| John Breaux | jab0910 | JohnBreaux@my.unt.edu |
|
||||||
|
+-------------+---------+-----------------------+
|
||||||
|
| 2022-04-03 |
|
||||||
|
+-----------------------------------------------+
|
||||||
|
*/
|
||||||
#include "list.hpp"
|
#include "list.hpp"
|
||||||
#include <cstdio>
|
#include <cstdio>
|
||||||
|
|
||||||
|
@ -1,3 +1,10 @@
|
|||||||
|
/*
|
||||||
|
+-------------+---------+-----------------------+
|
||||||
|
| John Breaux | jab0910 | JohnBreaux@my.unt.edu |
|
||||||
|
+-------------+---------+-----------------------+
|
||||||
|
| 2022-04-03 |
|
||||||
|
+-----------------------------------------------+
|
||||||
|
*/
|
||||||
#include <semaphore.h> // POSIX semaphores!
|
#include <semaphore.h> // POSIX semaphores!
|
||||||
#include <pthread.h> // POSIX threads!
|
#include <pthread.h> // POSIX threads!
|
||||||
#include <unistd.h> // usleep
|
#include <unistd.h> // usleep
|
||||||
|
@ -1,3 +1,10 @@
|
|||||||
|
/*
|
||||||
|
+-------------+---------+-----------------------+
|
||||||
|
| John Breaux | jab0910 | JohnBreaux@my.unt.edu |
|
||||||
|
+-------------+---------+-----------------------+
|
||||||
|
| 2022-04-04 |
|
||||||
|
+-----------------------------------------------+
|
||||||
|
*/
|
||||||
#include <semaphore.h> // POSIX semaphores!
|
#include <semaphore.h> // POSIX semaphores!
|
||||||
#include "list.hpp" // list implementation
|
#include "list.hpp" // list implementation
|
||||||
#include "globals.hpp" // lists, sems, muts
|
#include "globals.hpp" // lists, sems, muts
|
||||||
|
@ -1,3 +1,10 @@
|
|||||||
|
/*
|
||||||
|
+-------------+---------+-----------------------+
|
||||||
|
| John Breaux | jab0910 | JohnBreaux@my.unt.edu |
|
||||||
|
+-------------+---------+-----------------------+
|
||||||
|
| 2022-04-04 |
|
||||||
|
+-----------------------------------------------+
|
||||||
|
*/
|
||||||
#include <semaphore.h> // POSIX semaphores!
|
#include <semaphore.h> // POSIX semaphores!
|
||||||
#include "list.hpp" // list implementation
|
#include "list.hpp" // list implementation
|
||||||
#include "globals.hpp" // lists, sems, muts
|
#include "globals.hpp" // lists, sems, muts
|
||||||
|
Loading…
Reference in New Issue
Block a user