Closed bmarcot closed 6 years ago
Two pages are allocated separately in allocate_thread_stack and allocate_interrupt_stack. The process of creating a new thread could be sped up by allocating once a bigger page and split it in half (1/2-1/2, or 1/4-3/4, ...).
allocate_thread_stack
allocate_interrupt_stack
Process stack is supplied by the syscall caller.
Two pages are allocated separately in
allocate_thread_stack
andallocate_interrupt_stack
. The process of creating a new thread could be sped up by allocating once a bigger page and split it in half (1/2-1/2, or 1/4-3/4, ...).