z-logo
open-access-imgOpen Access
Derivable Partial Locking for Algebraic Data Types
Author(s) -
Boldizsár Németh,
Zoltán Kelemen
Publication year - 2015
Publication title -
acta cybernetica
Language(s) - English
Resource type - Journals
SCImago Journal Rank - 0.143
H-Index - 18
eISSN - 2676-993X
pISSN - 0324-721X
DOI - 10.14232/actacyb.22.1.2015.10
Subject(s) - computer science , concurrency , thread (computing) , concurrent data structure , programmer , abstract data type , linearizability , lock (firearm) , data structure , programming language , synchronization (alternating current) , overhead (engineering) , data type , concurrency control , parallel computing , parallelism (grammar) , correctness , distributed computing , theoretical computer science , database transaction , mechanical engineering , channel (broadcasting) , engineering , computer network
Parallelism and concurrency are one of the most actively researched fields in Computer Science. Writing concurrent programs is challenging because of the need for synchronization and solving possible race conditions and deadlocks while avoiding unnecessary waiting and overhead.The integrity of the program data can be archived by providing locks for its data structures or using concurrent data structures. Partial locking allows threads to lock exactly those parts of the global data they need to read or update.This article presents a method that helps the implementation of threadsafe programs with Algebraic Data Types [1]. By transforming the data model of the application to thread-safe data structures with a built-in, configurable locking mechanism including partial locking. With this support, the programmer can focus on the business logic of his application when writing the program. As part of this article, we prove that the shared version of the calculation will produce the same result as the original one.

The content you want is available to Zendy users.

Already have an account? Click here to sign in.
Having issues? You can contact us here
Accelerating Research

Address

John Eccles House
Robert Robinson Avenue,
Oxford Science Park, Oxford
OX4 4GP, United Kingdom