If a system call is made for a process and sitting in kernel mode, if 2 threads are created then
a)how are the stacks for each thread is created in kernel?
b)If one of the thread switch back to user mode and if the other thread remain in kernel mode then will I loose the kernel data(local) allocated by parent thread?
c)why the two threads created has different pid?