Re: Access thread stack from another thread

2010-06-07 Thread Joel Fernandes
On Mon, Jun 07, 2010 at 05:28:51PM +1200, Simon Kitching wrote: > On Sun, 2010-06-06 at 13:49 +0530, Joel Fernandes wrote: > > On Sun, Jun 6, 2010 at 3:06 AM, Vimal wrote: > > > Hi Joel, > > > > > >> > > >> now i have a question, even if they share the same vm address space - > > >> they definitel

Re: Access thread stack from another thread

2010-06-06 Thread Simon Kitching
On Sun, 2010-06-06 at 13:49 +0530, Joel Fernandes wrote: > On Sun, Jun 6, 2010 at 3:06 AM, Vimal wrote: > > Hi Joel, > > > >> > >> now i have a question, even if they share the same vm address space - > >> they definitely can't share the userspace stack, i'm sure the kernel > >> would have to rese

Re: Access thread stack from another thread

2010-06-06 Thread Joel Fernandes
On Sun, Jun 6, 2010 at 3:06 AM, Vimal wrote: > Hi Joel, > >> >> now i have a question, even if they share the same vm address space - >> they definitely can't share the userspace stack, i'm sure the kernel >> would have to reset it up in the same address space of the group of >> threads but I real

Re: Access thread stack from another thread

2010-06-05 Thread Mulyadi Santosa
On Sun, Jun 6, 2010 at 11:34, Group wrote: > Thanks for your reply. I agree with what you said. Is there any code related > to this available in kernel or any other source? as It would be more helpful > to understand this concept. To the best (in my getting rusty) knowledge, accessing other threa

Re: Access thread stack from another thread

2010-06-05 Thread Group
Thanks for your reply. I agree with what you said. Is there any code related to this available in kernel or any other source? as It would be more helpful to understand this concept. On Sat, Jun 5, 2010 at 1:44 AM, Vimal wrote: > On 4 June 2010 17:16, Group wrote: > > Hi, > > > > Is it possible

Re: Access thread stack from another thread

2010-06-05 Thread Joel Fernandes
On Sat, Jun 5, 2010 at 3:20 PM, Joel Fernandes wrote: > On Sat, Jun 5, 2010 at 11:14 AM, Vimal wrote: >> On 4 June 2010 17:16, Group wrote: >>> Hi, >>> >>> Is it possible to access threads stack (not shared) from another thread? >>> I have seen an API which gets the attributes for the stack >>>

Re: Access thread stack from another thread

2010-06-04 Thread Vimal
On 4 June 2010 17:16, Group wrote: > Hi, > > Is it possible to access threads stack (not shared) from another thread? > I have seen an API which gets the attributes for the stack > pthread_attr_getstack(). > But is it possible to access the DATA on the thread stack?. Is there any api > for it?. S

Access thread stack from another thread

2010-06-04 Thread Group
Hi, Is it possible to access threads stack (not shared) from another thread? I have seen an API which gets the attributes for the stack pthread_attr_getstack(). But is it possible to access the DATA on the thread stack?. Is there any api for it?. Can any one please help me out in understanding mor