You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ignite.apache.org by styriver <Sc...@mgic.com> on 2017/02/07 02:31:16 UTC

Locking Threads

Hello

In  your locking implementation when a thread is locked what reference is
used? Are they locked by thread name or some other identifier.



--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Locking-Threads-tp10466.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Re: Locking Threads

Posted by Andrey Gura <ag...@apache.org>.
In lock implementation we have reference to the thread that owns lock
in order to prevent attempts lock releasing from another thread.

For key lock we also have thread ID for thread identification.

On Tue, Feb 7, 2017 at 6:23 PM, styriver <Sc...@mgic.com> wrote:
> My understanding is that locking is performed on a thread and cache key
> basis. I wanted to know when you lock a thread how are you identifying it.
> By thread name or thread id?
>
>
>
> --
> View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Locking-Threads-tp10466p10482.html
> Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Re: Locking Threads

Posted by styriver <Sc...@mgic.com>.
My understanding is that locking is performed on a thread and cache key
basis. I wanted to know when you lock a thread how are you identifying it.
By thread name or thread id?



--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Locking-Threads-tp10466p10482.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Re: Locking Threads

Posted by Andrey Gura <ag...@apache.org>.
Hi,

I'm araid I don't understand the question. Do you mean
IgniteCache.lock() implementation?

On Tue, Feb 7, 2017 at 5:31 AM, styriver <Sc...@mgic.com> wrote:
> Hello
>
> In  your locking implementation when a thread is locked what reference is
> used? Are they locked by thread name or some other identifier.
>
>
>
> --
> View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Locking-Threads-tp10466.html
> Sent from the Apache Ignite Users mailing list archive at Nabble.com.