Back to search

University of Saskatchewan

A pure actor implementation of futures: A solution to mixing of concurrency models in Scala

Abstract

dc:description.abstract

This thesis presents a novel future-like library implemented using the pure Actor Model in Scala. Motivated by the challenges and potential pitfalls of mixing concurrency models in Scala, particularly the risks associated with integrating futures and actors. While both the Future and the Actor Model offer asynchronous programming and non-blocking execution, their integration can increase the risk of issues such as deadlocks and data races. This work focuses on the specific interaction between these two paradigms. The project explores the mechanisms of futures and promises, proposing and implementing two distinct solutions. The first solution involves replacing futures and promises with task manager actors and worker actors. The second solution, which forms the basis of the final implementation, integrates futures with actors through a task abstraction and a result collection mechanism. The library is further extended with a partial implementation for distributed task execution. Through a series of experiments and implementations, this work demonstrates the feasibility and effectiveness of building a future-like library solely on the Actor Model. The resulting library offers a robust and efficient solution for task management in both local and distributed environments, potentially mitigating the risks associated with mixing concurrency models. This research contributes to the broader field of concurrent programming in Scala and provides a foundation for future work in actor-based task management.

Degree

thesis:*
Name thesis:degree_name
Master of Science (M.Sc.)
Level thesis:degree_level
Masters
Discipline thesis:degree_discipline
Computer Science
Department thesis:degree_department
Computer Science
Grantor
University of Saskatchewan
Year dc:date.issued
2024

Author and committee

dc:creator, dc:contributor.*
Author dc:creator
  • He, Jinhua
Advisor dc:contributor.advisor
  • Jamali, Nadeem
Committee members dc:contributor.committeemember
  • Geng, hongxing
  • Rochan, Mrigank
ORCID person:identifier.orcid

Subjects

dc:subject × 1

Rights

Language dc:language.iso
en

Identifiers

dc:identifier.*
Handle dc:identifier.uri
https://hdl.handle.net/10388/16040

Chain of custody

source
Harvested from
University of Saskatchewan
Base URL
harvest.usask.ca/server/oai/request
Last updated
2026-11-19
Source record
OAI-PMH GetRecord
citation

He, Jinhua. A pure actor implementation of futures: A solution to mixing of concurrency models in Scala. Masters thesis, University of Saskatchewan, 2024. https://hdl.handle.net/10388/16040