1 1.10.2.1 matt $NetBSD: TODO,v 1.10.2.1 2007/11/06 23:11:39 matt 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.10 ad doesn't trash things. 7 1.2 thorpej 8 1.8 ad Interfaces/features to implement: 9 1.2 thorpej 10 1.10.2.1 matt - Realtime exensions: priority scheduling, priority inheritance. 11 1.8 ad 12 1.10.2.1 matt - Figure out how to use registers reserved in the ABI to implement 13 1.10.2.1 matt pthread_self(). This will allow for assembly lock stubs. 14 1.8 ad 15 1.10.2.1 matt - Allow threads to change their stack size. This probably depends on the 16 1.10.2.1 matt above item. 17 1.8 ad 18 1.10.2.1 matt - Have a user/kernel shared page that: 19 1.5 ad 20 1.10.2.1 matt o Has a hint mechanism that gives us a clue about whether an LWP is 21 1.10.2.1 matt currently running on another CPU. This could be used for adaptive locks, 22 1.10.2.1 matt 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.10.2.1 matt may or may not be worth it. Currently we test for this with _lwp_kill() 27 1.10.2.1 matt 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.10 ad _lwp_create() every time pthread_create() is called. 31