TIP #178: [info pid] and [info tid] subcommands 
Author Message
 TIP #178: [info pid] and [info tid] subcommands

 TIP #178: [INFO PID] AND [INFO TID] SUBCOMMANDS
=================================================
 Version:      $Revision: 1.1 $
 Author:       Joe Mistachkin <joe_at_mistachkin.com>
 State:        Draft
 Type:         Project
 Tcl-Version:  8.5
 Vote:         Pending
 Created:      Sunday, 21 March 2004
 URL:           http://www.*-*-*.com/
 WebEdit:       http://www.*-*-*.com/
 Post-History:

-------------------------------------------------------------------------

 ABSTRACT
==========

 This TIP proposes two new [info] subcommands which are used to obtain
 the current process and thread identifiers.

 RATIONALE
===========

 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
       (potentially for use with safe interpreters) using the [info]
       command and caller provided arguments. Using the [info] command
       instead of the [pid] command limits the amount of information
       that can be obtained by the safe interpreter.

 PROPOSED CHANGE
=================

 Two new subcommands, [info pid] and [info tid], would be added to the
 [info] command with the following syntax:

       *info pid*

 This subcommand would return the process identifier for the current
 process.

       *info tid*

 This subcommand would return the thread identifier for the current
 thread.

 DRAFT IMPLMENTATION
=====================

 A complete implementation of this TIP is availble at:

 <URL: http://www.*-*-*.com/ ;

 COPYRIGHT
===========

 This document has been placed in the public domain.

-------------------------------------------------------------------------

 TIP AutoGenerator - written by Donal K. Fellows


  Announcements archived at http://www.*-*-*.com/

  Tcl/Tk at http://www.*-*-*.com/ ]]



Tue, 12 Sep 2006 07:12:23 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. Tips for obtaining the library reference 1.4 in Emacs-Info

2. TIP #102: Change [trace list] to [trace info]

3. TIP #65: Enhanced [info args]

4. RESULT: comp.cad.synthesis passes 178:46

5. RESULT: comp.cad.synthesis passes 178:46

6. RESULT: comp.lsi.testing passes 178: 31

7. Preemptive Scheduling & DO-178

8. Outputting info from awk and using the info to name the awk output file

9. ACTOR: info & info request

10. BIOS Code space, memory map, fs info, and exec format info

11. FAT info and Disk info please!

12. Q about [info args] and [info default]

 

 
Powered by phpBB® Forum Software