This commit is contained in:
p-w-rs
2022-10-05 10:55:49 -05:00
parent eb95ed4ed6
commit ccdbbeb979
36 changed files with 228 additions and 43 deletions

View File

@@ -1,7 +1,7 @@
s /*
* sem_list2.c - Uses a semaphore as a way to control access
* to a critical section for a singly linked list
*/
/*
* sem_list2.c - Uses a semaphore as a way to control access
* to a critical section for a singly linked list
*/
#include <pthread.h>
#include <semaphore.h>
@@ -10,7 +10,7 @@ s /*
#include <sys/types.h>
#include <unistd.h>
typedef struct node
typedef struct node
{
int val;
struct node *next;