trey
Member
Reputation: 0
Offline
Posts: 16
Referrals: 0
|
 |
« Reply #1 on: December 07, 2009, 09:09:18 PM » |
|
The non-blocking library is java.nio. Remember that since the accept method is blocking, the thread will not perform beyond that call until a Socket is accepted, which in some cases forces multi-threading (particularly bad in cases where a new thread is created for each Socket that is accepted). To answer your question directly, readObject is a blocking call, which once again almost forces multi-threading. I would recommend reading into NIO a bit, this may save you some hassle as far as the overall design.
|