java method synchronization and read/write mutual exclusion

后端 未结 5 1462
醉酒成梦
醉酒成梦 2021-02-01 05:28

I have two methods read() and write() as below in a class.

class Store
{

  public void write()
  {
    // write to store;
  }

  publi         


        
5条回答
提交回复
热议问题