File: README

package info (click to toggle)
tclthread3 3.0.2-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,752 kB
  • sloc: ansic: 8,259; tcl: 1,711; sh: 436; makefile: 38
file content (32 lines) | stat: -rw-r--r-- 1,318 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32

Software here is provided as example of making some interesting
things and applications using the Tcl threading extension.

Currently, following packages are supplied:

   tpool/    Example Tcl-only implementation of thread pools.
	     The threading extension includes an efficient
	     threadpool implementation in C. This file is
	     provided as a fully functional example on how this
	     functionality could be implemented in Tcl alone.

   phttpd/   MT-enabled httpd server. It uses threadpool to
	     distribute incoming requests among several worker
	     threads in the threadpool. This way blocking
	     requests may be handled much better, w/o halting
	     the event loop of the main responder thread.
	     In this directory you will also find the uhttpd.
	     This is the same web-server but operating in the
	     event-loop mode alone, no threadpool support.
	     This is good for comparison purposes.

   cmdsrv/   Socket command-line server. Each new connection
	     gets new thread, thus allowing multiple outstanding
	     blocking calls without halting the event loop.

To play around with above packages, change to the corresponding
directory and source files in the Tcl8.7 (or later) Tcl shell.
Be sure to have the latest Tcl threading extension installed in
your package path.

- EOF