Linked List with Read-Write Locks for the Entire Linked List

Implementation of a linked list as a Parallel program (based on Pthreads) with read-write locks for the entire linked list https://github.com/Rajind/LinkedLists-in-C Parallel program (based on Pthreads) with read-write locks for the entire linked list How to compile and run the program: *linked_list_one_rwlock.c gcc -g -Wall -o linked_list_one_rwlock linked_list_one_rwlock.c -lpthread ./linked_list_one_rwlock parameter_1 --------------------------------------------------- parameter_1 : is … Continue reading Linked List with Read-Write Locks for the Entire Linked List →

Linked List with One Mutex for the Entire Linked List

Implementation of a linked list as a Parallel program (based on Pthreads) with one mutex for the entire linked list https://github.com/Rajind/LinkedLists-in-C Parallel program (based on Pthreads) with one mutex for the entire linked list How to compile and run the program: *linked_list_one_mutex.c gcc -g -Wall -o linked_list_one_mutex linked_list_one_mutex.c -lpthread ./linked_list_one_mutex parameter_1 --------------------------------------------------- parameter_1 : is the … Continue reading Linked List with One Mutex for the Entire Linked List →

Solution to Senate Bus Problem

This is Java Implementation of the Semaphore based solution for Senate Bus Problem https://github.com/Rajind/SenateBusProblem The Senate Bus Problem (From The Little Book of Semaphores by Allen B. Downey) This problem was originally based on the Senate bus at Wellesley College. Riders come to a bus stop and wait for a bus. When the bus arrives, all … Continue reading Solution to Senate Bus Problem →