Thread safety problems are here, according to such a call, no matter the thread the remove (), set inside there will be an element, because is to remove after how may be performed to remove the collection of elements, even if a thread is not plus, another thread also add

