Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: a1bd28f49b270dbec4a3df623701887a244480b4
Ticket: 849901ffffffffffffffffffffffffffffffffff
Cooperative event threading
User & Date: dkf on 2005-01-12 16:45:50
Changes

  1. icomment:
    Logged In: YES 
    user_id=79902
    
    I am extremely inclined to say "No Way!" to this. Here's why.
    
    Threads are something that always causes trouble, what with
    either too many locks or bizarre race conditions. 
    Cooperative threading is a bit better in some ways, but
    still causes headaches. And you can get the effects through
    careful design of event handlers and callbacks (I've done
    this in the past). On a practical implementation level, the
    main problem with cooperative threading is that it requires
    a total redesign of the way Tcl uses the C stack.
    
    If you really need threads, use the Thread extension and get
    *real* threads (i.e. fewer problems with syscalls) together
    with a threading/ITC model that is much easier to use. It
    might not be everything that you're after, but it is *so*
    much less effort on our part! :^)
    
    
  2. login: "dkf"
  3. mimetype: "text/plain"
  4. username: "dkf"