Re: threads questions

2005-09-04 Thread Alex Riesen
On 9/4/05, Petter Shappen <[EMAIL PROTECTED]> wrote: > As we all know the kernel maintain a data struct for the > process(PCB),and also for the thread.Because of the latter's smaller > than the former's,thread switching is faster than the process not really. They just share some bits (like: addres

Re: Kernel threads questions

2000-09-15 Thread Russell King
Jaime Medrano writes: > I have read somewhere that in a kernel thread the stack can't be used > because there is no copy-on-write. I want also to know if I can make any > syscall from a kernel thread. That is not true anymore - when a kernel thread is created, it gets a new task_struct, and there

Kernel threads questions

2000-09-13 Thread Jaime Medrano
I have a lot of doubts about kernel threads. I have read somewhere that in a kernel thread the stack can't be used because there is no copy-on-write. I want also to know if I can make any syscall from a kernel thread. When I call kernel_thread, the process is cloned whith the CLONE_VM flag set.