I have a program that should make really fast http requests. Requests should be made asynchronously so that it won’t block the main thread. So I have created a queue which is observed by 10 separate threads that make http requests. If something is inserted in the queue then the first thread that gets th…
Tag: asynchronous
Asynchronous IO in Java?
What options for async io (socket-based) are there in java other then java.nio? Also does java.nio use threads in the backround (as I think .NET’s async-socket-library does, maybe it’s been changed) or is it “true” async io using a proper select call? Answer Java’s NIO package (a…