Is it safe to not put a lock on an object if it will always
be read-only in other threads and will only ever be written to
in just one and always the same one thread?
be read-only in other threads and will only ever be written to
in just one and always the same one thread?
Comment