G
gk
i have multithread. each thread takes different amount of time to
complete their tasks. i want to collect all the results immediately as
soon as individuals finishes.
i dont want to use join method of thred. i want to make a
listner/observer which would collect theresults as soon as threads
finisehes . and at last give me back the total result.
How to do this thing ?
where do i get the coding example for this ?
complete their tasks. i want to collect all the results immediately as
soon as individuals finishes.
i dont want to use join method of thred. i want to make a
listner/observer which would collect theresults as soon as threads
finisehes . and at last give me back the total result.
How to do this thing ?
where do i get the coding example for this ?