Change search
ReferencesLink to record
Permanent link

Direct link
A Comparison of Different Parallel Programming Models for Multicore Processors
KTH, School of Information and Communication Technology (ICT).
2010 (English)Independent thesis Advanced level (professional degree), 10 credits / 15 HE creditsStudent thesis
Abstract [en]

As computers are used in most areas today improving their performance is of great importance. Until recently a faster processor was the main contributor to the increase of overall computer speed. Today the situation has changed as heating is becoming a bigger problem. Running a processor faster requires more power which also leads to the processor's components getting warmer. A solution to this is to use several somewhat slower processors in the same computer, so called multiprocessor or multicore processor. That way programs can execute on different processors, or functionality of one program can be divided and run on several processors simultaneously.

Programming for multicore architectures is however more complex than programming for computers with a single processor, as data in the memory now can be accessed by several instances, called threads, of a program at the same time. This calls for some kind of synchronization between such threads.

Many different models are available to simplify the implementation procedure of programs for multicore computers, and such models are compared in this thesis. The models in question are Pthreads, OpenMP and Cilk++.

The models differ from each other in many ways, and are found to be useful for different areas. While Pthreads is a good tool when one wants to expose the threading mechanisms and be sure to have high exibility, OpenMP and Cilk++ offer simpler interfaces. OpenMP's main strengths are its interface and good portability. Cilk++ is suitable when high performance is the most important aspect.

Place, publisher, year, edition, pages
2010. , 56 p.
URN: urn:nbn:se:kth:diva-26320OAI: diva2:371746
Available from: 2010-11-22 Created: 2010-11-22 Last updated: 2010-11-22Bibliographically approved

Open Access in DiVA

fulltext(480 kB)608 downloads
File information
File name FULLTEXT01.pdfFile size 480 kBChecksum SHA-512
Type fulltextMimetype application/pdf

By organisation
School of Information and Communication Technology (ICT)

Search outside of DiVA

GoogleGoogle Scholar
Total: 608 downloads
The number of downloads is the sum of all downloads of full texts. It may include eg previous versions that are now no longer available

Total: 284 hits
ReferencesLink to record
Permanent link

Direct link