Kent Academic Repository (University of Kent) · 2007 · 26 citations · 10 references
Open access
ComputingComputer EngineeringComputer ScienceComputer ArchitectureParallel AlgorithmsParallel ComputingConcurrent ProgrammingMulticore Processor DesignParallel Algorithm DesignParallel ArchitecturesParallel Computer ArchitectureParallel Programming ModelsAtomic InstructionsAtomic Instructions SupportChannelsMulticore ArchitecturesMulticore Processor ArchitectureMultithreadingThread ParallelismThread-based Parallelism
The advent of mass-market multicore processors provides exciting new opportunities for parallelism on the desktop. The original C++CSP – a library providing concurrency in C++ – used only user-threads, which would have prevented it taking advantage of this parallelism. This paper details the development of C++CSP2, which has been built around a many-to-many threading model that mixes user-threads and kernel-threads, providing maximum flexibility in taking advantage of multicore and multi-processor machines. New and existing algorithms are described for dealing with the run-queue and implementing channels, barriers and mutexes. The latter two are benchmarked to motivate the choice of algorithm. Most of these algorithms are based on the use of atomic instructions, to gain maximal speed and efficiency. Other issues related to the new design and related to implementing concurrency in a language like C++ that has no direct support for it, are also described. The C++CSP2 library will be publicly released under the LGPL before CPA 2007.
10
Thomas E. Anderson, Brian N. Bershad, Edward D. Lazowska et al. · ACM Transactions on Computer Systems · 1992 · 432 citations · Full text
Experience with processes and monitors in Mesa
Butler Lampson, David D. Redell · Communications of the ACM · 1980 · 403 citations · Full text
First-class user-level threads
Brian D. Marsh, Michael L. Scott, Thomas J. LeBlanc et al. · 1991 · 166 citations
Integrating and Extending JCSP
Peter H. Welch, Neil C. C. Brown, James Moores et al. · Kent Academic Repository (University of Kent) · 2007 · 57 citations · Full text