ServerSockets and Threads
Hello,
I am writing a program that is executed from the console. When executed, it opens a server socket and binds to a port. I then use a client socket to accept any incoming connections, when it does this, the entire program pauses and the command line is unusable as it is waiting for connections.
I want to be able write the program so that the listening takes place in the background and the rest of the program is still operable, if that's possible.
I thought I would be able to solve this problem with a simple thread. I ran a thread and put the accept() method in the threads run() method, but this yields the same result as above.
If anyone could explain to me what I need to do to finish my program, I would be very grateful. I would rather not see any code as I am learning and a solution theory would benefit me more.
Thanks, Daniel.

