Premium
A comparison of concurrent programming and cooperative multithreading
Author(s) -
Keen Aaron W.,
Ishihara Takashi,
Maris Justin T.,
Li Tiejun,
Fodor Eugene F.,
Olsson Ronald A.
Publication year - 2003
Publication title -
concurrency and computation: practice and experience
Language(s) - English
Resource type - Journals
SCImago Journal Rank - 0.309
H-Index - 67
eISSN - 1532-0634
pISSN - 1532-0626
DOI - 10.1002/cpe.706
Subject(s) - multithreading , computer science , programming language , programming paradigm , code (set theory) , range (aeronautics) , concurrent object oriented programming , concurrent computing , parallel computing , thread (computing) , inductive programming , procedural programming , engineering , set (abstract data type) , aerospace engineering
This paper presents a comparison of the cooperative multithreading model with the general concurrent programming model. It focuses on the execution time performance of a range of standard concurrent programming applications. The overall results are mixed. In some cases, programs written in the cooperative multithreading model outperform those written in the general concurrent programming model. The contributions of this paper are twofold. First, it presents a thorough analysis of the performances of applications in the different models, i.e. to explain the criteria that determine when a program in one model will outperform an equivalent program in the other. Second, it examines the tradeoffs in writing programs in the different programming styles. In some cases, better performance comes at the cost of more complicated code. Copyright © 2003 John Wiley & Sons, Ltd.