employer cover photo
employer logo
employer logo

Intellect Design Arena

Engaged Employer

Intellect Design Arena Interview Question

How is volatile keyword used in multithreading environment???

Interview Answer

Anonymous

Jul 22, 2017

By using volatile keyword the value of the variable is not thread cached locally and any changes made to it reflect in direct memory and hence volatile returns the current value of the variable

1