gortonator/bsds-6650

Difference between SocketHandlerThread and SocketHandlerRunner

Closed this issue · 3 comments

try { conn.close(); } catch (IOException e) {}

SocketHandlerThread does not close socket but SocketHandlerRunnable does. Is this the only difference?

line 45 SocketHandlerThread?

Did not notice there is another SocketHandlerThread in the solution. I was comparing to https://github.com/gortonator/bsds-6650/blob/master/code/week-3/SocketHandlerThread.java

It seems that the difference of SocketHandlerThread and SocketHandlerRunnable is the first one extends Thread while the second one implements Runnable. They are equivalent , right?

yup