Threading Building Blocks (TBB)

Threading Building Blocks (TBB)

Threading Building Blocks (TBB) is a C++ template library developed by Intel for writing software programs that take advantage of multi-core processors. The library consists of data structures and algorithms that allow a programmer to avoid some complications arising from the use of native threading packages such as POSIX threads, Windows threads, or the portable Boost Threads in which individual threads of execution are created, synchronized, and terminated manually. Instead the library abstracts access to the multiple processors by allowing the operations to be treated as "tasks", which are allocated to individual cores dynamically by the library's run-time engine, and by automating efficient use of the CPU cache. A TBB 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 solutions for parallel programming aiming to decouple the programming from the particulars of the underlying machine.

Intel® Threading Building Blocks (Intel® TBB) lets you easily write parallel C++ programs that take full advantage of multicore performance, that are portable and composable, and that have future-proof scalability. Intel® Threading Building Blocks (Intel® TBB) 4.2 is a widely used, award-winning C and C++ library for creating high performance, scalable parallel applications.

TBB is a collection of components for parallel programming:

Basic algorithms: parallel_for, parallel_reduce, parallel_scan

Advanced algorithms: parallel_while, parallel_do, parallel_pipeline, parallel_sort

Containers: concurrent_queue, concurrent_priority_queue, concurrent_vector, concurrent_hash_map

Scalable 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

Atomic operations: fetch_and_add, fetch_and_increment, fetch_and_decrement, compare_and_swap, fetch_and_store

Timing: portable fine grained global time stamp

Task Scheduler: direct access to control the creation and activation of tasks

TBB implements task stealing to balance a parallel workload across available processing cores in order to increase core utilization and therefore scaling. The TBB task stealing model is similar to the work stealing model applied in Cilk. 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, TBB 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.

Threading Building Blocks (TBB)
added 10 years 3 months ago

Contents related to 'Threading Building Blocks (TBB)'

Open Multi-Processing (OpenMP, OMP): OpenMP is an Application Program Interface (API), jointly defined by a group of major computer hardware and software vendors. OpenMP provides a portable, scalable model for developers of shared memory parallel applications.

Message Passing Interface (MPI): Message Passing Interface (MPI) is a standardized and portable message-passing system designed by a group of researchers from academia and industry to function on a wide variety of parallel computers.

Parallel Patterns Library (PPL): The Parallel Patterns Library (PPL) provides an imperative programming model that promotes scalability and ease-of-use for developing concurrent applications.

Thread Pool API: A thread pool is a collection of worker threads that efficiently execute asynchronous callbacks on behalf of the application.

- IPython
- Bootstrap
- Apache Pig
- Apache Cassandra
- Jenkins
- Nginx Server
- Continuous Integration
- Threading Building Blocks (TBB)
- Message Passing Interface (MPI)
- Language-Integrated Query (Linq)
- Maven
- Element Management System (EMS)
- Asynchronous JavaScript and XML (AJAX)
- Transport Layer Security (TLS), Secure Sockets Layer (SSL)
- GlassFish
- Virtual Destinations
- Stomp
- Process Templates
- Apache Portable Runtime (Apr)
- Java Message Service (JMS)