Home > Back-end >  Java member variable thread safety questions
Java member variable thread safety questions

Time:09-26

Why this code will have thread safety problems
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
  • Related