Thread to handle Large List of objects in Java
I have a very large ArrayList of object, it executes smoothly in a single
thread. but execution time is the factor.
Let my list has 50 elements, and I have 3 threads,
I would like 1st thread will process 0 to 15 and 2nd thread will process
16 to 31 and rest of the process will process by the third thread.
Is it possible?
No comments:
Post a Comment