I mean if i call method with parameter immutable object, which is defined with volatile. What will happen in the method, when some other thread updates the immutable state i.e. updates the volatile...
Type: Posts; User: dimitarn
I mean if i call method with parameter immutable object, which is defined with volatile. What will happen in the method, when some other thread updates the immutable state i.e. updates the volatile...
Hi
I have this code will work in multithreaded application.
I know that immutable object is thread safe because its state cannot be changed. And if we have volatile reference, if is changed with...