FazBrowse Wikipedia Viewer | Main Page |
Search Wikipedia:
|
Viewing: https://en.wikipedia.org/wiki/Threading_Building_Blocks

Threading Building Blocks

Contents
Overview
Library contents
See also
Notes

{{cite web |title= oneAPI Threading Building Blocks Github Releases |website=[[GitHub]] |url=https://github.com/oneapi-src/oneTBB/releases}}</ref>"},"latest preview version":{"wt":""},"latest preview date":{"wt":""},"frequently updated":{"wt":""},"programming language":{"wt":"[[C++]]"},"operating system":{"wt":"FreeBSD, Linux, Solaris, macOS, Windows, Android"},"platform":{"wt":""},"size":{"wt":""},"language":{"wt":""},"status":{"wt":""},"genre":{"wt":"[[library (computing)|library]] or [[Software framework|framework]]"},"license":{"wt":"dual: commercial / open source ([[Apache 2.0]]), plus Freeware<ref name=\"freelib\">{{cite web|title=No Cost Options for Intel Support yourself, Royalty-Free|url=https://software.intel.com/en-us/free_tools_and_libraries}}</ref>"},"website":{"wt":"{{URL|https://github.com/oneapi-src/oneTBB}}<br/>{{URL|intel.com/oneTBB}}<br/>"}},"i":0}}]}'>
Threading Building Blocks
DeveloperIntel

Overview

edit

A oneTBB program creates, synchronizes, and destroys graphs of dependent tasks according to algorithms, i.e. high-level parallel programming paradigms (a.k.a. Algorithmic Skeletons). Tasks are then executed respecting graph dependencies. This approach groups TBB in a family of techniques for parallel programming aiming to decouple the programming from the particulars of the underlying machine.

oneTBB implements work stealing to balance a parallel workload across available processing cores in order to increase core utilization and therefore scaling. Initially, the workload is evenly divided among the available processor cores. If one core completes its work while other cores still have a significant amount of work in their queue, oneTBB reassigns some of the work from one of the busy cores to the idle core. This dynamic capability decouples the programmer from the machine, allowing applications written using the library to scale to utilize the available processing cores with no changes to the source code or the executable program file. In a 2008 assessment of the work stealing implementation in TBB, researchers from Princeton University found that it was suboptimal for large numbers of processors cores, causing up to 47% of computing time spent in scheduling overhead when running certain benchmarks on a 32-core system.

oneTBB, like the STL (and the part of the C++ standard library based on it), uses templates extensively. This has the advantage of low-overhead polymorphism, since templates are a compile-time construct which modern C++ compilers can largely optimize away.

oneTBB is available commercially as a binary distribution with support, and as open-source software in both source and binary forms.

oneTBB does not provide guarantees of determinism or freedom from data races.

Library contents

edit

oneTBB is a collection of components for parallel programming:

  • Basic algorithms: parallel_for, parallel_reduce, parallel_scan
  • Advanced algorithms: parallel_pipeline, parallel_sort
  • Containers: concurrent_queue, concurrent_priority_queue, concurrent_vector, concurrent_hash_map, concurrent_unordered_map, concurrent_unordered_set, concurrent_map, concurrent_set
  • Memory allocation: scalable_malloc, scalable_free, scalable_realloc, scalable_calloc, scalable_allocator, cache_aligned_allocator
  • Mutual exclusion: mutex, spin_mutex, queuing_mutex, spin_rw_mutex, queuing_rw_mutex, recursive_mutex
  • Timing: portable fine grained global time stamp
  • Task scheduler: direct access to control the creation and activation of tasks

See also

edit

Notes

edit
    Contreras, Gilberto; Martonosi, Margaret (2008). Characterizing and improving the performance of Intel Threading Building Blocks (PDF). IEEE Int'l Symp. on Workload Characterization.
  1. ↑ https://software.intel.com/en-us/intel-tbb Intel Threading Building Blocks Commercial Version Homepage
  2. ↑ Reinders, James (July 2007), Intel Threading Building Blocks: Outfitting C++ for Multi-core Processor Parallelism (Paperback ed.), Sebastopol: O'Reilly Media, ISBN 978-0-596-51480-8

View original on Wikipedia | Back | FazBrowse Home