A model-driven approach to teaching concurrency

Carro Liñares, Manuel and Mariño Carballo, Julio and Herranz Nieva, Ángel (2013). A model-driven approach to teaching concurrency. In: "Unspecified. pp. 1-1000. https://doi.org/10.1145/2414446.2414451.


Title: A model-driven approach to teaching concurrency
  • Carro Liñares, Manuel
  • Mariño Carballo, Julio
  • Herranz Nieva, Ángel
Item Type: Presentation at Congress or Conference (Unspecified)
Título de Revista/Publicación: ACM Transactions on Computing Education (TOCE)
Date: January 2013
ISSN: 1946-6226
Volume: 13
Freetext Keywords: Model-driven engineering; Teaching; Concurrency; Formal specifications; Correct-by-construction; Coding idiom; Java; Ada95
Faculty: Facultad de Informática (UPM)
Department: Lenguajes y Sistemas Informáticos e Ingeniería del Software
Creative Commons Licenses: Recognition - No derivative works - Non commercial

Full text

PDF - Requires a PDF viewer, such as GSview, Xpdf or Adobe Acrobat Reader
Download (1MB) | Preview


We present an undergraduate course on concurrent programming where formal models are used in different stages of the learning process. The main practical difference with other approaches lies in the fact that the ability to develop correct concurrent software relies on a systematic transformation of formal models of inter-process interaction (so called shared resources), rather than on the specific constructs of some programming language. Using a resource-centric rather than a language-centric approach has some benefits for both teachers and students. Besides the obvious advantage of being independent of the programming language, the models help in the early validation of concurrent software design, provide students and teachers with a lingua franca that greatly simplifies communication at the classroom and during supervision, and help in the automatic generation of tests for the practical assignments. This method has been in use, with slight variations, for some 15 years, surviving changes in the programming language and course length. In this article, we describe the components and structure of the current incarnation of the course?which uses Java as target language?and some tools used to support our method. We provide a detailed description of the different outcomes that the model-driven approach delivers (validation of the initial design, automatic generation of tests, and mechanical generation of code) from a teaching perspective. A critical discussion on the perceived advantages and risks of our approach follows, including some proposals on how these risks can be minimized. We include a statistical analysis to show that our method has a positive impact in the student ability to understand concurrency and to generate correct code.

More information

Item ID: 29546
DC Identifier: https://oa.upm.es/29546/
OAI Identifier: oai:oa.upm.es:29546
DOI: 10.1145/2414446.2414451
Official URL: http://dl.acm.org/citation.cfm?id=2414451
Deposited by: Memoria Investigacion
Deposited on: 24 Jun 2014 08:09
Last Modified: 23 Nov 2017 10:30
  • Logo InvestigaM (UPM)
  • Logo GEOUP4
  • Logo Open Access
  • Open Access
  • Logo Sherpa/Romeo
    Check whether the anglo-saxon journal in which you have published an article allows you to also publish it under open access.
  • Logo Dulcinea
    Check whether the spanish journal in which you have published an article allows you to also publish it under open access.
  • Logo de Recolecta
  • Logo del Observatorio I+D+i UPM
  • Logo de OpenCourseWare UPM