Why is List not thread-safe?

前端 未结 6 1564
醉梦人生
醉梦人生 2020-12-04 15:28

From the following site:

http://crfdesign.net/programming/top-10-differences-between-java-and-c

Unfortunately, List<> is no

6条回答
  •  情话喂你
    2020-12-04 16:16

    use SynchronizedCollection it also provides a Constructor-Parameter to use a shared sync :)

提交回复
热议问题