1. How to get id of a schedulable entity in kernel space i.e.
pthread_create is done in
user space, is task_struct->pid the thread of this newly created
thread? Does this
pid  represent a thread and task_struct->tgid the leader of the thread
group i.e. main
thread?

2. If all answers to 1 are positive then is task_struct->pid eqal to
output of sys_gettid()?

3. Why the hell sys_gettid is imlemented in timer.c?


-Leo.

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to [email protected]
Please read the FAQ at http://kernelnewbies.org/FAQ

Reply via email to