recentpopularlog in

ianweatherhogg : executor   16

Java 8 Concurrency Tutorial: Threads and Executors - Benjamin Winterberg
Learn multi-threaded programming with Java 8 by example: This first tutorial covers Threads, Tasks and Executors.
java  eight  concurrency  thread  executor  future  4* 
february 2016 by ianweatherhogg
The Neophyte's Guide to Scala Part 9: Promises and Futures in practice - Daniel Westheide
Sometimes, there is no NIO-based library available. For instance, most database drivers you’ll find in the Java world nowadays are using blocking IO. If you made a query to your database with such a driver in order to respond to a HTTP request, that call would be made on a web server thread. To avoid that, place all the code talking to the database inside a future block, like so

import concurrent.future
future {
queryDB(query)
}
scala  concurrency  idiom  promise  non  io  executor  context  5*  block 
april 2013 by ianweatherhogg

Copy this bookmark:





to read