# thread-transactional **Repository Path**: flsr/thread-transactional ## Basic Information - **Project Name**: thread-transactional - **Description**: No description available - **Primary Language**: Java - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-03-29 - **Last Updated**: 2024-03-29 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # thread-transactional 1.使用CountDownLatch实现多线程事务管理;2.配置log4j2动态日志 2.多线程数据库读写问题: 如果通过多线程同时操作update和inset,则会出现死锁问题,因为MySQL的事务隔离级别默认是REPEATABLE_READ,需要解决该问题可以把事务级别降低为READ_COMMITTED。但是引申的问题在于同一条数据的update可能先于insert执行,就会导致update的where主见不存在,从而update失败