c - Multithreading a series of equations -
i have long series of equations looks except 113 t's:
t1 = l1; t2 = l2 + 5; t3 = t2 + t1; t4 = l3 ... t113 = t3 + t4 return t113;
where l
's input arguments.
it takes long time calculate t113
. i'm trying split several different threads in attempt make quicker. problem i'm not sure how this. tried drawing out t's in form of tree hand on paper analyse better, grew large , unwieldy midway.
are there other ways make calculations faster? thanks.
edit: i'm using 8 core dsp sys/bios. according predecessor, these inverse , forward kinematic equations take time process. predecessor knowingly chose 8 core dsp hardware implementation. i'm assuming should write code in way takes advantage of 8 cores.
with values dependent on other values, you're going have tough time allocating work different threads. it's you'll have 1 thread waiting on another. , fire off new threads more expensive calculating 113 values.
are sure it's taking long time calculate t113? or else takes long time.
Comments
Post a Comment