September 2009
Intermediate to advanced
816 pages
19h 38m
English
This chapter covers the use of Tcl’s thread API from C and the use of Tcl in threaded programs. Complex programming with threads is tricky and can lead to difficult-to-find errors if not treated with caution. We discuss Tcl’s API but do not cover the nuances of programming with threads. For a thorough discussion of the topic, refer to books such as Programming with POSIX Threads by David Butenhof (ISBN 0-201-63392-2).
This chapter discusses the following functions related to thread management in Tcl:
• int Tcl_CreateThread(Tcl_ThreadId *idPtr, Tcl_ThreadCreateProc threadProc, ClientData clientData, int stackSize, int flags)
Creates a new thread whose new ID is stored ...
Read now
Unlock full access