Thursday, August 22, 2019

Uses of Threads

  1. Threads are mainly used in server-side programs to serve the needs of multiple clients on a network or Internet. On Internet, a server machine has to cater the needs of thousands of clients, at a time. If we use threads in the server, they can do various jobs at a time, thus they can handle several clients.
  2. Threads are also used to create games and animation. Animation means moving the objects from one place to another. In many games, generally we have to perform more than one task simultaneously.
  3. Threads are light-weight because they utilize minimum resources of the system. This means they take less memory and less processor time.

0 comments:

Post a Comment