README
1
2Software here is provided as example of making some interesting
3things and applications using the Tcl threading extension.
4
5Currently, following packages are supplied:
6
7 tpool/ Example Tcl-only implementation of thread pools.
8 The threading extension includes an efficient
9 threadpool implementation in C. This file is
10 provided as a fully functional example on how this
11 functionality could be implemented in Tcl alone.
12
13 phttpd/ MT-enabled httpd server. It uses threadpool to
14 distribute incoming requests among several worker
15 threads in the threadpool. This way blocking
16 requests may be handled much better, w/o halting
17 the event loop of the main responder thread.
18 In this directory you will also find the uhttpd.
19 This is the same web-server but operating in the
20 event-loop mode alone, no threadpool support.
21 This is good for comparison purposes.
22
23 cmdsrv/ Socket command-line server. Each new connection
24 gets new thread, thus allowing multiple outstanding
25 blocking calls without halting the event loop.
26
27To play around with above packages, change to the corresponding
28directory and source files in the Tcl8.4 (or later) Tcl shell.
29Be sure to have the latest Tcl threading extension installed in
30your package path.
31
32- EOF
33