Chapter 16

Applications with Multiple Environments

Many applications need to control more than one application environment. For example:

• A TCP/IP server needs to support multiple clients.

• A test platform may be testing several sets of hardware at once.

• Games may be tracking multiple users.

• Tcl script may be controlling several processor blades in a multi-processor environment.

Tcl provides several ways to manage the multiple environments. These techniques range from pure Tcl solutions to compiled code.

Here are the commonly used techniques. Each will be discussed in more detail later in this chapter.

• Event loop

You can write many multiple environment applications using the Tcl event queue to evaluate procedures when they are required ...

Get Tcl/Tk, 3rd Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.