A thread-safe Term Library
Distributed, Parallel, and Cluster Computing
2022-08-15 v2
Abstract
Terms are one of the fundamental mathematical concepts in computing. E.g. every expression characterisable by a context free grammar is a term. We developed a thread-safe Term Library. The biggest challenge is to implement hyper-efficient multi-reader/single-writer mutual exclusion for which we designed the new busy-forbidden protocol. Model checking is used to show both the correctness of the protocol and the Term Library. Benchmarks show this Term Library has little overhead compared to sequential versions and outperforms them already on two processors. Using the new library in an existing state space generation tool, very substantial speed ups can be obtained.
Cite
@article{arxiv.2111.02706,
title = {A thread-safe Term Library},
author = {J. F. Groote and M. Laveaux and P. H. M. van Spaendonck},
journal= {arXiv preprint arXiv:2111.02706},
year = {2022}
}