Transaction ID

3 views
Skip to first unread message

Guy Korland

unread,
Nov 10, 2009, 10:29:56 AM11/10/09
to Deuce-STM developers, Mihai Letia
Hi,

I'm a PhD student at EPFL and I'm trying to implement an STM algorithm
using Deuce.
I need to use the transaction ID in each of the STM functions (read,
write, commit, ...).
What could I do to obtain it? Thank you for any help.

Best regards,
Mihai Letia

Guy Korland

unread,
Nov 10, 2009, 10:32:52 AM11/10/09
to Deuce-STM developers, Mihai Letia
Hi Mihai,

What do you mean by Transaction ID? Currently you get the transaction
block id on transaction init, isn't it enough?

Guy

Guy Korland

unread,
Nov 10, 2009, 4:45:15 PM11/10/09
to Mihai Letia, Deuce-STM developers
All you have to do is to assign a new id on every init() that comes after a successful commit().

Guy

On Tue, Nov 10, 2009 at 5:38 PM, Mihai Letia <mihai...@epfl.ch> wrote:
If two threads call the same transaction block, the block id will be the
same, right?
I would like to have a different id for this.
And also if a thread calls the same block twice, I need to get a
different id.

Mihai



--
Guy Korland

mihai

unread,
Nov 13, 2009, 6:38:41 AM11/13/09
to Deuce-STM developers
As I undestand, this doesn't work for nested transactions.
Is that correct?

Mihai
Reply all
Reply to author
Forward
0 new messages