Thread in Distributed Systems

15 Mar 2011 by

Thread in Distributed Systems

Thread in Distributed Systems

One challenge in distributed systems is concurrency. Without supporting multithread, distributed systems is almost meaningless as it needs to support multiple users. It is typical in distributed systems to have tasks that are partly CPU intensive and partly I/O bound. Generating database query, rendering an image, etc are examples of CPU intensive. Sending files or requests over the network are I/O intensive related to Socket, RMI, etc.

Now we will lookup 3 main architectures that thread impact the performance of distributed systems.

  • Single thread
  • Thread per request or connection
  • Thread pool

Single Thread

Single Thread

Single Thread

Thread per request or connection

Thread per Request or Connection

Thread per Request or Connection

Thread pool

Thread Pool

Thread Pool

No responses yet

Leave a Reply