Code example for ConcurrentHashMap

Methods: keySet

0
        return true; 
    } 
 
    @Override 
    public Collection<String> getWaiters() {
        return _asleep.keySet();
    } 
     
    @Override 
    public boolean wakeup(String threadName) {
        Thread th = _asleep.get(threadName);
        if (th != null) {
            th.interrupt();
            return true; 
        } 
         
        return false; 
    } 
 
    @Override 
    public boolean start() {