博客地址:http://home.cnblogs.com/u/zengjianrong/
摘要: 1. 内核栈的分配,即thread_info的分配,是在do_fork->dup_task_struct中分配(默认为2个pages),并赋值给task_struct->stack; 2. 用户栈的分配分两种: 一是pthread create会事先mmap分配好用户栈,传给do_fork->cop 阅读全文
posted @ 2019-12-03 01:01 black_man 阅读(2360) 评论(0) 推荐(0) 编辑