Skip to content

modifying 2 different objects on the graph by 2 threads - need to synchronize? #69

Answered by hg-ms
guykatz asked this question in Q&A
Discussion options

You must be logged in to vote

Hi,
hope that I understood your questions correctly…

  1. When the modified parts of a graph are independent you don’t need to synchronize storing operations.
  2. If threads work on the same portion you must synchronize.

The important thing is that you must ensure that data that will be persisted is not modified from another thread while it is processed by eclipse store. This because the object graph is owned by your application and not by eclipse store. Therefore we cannot prevent other threads from modifying the graph.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by guykatz
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants