+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 --------- #
|
||||
|
||||
# Executable
|
||||
|
@ -1,4 +1,10 @@
|
||||
|
||||
/*
|
||||
+-------------+---------+-----------------------+
|
||||
| John Breaux | jab0910 | JohnBreaux@my.unt.edu |
|
||||
+-------------+---------+-----------------------+
|
||||
| 2022-04-04 |
|
||||
+-----------------------------------------------+
|
||||
*/
|
||||
/*
|
||||
consumer:
|
||||
Unlinks blocks from list2,
|
||||
|
@ -1,3 +1,10 @@
|
||||
/*
|
||||
+-------------+---------+-----------------------+
|
||||
| John Breaux | jab0910 | JohnBreaux@my.unt.edu |
|
||||
+-------------+---------+-----------------------+
|
||||
| 2022-04-04 |
|
||||
+-----------------------------------------------+
|
||||
*/
|
||||
#define N 8
|
||||
#define timescale 10000
|
||||
|
||||
|
@ -1,4 +1,10 @@
|
||||
|
||||
/*
|
||||
+-------------+---------+-----------------------+
|
||||
| John Breaux | jab0910 | JohnBreaux@my.unt.edu |
|
||||
+-------------+---------+-----------------------+
|
||||
| 2022-04-03 |
|
||||
+-----------------------------------------------+
|
||||
*/
|
||||
struct block {
|
||||
block *prev;
|
||||
block *next;
|
||||
|
@ -1,4 +1,10 @@
|
||||
|
||||
/*
|
||||
+-------------+---------+-----------------------+
|
||||
| John Breaux | jab0910 | JohnBreaux@my.unt.edu |
|
||||
+-------------+---------+-----------------------+
|
||||
| 2022-04-04 |
|
||||
+-----------------------------------------------+
|
||||
*/
|
||||
/*
|
||||
producer:
|
||||
Unlinks blocks from freelist,
|
||||
|
@ -1,4 +1,10 @@
|
||||
|
||||
/*
|
||||
+-------------+---------+-----------------------+
|
||||
| John Breaux | jab0910 | JohnBreaux@my.unt.edu |
|
||||
+-------------+---------+-----------------------+
|
||||
| 2022-04-04 |
|
||||
+-----------------------------------------------+
|
||||
*/
|
||||
/*
|
||||
transformer:
|
||||
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 "list.hpp" // list implementation
|
||||
#include "globals.hpp" // lists, sems, muts
|
||||
|
@ -1,3 +1,10 @@
|
||||
/*
|
||||
+-------------+---------+-----------------------+
|
||||
| John Breaux | jab0910 | JohnBreaux@my.unt.edu |
|
||||
+-------------+---------+-----------------------+
|
||||
| 2022-04-03 |
|
||||
+-----------------------------------------------+
|
||||
*/
|
||||
#include "list.hpp"
|
||||
#include <cstdio>
|
||||
|
||||
|
@ -1,3 +1,10 @@
|
||||
/*
|
||||
+-------------+---------+-----------------------+
|
||||
| John Breaux | jab0910 | JohnBreaux@my.unt.edu |
|
||||
+-------------+---------+-----------------------+
|
||||
| 2022-04-03 |
|
||||
+-----------------------------------------------+
|
||||
*/
|
||||
#include <semaphore.h> // POSIX semaphores!
|
||||
#include <pthread.h> // POSIX threads!
|
||||
#include <unistd.h> // usleep
|
||||
|
@ -1,3 +1,10 @@
|
||||
/*
|
||||
+-------------+---------+-----------------------+
|
||||
| John Breaux | jab0910 | JohnBreaux@my.unt.edu |
|
||||
+-------------+---------+-----------------------+
|
||||
| 2022-04-04 |
|
||||
+-----------------------------------------------+
|
||||
*/
|
||||
#include <semaphore.h> // POSIX semaphores!
|
||||
#include "list.hpp" // list implementation
|
||||
#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 "list.hpp" // list implementation
|
||||
#include "globals.hpp" // lists, sems, muts
|
||||
|
Loading…
Reference in New Issue
Block a user