libsspa is library that implement a hybrid locking mechanism (spin/sleep), which allows the awakening of sleeping threads via SoftIRQ daemons. The time required for awakening is estimated at runtime using the sample average of the critical section duration and via the percentile configurable during compilation. It therefore needs to operate by means of a kernel module via the LKM facilities.
To compile and insert the module:
cd KobLock
make
make insmodTo remove the module:
cd KobLock
make rmmodor
sudo rmmod the_koblock.koIn order to use the user lock after installing the module, you will then need to download LiTL and insert the patch we have put in the user-side.
LiTL will allow you to generate a script for starting programmes by replacing the functions of pthread_mutex with those of sspa