Which pattern to use for multi-threading downloader
HI,My multi-threading downloader makes freezing the editor. Input streams and output streams are in a synchronized block. Classes are extended from Thread. I don't know what else could I do to correct my code, so I think to use any safe pattern.What could you recommend?
[292 byte] By [
Isaaka] at [2007-11-26 22:39:49]

# 4
Please take a look here:
http://www-128.ibm.com/developerworks/library/j-javaio/
This is one of the nio packages in j2se:
http://java.sun.com/j2se/1.4.2/docs/api/java/nio/package-summary.html
A deeper theory about the general architecture for Reactor and Proactor patterns could be found on net.