How to split the list and execute parallelly using java -


this question has answer here:

how split list , execute parallelly.
scenario--
getting 1000+ vehicles using below list webservices.

list<vehicle> vehiclelist = vehicleservices.getvehicles(); 

i want split 100 vehicles each list , execute list parallelly.
thanks

you can use parallelstream. check the doc know more abour java parallelism


Comments

Popular posts from this blog

'hasOwnProperty' in javascript -

How to understand 2 main() functions after using uftrace to profile the C++ program? -

android - Unable to generate FCM token from dynamically instantiated Firebase -