+Attribution

This commit is contained in:
John 2022-04-06 01:45:57 -05:00
parent 6605044f15
commit d718e6ecb2
11 changed files with 76 additions and 4 deletions

View File

@ -1,3 +1,9 @@
# +-------------+---------+-----------------------+
# | John Breaux | jab0910 | JohnBreaux@my.unt.edu |
# +-------------+---------+-----------------------+
# | 2022-04-04 |
# +-----------------------------------------------+
# ---------- Variables listed below --------- # # ---------- Variables listed below --------- #
# Executable # Executable

View File

@ -1,4 +1,10 @@
/*
+-------------+---------+-----------------------+
| John Breaux | jab0910 | JohnBreaux@my.unt.edu |
+-------------+---------+-----------------------+
| 2022-04-04 |
+-----------------------------------------------+
*/
/* /*
consumer: consumer:
Unlinks blocks from list2, Unlinks blocks from list2,

View File

@ -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

View File

@ -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;

View File

@ -1,4 +1,10 @@
/*
+-------------+---------+-----------------------+
| John Breaux | jab0910 | JohnBreaux@my.unt.edu |
+-------------+---------+-----------------------+
| 2022-04-04 |
+-----------------------------------------------+
*/
/* /*
producer: producer:
Unlinks blocks from freelist, Unlinks blocks from freelist,

View File

@ -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

View File

@ -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

View File

@ -1,3 +1,10 @@
/*
+-------------+---------+-----------------------+
| John Breaux | jab0910 | JohnBreaux@my.unt.edu |
+-------------+---------+-----------------------+
| 2022-04-03 |
+-----------------------------------------------+
*/
#include "list.hpp" #include "list.hpp"
#include <cstdio> #include <cstdio>

View File

@ -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

View File

@ -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

View File

@ -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