i have create a functionality such that there are two boxes left and right. The values will be checked in the left box and after clicking on right arrow (>>) the value will get moved into the Right box. Vice versa with left arrow (<<).
I am displaying these values using Java HashMap . My question is if two different users login the site and they move the values from one box to another , ( they are seeing the same values ) than this type of scenerios need to be thread safe ( synchronized ) ? Or it will work without synchronized also ?
By every click on arrow i am calling my java class by jquery get request and updating the Java Map in java class and getting back the response via jquery and displaying the updated values in both the boxes again.
I am displaying these values using Java HashMap . My question is if two different users login the site and they move the values from one box to another , ( they are seeing the same values ) than this type of scenerios need to be thread safe ( synchronized ) ? Or it will work without synchronized also ?
By every click on arrow i am calling my java class by jquery get request and updating the Java Map in java class and getting back the response via jquery and displaying the updated values in both the boxes again.
Comment