In Concurrent HashMap it is not allowed to contain null key or value
@subasreesuriyakumar34422 жыл бұрын
Thanks a lot🙏🙏🙏
@maksrane1002 жыл бұрын
You're welcome 😊
@dhareppasasalatti71023 жыл бұрын
Thank you so much for this.. Expecting more videos from your channel
@maksrane1003 жыл бұрын
Sure 😊 You may want to check playlists on this channel : Leetcode & Lintcode Solved Coding Problems Codeforces And many others are there....
@learnprogramming69302 жыл бұрын
Thank you
@maksrane1002 жыл бұрын
You're welcome.. Keep watching..
@sourabhjain39202 жыл бұрын
good explanation...
@maksrane1002 жыл бұрын
Glad you liked it
@shwetapriyadarshani1972 жыл бұрын
hi, i have one doubt, if i am modifying the node with key 101, can another thread read that particular node at the same time ? because read operations aren't blocked in Concurrenthashmap
@maksrane1002 жыл бұрын
In ConcurrentHashMap, at a time any number of threads can perform retrieval operation but for updated in the object, the thread must lock the particular segment in which the thread wants to operate. This is called as Segment locking. Hope this helps.
@shwetapriyadarshani1972 жыл бұрын
So what If one thread read the value just before updating that value and at the same time updation on that node happened. Say node at node 101, i am updating it's value to 501 and a thread comes to read its value, it reads 101 just before updating. So the thread will read stale value right? So how this is resolved
@mad0052 жыл бұрын
Yes it will read a stale value, since the read came before the write
@shravankumar-me5xi2 жыл бұрын
What happens if we read the data from a segment when it is locked..??
@SHUBHAMVARDAAN6 ай бұрын
worst video, presenter is very confused about what he is presenting .
@AjithYadavT Жыл бұрын
Concurrenthashmap is slow compare with hashmap
@maksrane100 Жыл бұрын
ConcurrentHashMap performance is low sometimes because sometimes threads may be required to wait on ConcurrentHashMap. In case of HashMap performance is comparitively high because it is non-synchronized in nature and any number of threads can perform simultaneously.