...
pDimPar |
|
|
|
|
|
|
|
|
|
|
|
|
|
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Equivalent |
|
|
|
|
|
|
|
|
|
|
|
|
|
pThreadID |
|
|
|
|
|
|
|
|
|
|
|
|
|
For the example below, the number of working threads pMaxThreads
is set to 4
, main thread is not participating in the data processing. Child threads have pThreadID
set to 1
, 2
and 3
. For simplicity elements in parallel dimension have symbolic names We can now create list of elements that were assigned to each worker thread:
| Assigned Elements from | Assigned Elements from Equivalent Dimension to |
---|---|---|
|
| |
|
| a, m |
|
|
...
d | |
|
|
...
, | h |