Hi, Before calling get_pid the state of child is set to TASK_UNINTERRUPTIBLE and after get_pid it is changed to TASK_RUNNNING.Why ?? Is it possbile that a process may leave the CPU during get_pid? Can any body tell me how linux is ensuring that scheduling can not happen when a process is executing in a system call and timer interrupt has occured. Please do a CC to me also. Thanks in advance Ashish __________________________________________________ Do You Yahoo!? Yahoo! Mail - Free email you can access from anywhere! http://mail.yahoo.com/ - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.tux.org/lkml/