...
Let’s explore the above algorithm on following example:
Main The number of working threads
pMaxThreads
is set to4
, main thread is not participating in the data processing. Child threads havepThreadID
set to1
,2
and3
.pDimPar
dimension elements (source cube):A
,B
,C
,D
,E
,F
,G
,H
,I
,J
,K
,L
,M
,N
,O
,P
Equivalent dimension elements (target cube):
a
,d
,h
,m
Mapping between pDimPar and the equivalent dimension:
...
ad 3) Modulo algorithm applied on set as derived in step 2:
Element | a | d | h | m |
---|---|---|---|---|
pThreadID | 1 | 2 | 3 | 1 |
ad 4) Apply mapping on set from step 3) and project pThreadID
to source set of elements in pDimPar
from step 1:
pDimPar |
|
|
|
|
|
|
|
|
|
|
|
|
|
---|
N
O
P
Equivalent |
|
|
|
|
|
|
|
|
|
|
|
|
---|
m
m
m
| ||||||||||||
pThreadID |
|
|
|
|
|
|
|
|
|
|
|
|
---|
1
1
1
|
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 A
, B
, C
, D
, E
, F
, G
, H
, I
and J
.