For creating a powerful server which can be either a single server or a single client connection, Java socket APIs are commonly used. Let's take a close look in to what a multi-threaded server in Java is all about. You will learn about the concepts of multi-threading and the benefits as well as drawbacks of using multi-threaded server in Java. Definition of multi-threading Multi-threading can be defined as the ability of a software, operating system, hardware component or a process in managing multiple users at a single time.
Instead of running multiple instances of the program on computer, such kind of application would be able to accept multiple requests by a sin Lesotho Email List gle user or a number of users.The user requests are recorded as a thread wherein other programs are also included by the users. The commands given to the applications are easily tracked with the help of special identity that each of the threads have. The requests are tracked along with the work status that has been assigned to each thread by multi-threaded applications.

Benefits and Drawbacks of Multi-threading Advantages The advantages of a multi-threaded server compared to a single-threaded server in Java are as given below. Faster response to multiple queries simultaneously. of each other and do not hinder the functioning of other threads. Considerable time can be saved as many operations could be performed at once. These servers are always responsive irrespective of how longer the process runs where as single threaded servers could become unresponsive.