Friday, 22 April 2016

How to create a thread-safe class ?


Steps
1. Identify the variables which are making the state of object.
2. Identify the operation or flow which are affecting the object state
3. Manage and implement the concurrent access to object state

No comments:

Post a Comment

Note: only a member of this blog may post a comment.