求教并发学习问题
日常工作是管理平台,0并发,qps=1,该怎么学习实践并发场景呢,每次学习都是 new Thread().start(),虽然理论好像都懂,但就是朦朦胧胧的没有实在感,没有经过毒打,
for (LotteryInfo lotteryInfo : lotteryInfos) { lotteryService.oneKey(lotteryInfo, liveRoom); } @Override @Async("asyncTaskExecutor") @Transactional(rollbackFor = Exception.class) public void oneKey(LotteryInfo lotteryInfo, LiveRoom liveRoom) { }
自己的玩具