Implementing ConcurrentHashMap in Java
Recently, An interviewer asked me to implement ConcurrentHashMap using basic Data Structures in Java.
The default implementation of ConcurrentHashMap in java is quite complex one.
Would you agree that it's unfair to ask such complex and lengthy question in an interview or Am I missing something ? Is there a simple way to implement ConcurrentHashMap in java using basic DS that can be written in 20 mins ?
Open Chat in New Window