I need some help about delaying a method from returning the answer, Asynchronous..
Hi
Thank you for reading my post.
I have an interface which has two method with several parameters and I should implement this method to complete a task, eg: calculating a series.
The tester program will load my "dynamic shared library" and call initialize method for calibration. then It create several threads to call the worker method named calcSeries(......) . each thread may call the method several times.
for example following 4 calls need to be issued by one of the above threads.
1-calcSeries(1,5,7,2)
2-calcSeries(3,9,2,1)
3-calcSeries(3,7,9,2)
4-calcSeries(5,4,8,6)
Is it possible to return the result asynchronously ?
for example I get all calls and then return the result when I complete them?
Maybe 4th call complete before other ones.
Thanks.