Module server::thread

source ·
Expand description

use server::thread::{ ThreadPool, Worker }

This library handles operations to build a multi-threaded system for the web-server.

Structs

  • The ThreadPool data structure holds the underlying mechanism for processing concurrent requests. It has a sender which propagates requests through the channel and a vector of workers.
  • This represents a thread that executes a single request at a time.