Home | History | Annotate | Line # | Download | only in libpthread
TODO revision 1.8.2.3
      1  1.8.2.3    skrll $NetBSD: TODO,v 1.8.2.3 2007/09/10 10:54:04 skrll Exp $
      2      1.5       ad 
      3      1.8       ad Bugs to fix:
      4      1.2  thorpej 
      5      1.2  thorpej - Add locking to ld.elf_so so that multiple threads doing lazy binding
      6  1.8.2.2    skrll   doesn't trash things.
      7      1.2  thorpej 
      8      1.8       ad Interfaces/features to implement:
      9      1.2  thorpej 
     10  1.8.2.3    skrll - Realtime exensions: priority scheduling, priority inheritance.
     11      1.8       ad 
     12  1.8.2.3    skrll - Figure out how to use registers reserved in the ABI to implement
     13  1.8.2.3    skrll   pthread_self(). This will allow for assembly lock stubs.
     14      1.8       ad 
     15  1.8.2.3    skrll - Allow threads to change their stack size. This probably depends on the
     16  1.8.2.3    skrll   above item.
     17      1.8       ad 
     18  1.8.2.3    skrll - Have a user/kernel shared page that:
     19      1.5       ad 
     20  1.8.2.3    skrll   o Has a hint mechanism that gives us a clue about whether an LWP is
     21  1.8.2.3    skrll     currently running on another CPU. This could be used for adaptive locks,
     22  1.8.2.3    skrll     but would need to be cheap to do in-kernel.
     23      1.5       ad 
     24      1.5       ad   o Perhaps has a flag value that's reset when a detached LWP is into the
     25      1.5       ad     kernel and lwp_exit1(), meaning that its stack can be reclaimed. Again,
     26  1.8.2.3    skrll     may or may not be worth it. Currently we test for this with _lwp_kill()
     27  1.8.2.3    skrll     which is very inefficient.
     28      1.5       ad 
     29      1.5       ad - Keep a pool of dead LWPs so that we do not have take the full hit of
     30  1.8.2.2    skrll   _lwp_create() every time pthread_create() is called.
     31