Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 2e2864cfd7a7aecaa0b1744c02e790eea4dfbfb5
Ticket: 659131ffffffffffffffffffffffffffffffffff
development targets: Complete pthreads?
User & Date: vasiljevic on 2003-11-19 14:31:21
Changes

  1. icomment:
    Logged In: YES 
    user_id=95086
    
    Thanks. Now we're getting somewhere... 
    I did skip thru the distro and there, immediately, 
    one *big* question pops-up which you might be able 
    to answer. 
     
    What it the purpose of your proposal? 
     
    Currently, Tcl offers (incomplete) but practicaly 
    very usable set of API calls to build just about 
    any MT-app you can think of, by *using* Posix pthreads 
    library on Unix. On Windows, it uses native Windows 
    threads library. What can be better than that? 
     
    There are some *dusty* corners about what Posix  
    and/or Win API's offer which are of no great 
    practical use (I never needed the spin mutex 
    in my life, for example). Although I think we 
    should eventually close these holes, the  
    implementation is good as it is.  
    I have compiled a wish-list some time ago, mostly 
    based on AOLserver thread compatibility library 
    about features missing in the Tcl API. This should 
    be the base for the improvement which I wanted to  
    TIP, but never got the time to make the reference 
    implementation. I might send you this if I find it 
    somewhere on my home computer. 
    The idea was to junk the AOLserver thread lib in  
    favour of Tcl API. One this has been done, Tcl  
    would have the most complete, useful and thoroughly 
    tested API not found in any other script environment.  
     
    So, again, what *exactly* is what are you trying 
    to achieve? I see that you put a lot of effort in 
    this direction, and this is very encouraging.  
    Yet, I'd like to have some more background info. 
     
    Apart from that, there is one *huge* issue in Tcl 
    design that we ought to pay much more attention. 
    This is the Tcl object system and protected access 
    to Tcl objects accross threads. This is the part 
    that deserves more time than wrapping the very 
    last bit of Posix and/or Win thread API. 
    
    
  2. login: "vasiljevic"
  3. mimetype: "text/plain"
  4. username: "vasiljevic"