background preloader

Multithreading

Facebook Twitter

Various Flavors of Awesome. Issuu - You Publish. Conspiracy | beyond.expectations. StarCraft II Commercial. Lazy Foo' Productions. Multiple Processors. Computers with multiple processors are typically designed for one of two architectures: non-uniform memory access (NUMA) or symmetric multiprocessing (SMP). In an SMP computer, two or more identical processors or cores connect to a single shared main memory. Under the SMP model, any thread can be assigned to any processor. Therefore, scheduling threads on an SMP computer is similar to scheduling threads on a computer with a single processor. However, the scheduler has a pool of processors, so that it can schedule threads to run concurrently. Scheduling is still determined by thread priority, but it can be influenced by setting thread affinity and thread ideal processor, as discussed in this topic. Thread Affinity Thread affinity forces a thread to run on a specific subset of processors.

The system represents affinity with a bitmask called a processor affinity mask. Thread Ideal Processor Related topics. TBB Home.