java - How do copy on write collections provide thread-safety? -
this question has answer here:
how copy on write collections provide thread-safety , in scenarios useful implement?
the way make brand new copy of list every time altered.
reads not block, , pay cost of volatile read. writes not block reads (or vice versa), 1 write can occur @ once.
Comments
Post a Comment