Question: Multi-Cores: parallel algorithms and profiling them

I want to make my Maple12-procedure faster by creating two threads instead of two:

foo := proc(...)

id1 := Create(bar(part1), result1):
id2 := Create(bar(part2), result2):

## result: ##

R := [op(result1), op(result2)]

end proc:

Two Questions:
1.: does this really make this procedure faster?
2.: If I use CodeTools[Profiling][Profile] then the sequentiell algorithm need even less time for executing than the above parallel one. Am I doing wrong? Or does 'profle' count the seconds used by BOTH CPUs I have and adds them?


Please Wait...