I have the following server which when is created through making threads and using start method It works fine. but when use execute method on executor service object, nothing happen and no invoke for the run method in the thread to receive data from client.
posted 5 years ago
I found it as following. when I create a new runnable object which in my case is the Host object, it must be followed directly with the execute method not to declare many objects then attach them to execute. any one has an explanation why that works.