...壹块内存,复制原内存的东西,并把原来的内存丢弃,适是非常耗时的动作;其次,Vector是线程安全的容器(thread-safe collection),葰洧对容器的操作都需要同步(synchronized),对纡包含大数琚粮的collection适也是非常耗时的。
基于1个网页-相关网页
The enumerator does not have exclusive access to the collection; therefore, enumerating through a collection is intrinsically not a thread safe procedure.
该枚举数不具有独占访问集合的权限;因此,枚举整个集合本质上不是一个线程安全的过程。
Gets a value that indicates whether access to the collection is synchronized (thread-safe).
获取一个值,该值指示对集合的访问是否同步(线程安全)。
Gets a value indicating whether access to the collection is synchronized (thread safe).
获取一个值,该值指示集合是否为只读。
应用推荐