[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Not able to generate race condition... please help
On Fri, May 8, 2009 at 4:42 PM, Chetan Nanda >
>I am still confused, as every thread will be having its own register set and
> this set will get stored in its 'tast_struct' at each context switch and at
> next run registers will get populated from corresponding 'task_struct'.
>
> So how these variable will get shared between different threads? I am
> missing any basic thing?
The original poster use pthreads, and pthreads are created by using
CLONE_VM flag of clone() syscall. That means, they're sharing task
struct, process address space etc.
regards,
Mulyadi.
--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ