Skip to main content
Back to USENIX
  • Conferences
  • Students
Sign in

USENIX Conference Policies

  • Event Code of Conduct
  • Conference Network Policy
  • Statement on Environmental Responsibility Policy

PtTcl: Using Tcl with Pthreads

D. Richard Hipp, Hwaci; Mike Cruse, CTI, Ltd.

Tcl is not thread-safe. If two or more threads attempt to use Tcl at the same time, internal data structures can be corrupted and the program can crash. This is true even if the threads are using separate Tcl interpreters.

PtTcl is a modification to the Tcl core that makes Tcl safe to use with POSIX threads. With PtTcl, each thread can create and use its own Tcl interpreters that will not interfere with interpreters used in other threads. A message-passing mechanism allows Tcl interpreters running in different treads to communicate. However, even with PtTcl, the same interpreter still cannot be accessed by more than one thread.

This paper describes the design, implementation and use of PtTcl.

D. Richard Hipp, Hwaci Corporation

Mike Cruse, CTI, Ltd.

BibTeX
@inproceedings {260924,
author = {D. Richard Hipp and Mike Cruse},
title = {{PtTcl}: Using Tcl with Pthreads},
booktitle = {5th Annual Tcl/Tk Workshop 1997 (5th Annual Tcl/Tk Workshop 1997)},
year = {1997},
address = {Boston, MA},
url = {https://www.usenix.org/conference/5th-annual-tcltk-workshop-1997/pttcl-using-tcl-pthreads},
publisher = {USENIX Association},
month = jul
}
Download

Links

Paper: 
http://www.usenix.org/publications/library/proceedings/tcl97/full_papers/hipp/hipp.pdf
Paper (HTML): 
http://www.usenix.org/publications/library/proceedings/tcl97/full_papers/hipp/hipp_html/hipp.html
  • Log in or register to post comments

© USENIX
EIN 13-3055038

  • Privacy Policy
  • Contact Us