Skip to content

This repository contains the implementation of a linked list using serial and parallel programming.

Notifications You must be signed in to change notification settings

SachiniAbeygunawardhana/Linked-List

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Linked-List

This repository contains the implementation of a linked list using serial and parallel programming.

  1. Compile the files using the following commands.
 	 serial.c 	: 	gcc -g -Wall -o serial serial.c
 	 mutex.c 	: 	gcc -g -Wall -o mutex mutex.c -pthread -lm
	 rw_lock.c 	: 	gcc -g -Wall -o rw_lock rw_lock.c -pthread -lm
  1. Run the files using the follwing commands
	 serial.c 	:	./serial <n> <m> <mMember> <mInsert> <mDelete> <sample size>
	 mutex.c 	:	./mutex  <thread_count> <n> <m>  <mMember> <mInsert> <mDelete> <sample size>
	 rw_lock.c 	:	./rwlock <thread_count> <n> <m> <mMember> <mInsert> <mDelete> <sample size>
  • n is the number of initial unique values in the Link List.
  • m is number of random Member, Insert, and Delete operations on the link list.
  • mMember is the fractions of operations of Member operation.
  • mInsert is the fractions of operations of Insert operation.
  • mDelete is the fractions of operations of Delete operation.
  • sample_size is the number of iterations the main code is run.
  1. After successful run, program will display
    • the execution time of each iteration
    • the average execution time
    • the standard deviation

About

This repository contains the implementation of a linked list using serial and parallel programming.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages