{"id":{"repo_id":"sask","oai_identifier":"oai:harvest.usask.ca:10388/16040"},"canonical_url":"https://search.ndltd.org/etd/sask/oai:harvest.usask.ca:10388/16040","repository":{"repo_id":"sask","name":"University of Saskatchewan","base_url":"https://harvest.usask.ca/server/oai/request"},"display":{"title":"A pure actor implementation of futures: A solution to mixing of concurrency models in Scala","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.","abstract_html":"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.","abstract_has_math":false,"creators":["He, Jinhua"],"institution":"University of Saskatchewan","degree_name":"Master of Science (M.Sc.)","degree_level":"Masters","degree_discipline":"Computer Science","degree_department":"Computer Science","school":null,"contributors":[],"advisors":["Jamali, Nadeem"],"committee_chairs":[],"committee_members":["Geng, hongxing","Rochan, Mrigank"],"year":2024,"date_issued":"2024-09-17","date_published":"2024-09-17","updated_at":"2026-11-19T09:54:19Z","subjects":["Actor Model, Future, Scala, Concurrency Model"],"languages":["en"],"rights":[],"rights_urls":[],"identifier_entries":[],"person_identifier_entries":[{"key":"person:identifier.orcid","label":"ORCID","values":["0009-0000-8269-797X"],"render_values":[{"text":"0009-0000-8269-797X","href":"https://orcid.org/0009-0000-8269-797X","code":true}]}]},"links":{"outbound_url":"https://hdl.handle.net/10388/16040","outbound_label":"Handle","outbound_source":"dc:identifier.uri","record_url":"https://hdl.handle.net/10388/16040","record_label":"Repository record","record_kind":"handle","record_source":"dc:identifier.uri","access_status":null,"embargo_until":null,"access_note":null},"oai_pmh_record":{"url":"https://union.ndltd.org/oai-pmh/?verb=GetRecord&metadataPrefix=oai_dc&identifier=oai%3Aunion.ndltd.org%3Arepo%3Asask%3Aoai%3Aharvest.usask.ca%3A10388%2F16040","prefix":"oai_dc"},"source_record":{"url":"https://harvest.usask.ca/server/oai/request?verb=GetRecord&metadataPrefix=dim&identifier=oai%3Aharvest.usask.ca%3A10388%2F16040","prefix":"dim"},"metadata_groups":[{"id":"people","label":"People","entries":[{"key":"dc:contributor.advisor","label":"Advisor","values":["Jamali, Nadeem"]},{"key":"dc:contributor.committeemember","label":"Committee Member","values":["Geng, hongxing","Rochan, Mrigank"]},{"key":"dc:creator","label":"Author","values":["He, Jinhua"]},{"key":"person:identifier.orcid","label":"ORCID","values":["0009-0000-8269-797X"]}]},{"id":"academic_context","label":"Academic Context","entries":[{"key":"dc:date.accessioned","label":"Dc Date Accessioned","values":["2024-09-17T16:37:15Z"]},{"key":"dc:date.available","label":"Dc Date Available","values":["2024-09-17T16:37:15Z"]},{"key":"dc:date.copyright","label":"Dc Date Copyright","values":["2024"]},{"key":"dc:date.created","label":"Dc Date Created","values":["2024-08"]},{"key":"dc:date.issued","label":"Date","values":["2024-09-17"]},{"key":"dc:date.submitted","label":"Dc Date Submitted","values":["August 2024"]},{"key":"dc:date.updated","label":"Dc Date Updated","values":["2024-09-17T16:37:15Z"]},{"key":"dc:type","label":"Dc Type","values":["Thesis","text"]},{"key":"thesis:degree_department","label":"Department","values":["Computer Science"]},{"key":"thesis:degree_discipline","label":"Discipline","values":["Computer Science"]},{"key":"thesis:degree_level","label":"Degree Level","values":["Masters"]},{"key":"thesis:degree_name","label":"Degree Name","values":["Master of Science (M.Sc.)"]},{"key":"thesis:institution_name","label":"Thesis Institution Name","values":["University of Saskatchewan"]}]},{"id":"subjects_keywords","label":"Subjects and Keywords","entries":[{"key":"dc:subject","label":"Dc Subject","values":["Actor Model, Future, Scala, Concurrency Model"]}]},{"id":"language_rights","label":"Language and Rights","entries":[{"key":"dc:language.iso","label":"Language (ISO)","values":["en"]}]},{"id":"identifiers","label":"Identifiers","entries":[{"key":"dc:identifier.uri","label":"Identifier URI","values":["https://hdl.handle.net/10388/16040"]}]},{"id":"additional","label":"Additional Metadata","entries":[{"key":"dc:description.abstract","label":"Abstract","values":["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."]},{"key":"dc:format.mimetype","label":"Dc Format Mimetype","values":["application/pdf"]},{"key":"dc:title","label":"Title","values":["A pure actor implementation of futures: A solution to mixing of concurrency models in Scala"]},{"key":"others:access_status","label":"Others Access Status","values":["open.access"]}]}],"canonical_facts":{"dc:contributor.advisor":["Jamali, Nadeem"],"dc:contributor.committeemember":["Geng, hongxing","Rochan, Mrigank"],"dc:creator":["He, Jinhua"],"dc:date.accessioned":["2024-09-17T16:37:15Z"],"dc:date.available":["2024-09-17T16:37:15Z"],"dc:date.copyright":["2024"],"dc:date.created":["2024-08"],"dc:date.issued":["2024-09-17"],"dc:date.submitted":["August 2024"],"dc:date.updated":["2024-09-17T16:37:15Z"],"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."],"dc:format.mimetype":["application/pdf"],"dc:identifier.uri":["https://hdl.handle.net/10388/16040"],"dc:language.iso":["en"],"dc:subject":["Actor Model, Future, Scala, Concurrency Model"],"dc:title":["A pure actor implementation of futures: A solution to mixing of concurrency models in Scala"],"dc:type":["Thesis","text"],"others:access_status":["open.access"],"person:identifier.orcid":["0009-0000-8269-797X"],"thesis:degree_department":["Computer Science"],"thesis:degree_discipline":["Computer Science"],"thesis:degree_level":["Masters"],"thesis:degree_name":["Master of Science (M.Sc.)"],"thesis:institution_name":["University of Saskatchewan"]},"updated_at":"2026-11-19T09:54:19Z"}