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 put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -

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