# Finer-grained Locking in Concurrent Dynamic Planar Convex Hulls

**Authors:** K. Alex Mills, James Smith

arXiv: 1702.03008 · 2017-02-13

## TL;DR

This paper introduces a novel concurrent algorithm for dynamic convex hulls using a single BST with a new locking scheme, significantly improving performance over existing methods.

## Contribution

It presents the first concurrent solution for dynamic convex hulls employing a unique locking approach that enhances throughput and efficiency.

## Key findings

- Finer-grained locking improves throughput by 8-60% over fine-grained locking.
- Finer-grained locking outperforms coarse-grained locking and STM by 38-61x.
- The approach is 2-4x faster than parallel divide-and-conquer for static convex hulls.

## Abstract

The convex hull of a planar point set is the smallest convex polygon containing each point in the set. The dynamic convex hull problem concerns efficiently maintaining the convex hull of a set of points subject to additions and removals. One algorithm for this problem uses two external balanced binary search trees (BSTs) (M. H. Overmars, J. van Leeuwen 1981). We present the first concurrent solution for this problem, which uses a single BST that stores references to intermediate convex hull solutions at each node. We implement and evaluate two lock-based approaches: a) fine-grained locking, where each node of the tree is protected by a lock, and b) "finer-grained locking", where each node contains a separate lock for each of the left and right chains. In our throughput experiments, we observe that finer-grained locking yields an 8-60% improvement over fine-grained locking, and a 38-61x improvement over coarsegrained locking and software transactional memory (STM). When applied to find the convex hull of static point sets, our approach outperforms a parallel divide-and-conquer implementation by 2-4x using an equivalent number of threads.

## Full text

_Full body text omitted from this summary view._ Fetch the complete paper as Markdown: https://tomesphere.com/paper/1702.03008/full.md

## Figures

6 figures with captions in the complete paper: https://tomesphere.com/paper/1702.03008/full.md

## References

18 references — full list in the complete paper: https://tomesphere.com/paper/1702.03008/full.md

---
Source: https://tomesphere.com/paper/1702.03008