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

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -