Back to search

Chalmers University of Technology

Lock-Free Concurrency in Rust

Abstract

dc:description.abstract

Among the crucial data structures for modern high-performance systems is the fundamental concurrent lock-free FIFO queue. The programming languages selected for these systems typically prioritize speed and efficiency and consequently, these languages inherently lack safety and security in their designs. Due to these drawbacks, Rust was created to maintain the benefits associated with low-level languages while also providing safety and security. It stands as the most-loved language from 2016’s Stack Overflow developer survey to the most recent one in 2023, and since 2022 it has been rated as the most wanted. However, even though a popular language, not much research has been done to investigate Rust as a choice for these concurrent high-performance systems. In this paper, we are putting Rust up to the test, analyzing its suitability for highperformance concurrent lock-free programming. For this, we implement two concurrent lock-free FIFO queues in the Rust language, one classic and the other state-ofthe- art. These are then compared against their counterparts in C or C++ using a diverse set of measurements including throughput, energy, and memory. Additionally, perhaps as important, we assess our developer experience, providing a nuanced view of Rust’s ergonomics, and highlighting some differences with C++. Our comparative analysis shows that Rust is a viable option in a practical high-performance concurrent scenario. Its overall convenience and compatibility with traditional tools, combined with an ecosystem that includes a unique powerful tool exclusive to Rust, makes for a user-friendly and effective programming language and, we believe it is a candidate for high-performance concurrent lock-free programming.

Degree

thesis:*
Level thesis:degree_level
H
Department dc:contributor.department
Chalmers tekniska högskola / Institutionen för data och informationsteknik
Year dc:date.issued
2024

Author and committee

dc:creator, dc:contributor.*
Authors dc:creator
  • Jinstrand, Lilly
  • Julin, Marcus
Advisor dc:contributor.supervisor
  • Von Geijer, Kåre
Committee member dc:contributor.committeemember
  • Tsigas, Philippas

Subjects

dc:subject × 1

Rights

Language dc:language.iso
eng

Identifiers

dc:identifier.*
Dc Identifier Coursecode
DATX05

Chain of custody

source
Harvested from
Chalmers University of Technology
Base URL
odr.chalmers.se/oai/request
Last updated
2026-11-19
Source record
OAI-PMH GetRecord
citation

Jinstrand, Lilly; Julin, Marcus. Lock-Free Concurrency in Rust. H thesis, 2024. https://hdl.handle.net/20.500.12380/310444