pthread对应的系统调用
mmap2(NULL, 10489856, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb75cc000
mprotect(0xb75cc000, 4096, PROT_NONE) = 0
clone(child_stack=0xb7fcc4b4, flags= CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID , parent_tidptr=0xb7fccbd8, {entry_number:6, base_addr:0xb7fccb90, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}, child_tidptr=0xb7fccbd8) = 3848
thread in linux is a process essencially.
Kthread run in kernel mode process, vm=NULL kernel mode
deamon process: User mode
lightweight process: None in linux
mmap2(NULL, 10489856, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb75cc000
mprotect(0xb75cc000, 4096, PROT_NONE) = 0
clone(child_stack=0xb7fcc4b4, flags= CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID , parent_tidptr=0xb7fccbd8, {entry_number:6, base_addr:0xb7fccb90, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}, child_tidptr=0xb7fccbd8) = 3848
thread in linux is a process essencially.
Kthread run in kernel mode process, vm=NULL kernel mode
deamon process: User mode
lightweight process: None in linux