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