Javascript must be enabled to continue!
Comparative Performance Analysis of Nested and Non-Nested Transactional Variables in Software Transactional Memory
View through CrossRef
In concurrent programming, Software Transactional Memory (STM) provides an efficient mechanism formanaging shared memory in parallel computations, avoiding common issues like locks and deadlocks. Acrucial aspect of STM systems is the implementation of transactional variables (TVars), whichsignificantly influence concurrency levels, execution time, and memory overhead. Two primaryimplementations of TVars—nested and non-nested—present distinct advantages and trade-offs. This studyevaluates and compares the effects of nested and non-nested TVar implementations on STM performance,focusing on concurrency, execution time, rollback complexity, and memory overhead. Using the Haskellprogramming language with STM libraries under GHC version 8.6.5, both implementations weredeveloped and tested on a system with an Intel Core i5-1035G1 CPU @ 1.20 GHz, 8 GB DDR4 RAM, anda 512 GB Intel 660p NVMe SSD running Windows 11 Pro. Each configuration executed multiple depositand withdrawal operations over ten iterations: the non-nested version processed approximately 20 STMoperations in a total time of 2.0 seconds, while the nested version performed about 50 operations in 4.0seconds due to additional nested balance adjustments. Execution time and memory usage were measuredusing Haskell’s runtime and heap profiling tools (+RTS -p -hy). The results demonstrate that nested TVarsimprove concurrency by localizing conflicts within sub-transactions, achieving an average operationalthroughput approximately 25% higher than the non-nested version (0.08 seconds per operation for nestedvs. 0.10 seconds for non-nested) and consuming about 38% less total heap memory (38,792 bytes vs.63,080 bytes). Non-nested TVars provide simpler implementation with slightly faster individual executionbut less effective conflict resolution under high load. These insights can guide developers in optimizingSTM-based systems by selecting appropriate TVar models based on the concurrency demands andcomplexity of their applications.
Title: Comparative Performance Analysis of Nested and Non-Nested Transactional Variables in Software Transactional Memory
Description:
In concurrent programming, Software Transactional Memory (STM) provides an efficient mechanism formanaging shared memory in parallel computations, avoiding common issues like locks and deadlocks.
Acrucial aspect of STM systems is the implementation of transactional variables (TVars), whichsignificantly influence concurrency levels, execution time, and memory overhead.
Two primaryimplementations of TVars—nested and non-nested—present distinct advantages and trade-offs.
This studyevaluates and compares the effects of nested and non-nested TVar implementations on STM performance,focusing on concurrency, execution time, rollback complexity, and memory overhead.
Using the Haskellprogramming language with STM libraries under GHC version 8.
6.
5, both implementations weredeveloped and tested on a system with an Intel Core i5-1035G1 CPU @ 1.
20 GHz, 8 GB DDR4 RAM, anda 512 GB Intel 660p NVMe SSD running Windows 11 Pro.
Each configuration executed multiple depositand withdrawal operations over ten iterations: the non-nested version processed approximately 20 STMoperations in a total time of 2.
0 seconds, while the nested version performed about 50 operations in 4.
0seconds due to additional nested balance adjustments.
Execution time and memory usage were measuredusing Haskell’s runtime and heap profiling tools (+RTS -p -hy).
The results demonstrate that nested TVarsimprove concurrency by localizing conflicts within sub-transactions, achieving an average operationalthroughput approximately 25% higher than the non-nested version (0.
08 seconds per operation for nestedvs.
0.
10 seconds for non-nested) and consuming about 38% less total heap memory (38,792 bytes vs.
63,080 bytes).
Non-nested TVars provide simpler implementation with slightly faster individual executionbut less effective conflict resolution under high load.
These insights can guide developers in optimizingSTM-based systems by selecting appropriate TVar models based on the concurrency demands andcomplexity of their applications.
Related Results
Primerjalna književnost na prelomu tisočletja
Primerjalna književnost na prelomu tisočletja
In a comprehensive and at times critical manner, this volume seeks to shed light on the development of events in Western (i.e., European and North American) comparative literature ...
An HIV prevention intervention helps immigrants open up about transactional sex. The Makasi study
An HIV prevention intervention helps immigrants open up about transactional sex. The Makasi study
Abstract
Background
Transactional sex is known to be an exposure factor for HIV acquisition among immigrants in France. We analy...
Improving of the Nested PCR for Detection of Bovine Leukemia Virus
Improving of the Nested PCR for Detection of Bovine Leukemia Virus
Enzootic bovine leukosis caused by a bovine leukemia virus has a significant economic impact and is reported in World Organization for Animal Health(OIE). Aim. The purpose of our w...
Architectural support for high-performing hardware transactional memory systems
Architectural support for high-performing hardware transactional memory systems
Parallel programming presents an efficient solution to exploit future multicore processors.
Unfortunately, traditional programming models depend on programmer’s skills for synchro...
Transactional sex among women in Sub-Saharan Africa: A systematic review and meta-analysis
Transactional sex among women in Sub-Saharan Africa: A systematic review and meta-analysis
Introduction
Transactional sex is casual sex between two people to receive material incentives in exchange for sexual favors. Transactional sex is associated with negative conseque...
Transactional Relations between Child Functioning and Parenting Stress in the First Years of Life: A Longitudinal Study among Psychosocially Burdened Families
Transactional Relations between Child Functioning and Parenting Stress in the First Years of Life: A Longitudinal Study among Psychosocially Burdened Families
Introduction: Previous research reported transactional relations between child functioning and parenting stress. There is limited evidence whether a transactional developmental mod...
Differences in habitat quality explain nestedness in a land snail meta‐community
Differences in habitat quality explain nestedness in a land snail meta‐community
We set up two alternative hypotheses on how environmental variables could foster nestedness; one of “nested habitats” and another of “nested habitat quality”. The former hypothesis...
EFL Students’ Experience in Distance Learning during COVID-19 from a Multidimensional Transactional Distance Perspective
EFL Students’ Experience in Distance Learning during COVID-19 from a Multidimensional Transactional Distance Perspective
Emergence learning during the COVID-19 pandemic was a challenging experience for many learners possibly due to the physical and psychological distance. This distance conceptualized...

