Skip to content

Design and implementation of the Raymond tree mutual exclusion algorithm in kernel-space in FreeBSD

License

Notifications You must be signed in to change notification settings

tahajahangir/kernel-space-raymond-tree-mutual-exclusion

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

To run a test:

for each site (computer):

STEP 1: make and install kld:
	$ cd ./module/
	$ make load

STEP 2: make test script
	$ cd ./test/
	$ make
	a.out will be created
	This small prog is used for calling syscalls.
	exits with return value 0, if syscall succeeded
	or exits with a non-zero value and prints error to stderr

STEP 3: Initialize algorithm
	// initialize as a token holder
	$ ./test/a.out init 192.168.1.1 1112
	or
	// initialize as a regular site
	$ ./test/a.out init 192.168.1.2 1110 192.168.1.1 1112
	
STEP 4: test it!
	// to enter critical section
	$ ./test/a.out enter
	// to exit critical section
	$ ./test/a.out exit

STEP 5: destroy site (stop listening for requests)
	$ ./test/a.out destroy

About

Design and implementation of the Raymond tree mutual exclusion algorithm in kernel-space in FreeBSD

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages