Overview
| Artifact ID: | 56c0e4bb99f0bb957acc177064f08d9ac2f6615d |
|---|---|
| Ticket: | 659131ffffffffffffffffffffffffffffffffff
development targets: Complete pthreads? |
| User & Date: | vasiljevic on 2003-11-20 02:37:57 |
Changes
- icomment:
Logged In: YES user_id=95086 OK. The reader/writer locks are really piece of cake. I do not generaly think those are good idea for many reasons (starvation of threads) but here/there they might be ok. Yes, thread pools are a great vehicle for building complex server suff things in Tcl alone. For Win threads: there are places, for example, where you can impersonate a thread for a specific user. This is crucial for MT-servers (fileservers for example) to enforce protection schemes. Posix does not allow for this. But I would not like to make this a two-person flame. I do not program on Win. I even dont like it. I just miss some things from Posix and I find them in Win api. For shared tcl objects I mean the shared Tcl_Obj. I went a long way to make it somehow "shared" in tsv, but this is only a poor aproximation, not really the "right thing". Numerous other plans? Well... do tsv monitors (aka traces) so people can build up simple notification system when a tsv variable changes. Then, add shared-memory persistence to tsv, so people can share data in across processes as they can do across threads. Then, abstract threads/processes under one clean simple API so you can create pools of processes or threads or combined (this can be a very powerful thingy) out of Tcl. Well, this is enough for the moment, right? :) If you have some more ideas in that direction (simple, easy to understand/use but powerful) please step-out with them. I do not think that implementing Tcl API for semaphores will make peoples life easier ;)
- login: "vasiljevic"
- mimetype: "text/plain"
- username: "vasiljevic"