DocumentCode :
1836025
Title :
Predictable multithreading of embedded applications using PRET-C
Author :
Andalam, Sidharta ; Roop, Partha ; Girault, Alain
Author_Institution :
Dept. of Electr. & Comput. Eng., Univ. of Auckland, Auckland, New Zealand
fYear :
2010
fDate :
26-28 July 2010
Firstpage :
159
Lastpage :
168
Abstract :
We propose a new language called Precision Timed C (PRET-C), for predictable and lightweight multi-threading in C. PRET-C supports synchronous concurrency, preemption, and a high-level construct for logical time. In contrast to existing synchronous languages, PRET-C offers C-based shared memory communications between concurrent threads that is guaranteed to be thread safe. Due to the proposed synchronous semantics, the mapping of logical time to physical time can be achieved much more easily than with plain C, thanks to a Worst Case Reaction Time (WCRT) analyzer (not presented here). Associated to the PRET-C programming language, we present a dedicated target architecture, called ARPRET, which combines a hardware accelerator associated to an existing softcore processor. This allows us to improve the throughput while preserving the predictability. With extensive benchmarking, we then demonstrate that ARPRET not only achieves completely predictable execution of PRET-C programs, but also improves the throughput when compared to the pure software execution of PRET-C. The PRET-C software approach is also significantly more efficient in comparison to two other light-weight concurrent C variants (namely SC and Protothreads), as well as the well-known Esterel synchronous programming language.
Keywords :
C language; embedded systems; multi-threading; shared memory systems; ARPRET; Esterel synchronous programming language; PRET-C programming language; embedded applications; precision timed C; predictable multithreading; shared memory communications; worst case reaction time analyzer; Assembly; Concurrent computing; Hardware; Instruction sets; Semantics; Timing;
fLanguage :
English
Publisher :
ieee
Conference_Titel :
Formal Methods and Models for Codesign (MEMOCODE), 2010 8th IEEE/ACM International Conference on
Conference_Location :
Grenoble
Print_ISBN :
978-1-4244-7885-9
Electronic_ISBN :
978-1-4244-7886-6
Type :
conf
DOI :
10.1109/MEMCOD.2010.5558636
Filename :
5558636
Link To Document :
بازگشت