# yuer_pream_test **Repository Path**: codeGoogler/yuer_pream_test ## Basic Information - **Project Name**: yuer_pream_test - **Description**: 本项目是用户对高并发处理多线层数据丢失问题的探索 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-07-28 - **Last Updated**: 2022-07-28 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README #### 本项目是用户对高并发处理多线层数据丢失问题的探索 1、启动项目,运行 http://localhost:8080/hello/values 2、多次运行,会发现出现少数据的情况 > 利用java8的java8的parallelStream的方式进行处理数据或者线程池,往集合ConcurrentHashMap>中添加数据 出现丢失的情况 ![](img.png) ###问题: ConcurrentHashMap是线程安全的 Vector也是线程安全的 为什么还是对出现数据丢失的情况? ### 解決方案