How to lock a dictionary?

前端 未结 3 1009
情歌与酒
情歌与酒 2021-01-22 03:34

I have a static dictionary in a multi thread application. class A Reads the dictionary and class B Removes from it. I want to lock dictionary when removing from it or reading fr

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