Java concurrency scenario — do I need synchronization or not?

后端 未结 10 1566
陌清茗
陌清茗 2021-02-01 07:19

Here\'s the deal. I have a hash map containing data I call \"program codes\", it lives in an object, like so:

Class Metadata
{
    private HashMap validProgramC         


        
10条回答
  •  离开以前
    2021-02-01 07:53

    Check this post about concurrency basics. It should be able to answer your question satisfactorily.

    http://walivi.wordpress.com/2013/08/24/concurrency-in-java-a-beginners-introduction/

提交回复
热议问题