D
D
dwar4me2011-07-18 01:37:49
Programming
dwar4me, 2011-07-18 01:37:49

Parallel programming - the ability to rollback the result of a function?

A long time ago I read an article that described such a feature:
We declare a function in a special way. If during the execution of the function some data has changed, then we produce a rollback and it starts again. This way you can achieve thread-safe and no deadlocks.
Now I don't even remember the programming language I was talking about.
Where to find it?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
susl, 2011-07-18
@susl

en.wikipedia.org/wiki/Transactional_memory

H
Horse, 2011-07-18
@Horse

In winapi, *nix api, as far as I know, there is nothing like that. Most likely Java. And in any case - mutexes, wait funtions, normal architecture - the best way to take care of thread-safe.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question