Question: Threads and returned objects

Hi!

I want to make my maple12-procedure run more quickly by using threads. Therefore I do roughly the following:

foo := proc(...)

...
id1:= Create( bar(param1, res1));
id2:= Create(bar(param2, res2));

Wait(id1);
Wait(id2);

print(res1);
print(res2);
...

end proc:

I.e. I want to use the return-values of the function 'bar' for further computations (in a loop). How do I do that because Create just returns an integer? (in this case I tried to assign the return-value to the parameter res1, res2 respectively but this didn't work).

Please Wait...