File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes IO blocking and deadlock Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "IO blocking and deadlock" Watch "IO blocking and deadlock" New topic
Author

IO blocking and deadlock

amit sanghai
Ranch Hand

Joined: Dec 05, 2000
Posts: 231
Suppose I have a client server situation where the client has connected to the server and it is not doing anything for a lot of time and so that thread is blocked. how do we handle that?
Peter den Haan
author
Ranch Hand

Joined: Apr 20, 2000
Posts: 3252
Set socket timeouts (SO_TIMEOUT), use a reaper thread to close() the socket after a while (dirty, but works), or use java.nio.* non-blocking I/O.
- Peter
 
IntelliJ Java IDE
 
subject: IO blocking and deadlock
 
Threads others viewed
Printing contents
XSL and AJAX
How to Store The Java Script Variable Stored in jsp
How to access scanner device
Converting javaScript variable to java
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com