Overview
| Artifact ID: | 4b9fd3e00311778759bf5ce231f25aab4bac3bb6 |
|---|---|
| Ticket: | 577014ffffffffffffffffffffffffffffffffff
documentation; wait on thread exits |
| User & Date: | vasiljevic on 2002-08-07 19:43:19 |
Changes
- icomment:
Logged In: YES user_id=95086 1. Which parts of the package are usable with earlier TCL versions? Threading extension support Tcl8.3.2+ on all commands except: thread::join (and the thread::create -joinable) thread::transfer 7. What does happen if several threads send scripts to the same target Scripts will be entered in the event loop of the target thread and executed one after another on FIFO basis. 1. What are the support calls that are needed by the thread package Eh, the Tcl API ones. Grep all source files for Tcl_* and you'll get the list. I do not think that those need to be referenced in the docs. 2. http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/tcl/thread/doc/man/thread.n?rev=1.6&content-type=text/vnd.viewcvs-markup 2.2.1 Is the identifier still valid if a thread was terminated? Can the thread ID be reused? Identifier is valid until thread::join for threads created with "-joinable" flag. Identifier cannot be reused. It is generated by the system for each new thread. Identifier goes out of scope when the thread is joined. Thread is joined by the Tcl API (implicitly) or by user (using the thread::join command) explicitly. 2.2.2 How much "bookkeeping" is performed by your package Tough question. Define "bookkeeping". 2.2.3 Can a finished thread be restarted or brought it to wait for new incoming commands No. 3.1 Ok. 3.2. I plan to do pools on C-level, because it is so common and very useful. Other threading paradigms like workpile and others can be implemented on Tcl level, which is out of the scope of the threading extension per-se. 4. thread::create ?-preserved? ?-joinable? ?script? 5. A good point. 6. Another good point :) - login: "vasiljevic"
- mimetype: "text/plain"
- username: "vasiljevic"