This is not necessarily the current version of this TIP.
|Title:||[info pid] and [info tid] subcommands|
|Version:||$Revision: 1.1 $|
|Author:||Joe Mistachkin <joe at mistachkin dot com>|
|Created:||Sunday, 21 March 2004|
This TIP proposes two new [info] subcommands which are used to obtain the current process and thread identifiers.
In certain types of applications, it is important to know what thread is currently executing. This is especially true for multithreaded applications or for scripts running in a threaded build of Tcl.
While the author realizes that there is already a [pid] command, the addition of the [info pid] subcommand still makes sense for the following reasons:
The [pid] command can also provide information totally unrelated to the current process identifier. At one point (TIP #88) it was even suggested that the [pid] command be overloaded to provide process control related functionality.
To allow scripts that dynamically build other scripts (po