Scroll to navigation

md_src_plugins_semlock_README(3elektra) Elektra md_src_plugins_semlock_README(3elektra)

NAME

md_src_plugins_semlock_README - Plugin: semlock

  • infos = Information about the semlock plugin is in keys below
  • infos/author = Kurt Micheli kurt.micheli@libelektra.org
  • infos/licence = BSD
  • infos/needs =
  • infos/provides =
  • infos/placements = pregetstorage postgetstorage presetstorage postcommit postrollback
  • infos/status = unittest global experimental unfinished nodoc -10000
  • infos/description = locks files during usage

This global semlock plugin introduces a read lock while GET and a read/write lock while SET.

A semaphore is used for the synchronisation and the implemented algorithm favors the writer, because updates should be propagated soon as possible.

The algorithm is described here.

The usage of this plugin could lead to deadlocks, due to an ongoing discussion (-10000) (Link).

/dev/shm

Is the location where the semaphores will be saved. /dev/shm should be mounted as tempfs, otherwise the semaphores can not be created (this issue only appears on older systems). More information here.

Mon Jan 15 2018 Version 0.8.20