UDC 004.652

Developing Libraries Using Software Transactional Memory

Ricardo Dias1, João Lourenço1 and Gonçalo Cunha1

  1. CITI-Centre for Informatics and Information Technology, and Departamento de Informática, Universidade Nova de Lisboa
    Portugal
    {rjfd,joao.lourenco}@di.fct.unl.pt, goncalo.cunha@gmail.com

Abstract

Software transactional memory is a promising programming model that adapts many concepts borrowed from the databases world to control concurrent accesses to main memory (RAM) locations. This paper discusses how to support apparently irreversible operations, such as memory allocation and deallocation, within software libraries that will be used in (software memory) transactional contexts, and propose a generic and elegant approach based on a handler system, which provide the means to create and execute compensation actions at key moments during the life-time of a transaction.

Key words

Transactions, Software Transactional Memory, Compensation Actions, Revertible Operations

Publication information

Volume 5, Issue 2 (December 2008)
Compilers, Related Technologies and Applications
Year of Publication: 2008
ISSN: 2406-1018 (Online)
Publisher: ComSIS Consortium

Full text

DownloadAvailable in PDF
Portable Document Format

How to cite

Dias, R., Lourenço, J., Cunha, G.: Developing Libraries Using Software Transactional Memory. Computer Science and Information Systems, Vol. 5, No. 2, 103-117. (2008)