CINXE.COM
并发 - 标签 - 腾讯云开发者社区-腾讯云
<!DOCTYPE html><html munual-autotracker-init="" qct-pv-id="U4Vycgi3t-_rENDObfaJo" qct-ip="8.222.208.146"><head><meta charSet="UTF-8"/><meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/><title>并发 - 标签 - 腾讯云开发者社区-腾讯云</title><meta name="keywords" content="并发,云+社区标签"/><meta name="subjectTime" content="2023-03-14 11:34:53"/><meta name="description" content=""/><meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1, viewport-fit=cover"/><meta name="format-detection" content="telephone=no"/><link rel="canonical" href="https://cloud.tencent.com/developer/tag/17197"/><link rel="stylesheet" href="//cloudcache.tencent-cloud.cn/open_proj/proj_qcloud_v2/gateway/portal/css/global-20209142343.css"/><link rel="stylesheet" href="//cloudcache.tencent-cloud.cn/qcloud/ui/cloud-community/build/base/base-202410111735.css"/><link rel="stylesheet" href="//cloudcache.tencent-cloud.cn/open_proj/proj_qcloud_v2/community-pc/build/AskDialog/AskDialog-202204021635.css?max_age=31536000"/><link rel="stylesheet" href="//cloudcache.tencent-cloud.cn/open_proj/proj_qcloud_v2/community-pc/build/AskDialog/AskDialog-202204021635.css?max_age=31536000"/><link rel="stylesheet" href="//cloudcache.tencent-cloud.cn/qcloud/ui/community-pc/build/base/base-202410211524.css"/><link rel="stylesheet" href="//cloudcache.tencent-cloud.cn/qcloud/ui/cloud-community/build/base/base-202410111735.css"/><link rel="stylesheet" href="//cloudcache.tencent-cloud.cn/open_proj/proj_qcloud_v2/community-pc/build/Tag/Tag-202105140928.css?max_age=31536000"/><link rel="stylesheet" href="//cloudcache.tencent-cloud.cn/open_proj/proj_qcloud_v2/community/portal/css/markdown-201810241044.css?max_age=31536000"/><link rel="stylesheet" href="//cloudcache.tencent-cloud.cn/qcloud/draft-master/dist/draft-master-v2.0.142.d4s2ddo9sb.css?max_age=31536000"/><style media="screen">@supports (padding:max(0px)){.set-safe-area .com-main{bottom:calc(max(12px,constant(safe-area-inset-bottom)) + 50px);bottom:calc(max(12px,env(safe-area-inset-bottom)) + 50px)}.set-safe-area .com-main-simple-sec,.set-safe-area .com-main.without-tab-ft,.set-safe-area .com-main.without-ft{bottom:max(12px,constant(safe-area-inset-bottom));bottom:max(12px,env(safe-area-inset-bottom))}.set-safe-area .com-main-sec{bottom:max(12px,constant(safe-area-inset-bottom));bottom:max(12px,env(safe-area-inset-bottom))}.set-safe-area .com-m-footer,.set-safe-area .sa-fixed-btns{bottom:max(12px,constant(safe-area-inset-bottom));bottom:max(12px,env(safe-area-inset-bottom))}.set-safe-area .com-mobile-body{bottom:max(12px,constant(safe-area-inset-bottom));bottom:max(12px,env(safe-area-inset-bottom))}}@supports (padding:max(0px)){.set-safe-area .support-wrap,.set-safe-area div.body{bottom:max(12px,constant(safe-area-inset-bottom));bottom:max(12px,env(safe-area-inset-bottom))}.set-safe-area .com-responsive-no-ft div.body{bottom:max(12px,constant(safe-area-inset-bottom));bottom:max(12px,env(safe-area-inset-bottom))}}.doc-con .J-docShareModal{display: none;} .doc-con .J-docShareCopyTipModalMB{display: none} .with-focus+.com-main-simple-sec, .with-focus+.com-main,.with-focus+.com-body,.with-focus+.qa-body{top:100px} .qa-detail-ask-panel:after{display:none!important;} .sa-fixed-btns .c-btn-weak{background-color: #fff;} .qa-r-editor.draft-editor-host.rno-markdown{height: 290px;overflow-y:auto;} .uc-achievement{line-height:24px;margin-bottom:5px;white-space: initial;overflow:visible;text-overflow:initial} .uc-achievement .uc-achievement-icon{top:0;margin-top:0;}</style></head><body style="position:initial"><div id="react-root" class=""><div class="comp-tag-detail"><div class="cdc-header is-fixed"><div class="cdc-header__placeholder"></div><div class="cdc-header__inner"><div class="cdc-header__top"><div class="cdc-header__top-left"><a href="/?from=20060&from_column=20060" target="_blank" class="cdc-header__top-logo"><i>腾讯云</i></a><div class="cdc-header__top-line"></div><a href="/developer" class="cdc-header__top-logo community"><i>开发者社区</i></a><div class="cdc-header__activity"><div id="cloud-header-product-container"></div></div></div><div class="cdc-header__top-operates"><a href="/document/product?from=20702&from_column=20702" target="_blank" class="cdc-header__link">文档</a><a href="/voc/?from=20703&from_column=20703" target="_blank" class="cdc-header__link">建议反馈</a><a href="https://console.cloud.tencent.com?from=20063&from_column=20063" target="_blank" class="cdc-header__link" track-click="{"areaId":102001,"subAreaId":1}">控制台</a><div class="cdc-header__account"><div class="cdc-header__account-inner"><button class="cdc-btn cdc-header__account-btn cdc-btn--primary">登录/注册</button></div></div></div></div><div class="cdc-header__bottom"><div class="cdc-header__bottom-nav"><a href="/developer" class="cdc-header__bottom-home">首页</a><div class="cdc-header__nav-list"><div class="cdc-header__nav-item">学习</div><div class="cdc-header__nav-item">活动</div><div class="cdc-header__nav-item">专区</div><div class="cdc-header__nav-item">工具</div></div><a href="/tvp?from=20154&from_column=20154" class="cdc-header__tvp" target="_blank">TVP</a><div class="cdc-header__activity"><a class="cdc-header__activity-tit" href="/act?from=20061&from_column=20061" target="_blank">最新优惠活动<div class="cdc-badge"><div class="cdc-badge-inner"><div class="cdc-badge-text"></div></div></div></a></div><div id="community-header-product-container"></div></div><div class="cdc-header__bottom-operates"><div class="cdc-header__search"><div class="cdc-search__wrap"><div class="cdc-search"><span class="cdc-search__text">文章/答案/技术大牛</span><button class="cdc-search__btn">搜索<i class="cdc-search__i search"></i></button></div><div class="cdc-search__dropdown"><div class="cdc-search__bar"><input type="text" class="cdc-search__bar-input" placeholder="文章/答案/技术大牛" value=""/><div class="cdc-search__bar-btns"><button class="cdc-search__btn">搜索<i class="cdc-search__i search"></i></button><button class="cdc-search__btn">关闭<i class="cdc-search__i clear"></i></button></div></div></div></div></div><div class="cdc-header__create"><span class="cdc-header__create-btn not-logged"><span class="cdc-svg-icon-con"><span class="cdc-svg-icon" style="line-height:1;color:#0052D9;width:16px;height:16px"><svg width="16" height="16" viewBox="0 0 16 16" fill="currentcolor" xmlns="http://www.w3.org/2000/svg"><path d="M14.2466 12.0145C14.1698 13.6258 12.8381 14.9131 11.2129 14.9131H11.1579H4.0927H4.03772C2.4125 14.9131 1.08014 13.6258 1.00334 12.0145H1V11.8668V4.07213V4.04627V3.89922H1.00334C1.08014 2.28732 2.4125 1 4.03772 1H9.6473V1.00069H10.0786L8.7688 2.10773H8.43888H7.7916H6.37904H4.03772C2.97234 2.10773 2.10445 2.9777 2.10445 4.04629V4.41869V4.4472V6.39498V11.4269V11.4309V11.8668C2.10445 12.9354 2.97234 13.8053 4.03772 13.8053H6.37904H8.87153H11.2129C12.2782 13.8053 13.1461 12.9355 13.1461 11.8668V11.466V11.454V9.5181V6.39364L14.2506 5.3051V11.8668V12.0145H14.2466ZM10.4324 7.15226L9.63146 7.99761C9.36577 8.2693 8.69326 8.95104 8.48066 9.17631C8.26726 9.40288 8.09039 9.58901 7.95061 9.73544C7.81079 9.88188 7.72667 9.96597 7.70083 9.98656C7.63321 10.0488 7.55703 10.1144 7.47022 10.1846C7.38412 10.2542 7.29404 10.3099 7.20063 10.3516C7.10722 10.4007 6.97072 10.459 6.79049 10.5305C6.61028 10.6001 6.42213 10.6676 6.22468 10.7339C6.02792 10.8002 5.84109 10.8571 5.66484 10.9061C5.48795 10.9538 5.3561 10.9863 5.2693 11.0009C5.08977 11.0214 4.96988 10.993 4.90956 10.9168C4.84931 10.8405 4.83276 10.7107 4.85924 10.5312C4.87315 10.4331 4.9043 10.292 4.95468 10.1078C5.00431 9.92297 5.05802 9.7315 5.11431 9.53341C5.1713 9.33526 5.22629 9.15179 5.27926 8.98484C5.33297 8.8179 5.37599 8.7026 5.40978 8.64032C5.44953 8.54357 5.49463 8.45413 5.54495 8.37399C5.59465 8.29379 5.66616 8.20503 5.75965 8.10766C5.79934 8.06588 5.89281 7.96649 6.03988 7.81018C6.18624 7.65311 6.80114 7.02774 7.02104 6.79783L7.75117 6.03524L8.56212 5.1899L10.6345 3.02466L12.5214 4.93874L10.4324 7.15226ZM13.816 3.58581C13.7166 3.68987 13.6272 3.78064 13.5483 3.85883C13.4694 3.93703 13.4006 4.0066 13.3423 4.06686C13.276 4.13643 13.2144 4.19738 13.1561 4.24903L11.2785 2.33569C11.3785 2.24025 11.4965 2.12565 11.6336 1.99115C11.7707 1.85668 11.8854 1.75061 11.9761 1.67242C12.0934 1.57708 12.2133 1.51013 12.3385 1.47109C12.4525 1.43529 12.5644 1.41805 12.6751 1.41876H12.7056C12.7665 1.42139 12.8268 1.42729 12.8851 1.43724C12.8838 1.4366 12.8811 1.43724 12.8798 1.4366C12.8811 1.4366 12.8838 1.4366 12.8851 1.43724C13.1376 1.48428 13.4019 1.62009 13.6265 1.83743C13.7511 1.95871 13.8524 2.09382 13.9259 2.23296C14.0346 2.43834 14.0863 2.65304 14.0763 2.8491C14.0763 2.87294 14.0783 2.89748 14.0783 2.92201C14.0783 3.03529 14.0571 3.14789 14.0154 3.26055C13.9737 3.37314 13.9067 3.48185 13.816 3.58581Z" fill="#0052D9"></path></svg></span></span>发布<span class="cdc-svg-icon-con cdc-header__create-btn-arrow"><span class="cdc-svg-icon" style="line-height:1;color:inherit;width:16px;height:16px"><svg width="16" height="16" viewBox="0 0 16 16" fill="currentcolor" xmlns="http://www.w3.org/2000/svg"><path d="M8.16377 4L9.57798 5.41421L14.5277 10.364L13.1135 11.7782L8.1638 6.829L3.21402 11.7782L1.7998 10.364L8.16377 4Z"></path></svg></span></span></span></div></div></div></div></div><div class="cdc-m-header with-focus is-fixed"><div class="cdc-m-header__placeholder"></div><div class="cdc-m-header__inner"><div class="cdc-m-guider-banner is-sticky"><div class="cdc-m-guider-banner__guide-mvp" track-exposure="{"areaId":118000}" track-click="{"areaId":118000}"><div class="cdc-m-guider-banner__guide-mvp-text">精选内容/技术社群/优惠产品,<em>尽在小程序</em></div><div class="cdc-m-guider-banner__guide-mvp-btn">立即前往</div></div></div><div class="cdc-m-header__main"><div class="cdc-m-header__trigger"></div><div class="cdc-m-header__logo"><i class="cdc-m-header__logo-icon"></i></div><div class="cdc-m-header__search"><i class="cdc-m-header__search-icon"></i></div><div class="cdc-m-header__operate"><span class="cdc-m-header__operate-icon"></span></div></div></div></div><div class="J-body com-body max-width"><div class="com-crumb"><div class="com-inner"><a href="/developer" class="crumb-item">首页</a><span class="crumb-split"></span><a href="/developer/tags" class="crumb-item">标签</a><span class="crumb-split"></span><span class="crumb-item current">并发</span></div></div><div track-click="{"areaId":{"areaId":113006}}" track-exposure="{"areaId":{"areaId":113006}}" class="com-tag-intro"><i class="intro-bg"></i><h2 class="intro-title"><em>#</em>并发</h2><p class="intro-desc"></p><div class="intro-btns"><button type="button" class="c-btn" track-click="{"elementId":1}">关注</button></div></div><div class="com-2-layout"><div class="layout-main"><div class="com-tab large tag-tab"><div class="com-tab-hd large"><ul class="com-tab-ctrl"><li class="com-tab-item actived"><a href="javascript:;">专栏文章<span class="num">(1.2K)</span></a></li><li class="com-tab-item"><a href="/developer/tag/17197?entry=video">技术视频<span class="num">(0)</span></a></li><li class="com-tab-item"><a href="/developer/tag/17197?entry=ask">互动问答<span class="num">(92)</span></a></li></ul></div><div class="com-tab-bd"><com class="com-tab-panel"><div class="com-article-panel-v2-list"><section class="com-article-panel-v2 higher"><a href="/developer/article/2473536" track-click="{"areaId":113001,"objectType":"article","objectId":2473536}" track-exposure="{"areaId":113001,"objectType":"article","objectId":2473536}" target="_blank" class="com-article-panel-v2-link"></a><div class="com-article-panel-v2-hd"><h3 class="com-article-panel-v2-title">【在Linux世界中追寻伟大的One Piece】读者写者问题与读写锁</h3><nav class="com-tag-v2-list com-article-panel-v2-tags"><a href="/developer/tag/17440?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":17440}" class="com-tag-v2">数据</a><a href="/developer/tag/17508?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":17508}" class="com-tag-v2">线程</a><a href="/developer/tag/10308?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":10308}" class="com-tag-v2">linux</a><a href="/developer/tag/17197?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":17197}" class="com-tag-v2">并发</a><a href="/developer/tag/17381?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":17381}" class="com-tag-v2">模型</a></nav></div><div class="com-article-panel-v2-bd"><div class="com-article-panel-v2-cnt"><div class="com-article-panel-v2-user-wrap"><div class="com-media com-user-infos"><a href="/developer/user/11145777" track-click="{"objectType":"user","objectId":11145777}" target="_blank" class="com-media-object"><span class="com-media-img" style="background-image:url(https://developer.qcloudimg.com/avatar/45777.png?imageView2/2/w/48/h/7000)"></span></a><div class="com-media-body"><a href="/developer/user/11145777" track-click="{"objectType":"user","objectId":11145777}" target="_blank" class="author-info name">枫叶丹</a><span class="author-info time"><time dateTime="2024-12-04 08:33:18" title="2024-12-04 08:33:18"> <span>1</span>天前<span class="com-v-box">2024-12-04 08:33:18</span></time></span></div></div></div><p class="com-article-panel-v2-des">通过对比可以看出,读者写者模型更适合于数据的并发读取,而生产消费者模型更适合于数据的生产和消费。在实际应用中,应根据具体的业务需求选择合适的模型。</p><div class="com-operations com-article-panel-v2-opt"><span class="com-opt-link link-view"><i class="com-i-view"></i>29</span><span class="com-opt-link link-like"><i class="com-i-like"></i>0</span><span class="com-opt-link link-comment"><i class="com-i-dialog"></i>0</span><span><a href="javascript:;" class="com-opt-link link-share" hotrep="community.tag.tag_detail.activities.article.2473536.sharing"><i class="com-i-share"></i></a><ul class="com-share-options"></ul></span></div></div></div></section><section class="com-article-panel-v2 higher"><a href="/developer/article/2473486" track-click="{"areaId":113001,"objectType":"article","objectId":2473486}" track-exposure="{"areaId":113001,"objectType":"article","objectId":2473486}" target="_blank" class="com-article-panel-v2-link"></a><div class="com-article-panel-v2-hd"><h3 class="com-article-panel-v2-title">高并发环境下诡异的加锁问题:明明加了锁,但还是出错了!</h3><nav class="com-tag-v2-list com-article-panel-v2-tags"><a href="/developer/tag/17188?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":17188}" class="com-tag-v2">变量</a><a href="/developer/tag/17197?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":17197}" class="com-tag-v2">并发</a><a href="/developer/tag/17248?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":17248}" class="com-tag-v2">对象</a><a href="/developer/tag/17270?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":17270}" class="com-tag-v2">高并发</a><a href="/developer/tag/17508?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":17508}" class="com-tag-v2">线程</a></nav></div><div class="com-article-panel-v2-bd"><div class="com-article-panel-v2-object"><span class="com-article-panel-v2-img" style="background-image:url(https://developer.qcloudimg.com/http-save/yehe-7851686/c13f6189c901077cb6fb70b8db09c2b6.jpg?imageView2/2/w/400/h/7000)"></span></div><div class="com-article-panel-v2-cnt"><div class="com-article-panel-v2-user-wrap"><div class="com-media com-user-infos"><a href="/developer/user/7851686" track-click="{"objectType":"user","objectId":7851686}" target="_blank" class="com-media-object"><span class="com-media-img" style="background-image:url(https://ask.qcloudimg.com/http-save/yehe-7851686/de429f77c68062b2ad736876dc42526a.jpeg?imageView2/2/w/48/h/7000)"></span></a><div class="com-media-body"><a href="/developer/user/7851686" track-click="{"objectType":"user","objectId":7851686}" target="_blank" class="author-info name">冰河</a><span class="author-info time"><time dateTime="2024-12-03 21:34:44" title="2024-12-03 21:34:44"> <span>1</span>天前<span class="com-v-box">2024-12-03 21:34:44</span></time></span></div></div></div><p class="com-article-panel-v2-des">很多网友留言说:在编写多线程并发程序时,我明明对共享资源加锁了啊?为什么还是出问题呢?问题到底出在哪里呢?其实,我想说的是:你的加锁姿势正确吗?你真的会使用锁吗...</p><div class="com-operations com-article-panel-v2-opt"><span class="com-opt-link link-view"><i class="com-i-view"></i>26</span><span class="com-opt-link link-like"><i class="com-i-like"></i>1</span><span class="com-opt-link link-comment"><i class="com-i-dialog"></i>0</span><span><a href="javascript:;" class="com-opt-link link-share" hotrep="community.tag.tag_detail.activities.article.2473486.sharing"><i class="com-i-share"></i></a><ul class="com-share-options"></ul></span></div></div></div></section><section class="com-article-panel-v2 higher"><a href="/developer/article/2472295" track-click="{"areaId":113001,"objectType":"article","objectId":2472295}" track-exposure="{"areaId":113001,"objectType":"article","objectId":2472295}" target="_blank" class="com-article-panel-v2-link"></a><div class="com-article-panel-v2-hd"><h3 class="com-article-panel-v2-title">2024年各编程语言运行100万个并发任务需要多少内存?</h3><nav class="com-tag-v2-list com-article-panel-v2-tags"><a href="/developer/tag/17215?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":17215}" class="com-tag-v2">程序</a><a href="/developer/tag/17382?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":17382}" class="com-tag-v2">内存</a><a href="/developer/tag/17185?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":17185}" class="com-tag-v2">编程语言</a><a href="/developer/tag/17197?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":17197}" class="com-tag-v2">并发</a><a href="/developer/tag/17205?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":17205}" class="com-tag-v2">测试</a></nav></div><div class="com-article-panel-v2-bd"><div class="com-article-panel-v2-object"><span class="com-article-panel-v2-img" style="background-image:url(https://developer.qcloudimg.com/http-save/yehe-1358501/226a94a11457d0a2bc46018f0e1d2d61.jpg?imageView2/2/w/400/h/7000)"></span></div><div class="com-article-panel-v2-cnt"><div class="com-article-panel-v2-user-wrap"><div class="com-media com-user-infos"><a href="/developer/user/1358501" track-click="{"objectType":"user","objectId":1358501}" target="_blank" class="com-media-object"><span class="com-media-img" style="background-image:url(https://ask.qcloudimg.com/http-save/yehe-1358501/50b1fd9fe568675e549688182095a455.jpg?imageView2/2/w/48/h/7000)"></span></a><div class="com-media-body"><a href="/developer/user/1358501" track-click="{"objectType":"user","objectId":1358501}" target="_blank" class="author-info name">InCerry</a><span class="author-info time"><time dateTime="2024-11-29 17:19:41" title="2024-11-29 17:19:41"> <span>5</span>天前<span class="com-v-box">2024-11-29 17:19:41</span></time></span></div></div></div><p class="com-article-panel-v2-des">在 Go 语言中,goroutine 是实现并发的关键。我们不需要逐个等待 goroutine ,而是通过 WaitGroup 来统一管理:</p><div class="com-operations com-article-panel-v2-opt"><span class="com-opt-link link-view"><i class="com-i-view"></i>129</span><span class="com-opt-link link-like"><i class="com-i-like"></i>1</span><span class="com-opt-link link-comment"><i class="com-i-dialog"></i>0</span><span><a href="javascript:;" class="com-opt-link link-share" hotrep="community.tag.tag_detail.activities.article.2472295.sharing"><i class="com-i-share"></i></a><ul class="com-share-options"></ul></span></div></div></div></section><section class="com-article-panel-v2 higher"><a href="/developer/article/2472247" track-click="{"areaId":113001,"objectType":"article","objectId":2472247}" track-exposure="{"areaId":113001,"objectType":"article","objectId":2472247}" target="_blank" class="com-article-panel-v2-link"></a><div class="com-article-panel-v2-hd"><h3 class="com-article-panel-v2-title">go map 原理与并发安全map</h3><nav class="com-tag-v2-list com-article-panel-v2-tags"><a href="/developer/tag/10665?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":10665}" class="com-tag-v2">存储</a><a href="/developer/tag/10799?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":10799}" class="com-tag-v2">安全</a><a href="/developer/tag/14586?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":14586}" class="com-tag-v2">map</a><a href="/developer/tag/17197?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":17197}" class="com-tag-v2">并发</a><a href="/developer/tag/17566?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":17566}" class="com-tag-v2">原理</a></nav></div><div class="com-article-panel-v2-bd"><div class="com-article-panel-v2-object"><span class="com-article-panel-v2-img" style="background-image:url(https://developer.qcloudimg.com/http-save/yehe-1140319/272ace7bbefbcd4946676e8375f78525.png?imageView2/2/w/400/h/7000)"></span></div><div class="com-article-panel-v2-cnt"><div class="com-article-panel-v2-user-wrap"><div class="com-media com-user-infos"><a href="/developer/user/1140319" track-click="{"objectType":"user","objectId":1140319}" target="_blank" class="com-media-object"><span class="com-media-img" style="background-image:url(https://ask.qcloudimg.com/avatar/1140319/xfcy0wbtqr.png?imageView2/2/w/48/h/7000)"></span></a><div class="com-media-body"><a href="/developer/user/1140319" track-click="{"objectType":"user","objectId":1140319}" target="_blank" class="author-info name">leobhao</a><div class="c-bubble-trigger com-verification"><i class="verified"></i><div class="c-bubble c-bubble-bottom"><div class="c-bubble-inner" style="padding:8px 10px"><p>腾讯云 | 后台开发工程师 (已认证)</p></div></div></div><span class="author-info time"><time dateTime="2024-11-29 15:13:11" title="2024-11-29 15:13:11"> <span>5</span>天前<span class="com-v-box">2024-11-29 15:13:11</span></time></span></div></div></div><p class="com-article-panel-v2-des">go map 整体和 java hashmap 差不多, 只是源码阅读的位置不太方便</p><div class="com-operations com-article-panel-v2-opt"><span class="com-opt-link link-view"><i class="com-i-view"></i>93</span><span class="com-opt-link link-like"><i class="com-i-like"></i>1</span><span class="com-opt-link link-comment"><i class="com-i-dialog"></i>0</span><span><a href="javascript:;" class="com-opt-link link-share" hotrep="community.tag.tag_detail.activities.article.2472247.sharing"><i class="com-i-share"></i></a><ul class="com-share-options"></ul></span></div></div></div></section><section class="com-article-panel-v2 higher"><a href="/developer/article/2471890" track-click="{"areaId":113001,"objectType":"article","objectId":2471890}" track-exposure="{"areaId":113001,"objectType":"article","objectId":2471890}" target="_blank" class="com-article-panel-v2-link"></a><div class="com-article-panel-v2-hd"><h3 class="com-article-panel-v2-title">redis锁和等待锁随机毫秒数解决程序调用方控制执行的先后顺序,避免并发操作造成的数据不一致</h3><nav class="com-tag-v2-list com-article-panel-v2-tags"><a href="/developer/tag/17329?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":17329}" class="com-tag-v2">接口</a><a href="/developer/tag/17440?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":17440}" class="com-tag-v2">数据</a><a href="/developer/tag/15645?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":15645}" class="com-tag-v2">redis</a><a href="/developer/tag/17197?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":17197}" class="com-tag-v2">并发</a><a href="/developer/tag/17215?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":17215}" class="com-tag-v2">程序</a></nav></div><div class="com-article-panel-v2-bd"><div class="com-article-panel-v2-cnt"><div class="com-article-panel-v2-user-wrap"><div class="com-media com-user-infos"><a href="/developer/user/9679348" track-click="{"objectType":"user","objectId":9679348}" target="_blank" class="com-media-object"><span class="com-media-img" style="background-image:url(https://developer.qcloudimg.com/http-save/10011/5c27bee623807f821661100a4241c944.jpg?imageView2/2/w/48/h/7000)"></span></a><div class="com-media-body"><a href="/developer/user/9679348" track-click="{"objectType":"user","objectId":9679348}" target="_blank" class="author-info name">oktokeep</a><span class="author-info time"><time dateTime="2024-11-28 09:11:05" title="2024-11-28 09:11:05"> <span>7</span>天前<span class="com-v-box">2024-11-28 09:11:05</span></time></span></div></div></div><p class="com-article-panel-v2-des">redis锁和等待锁随机毫秒数解决程序调用方控制执行的先后顺序,避免并发操作造成的数据不一致</p><div class="com-operations com-article-panel-v2-opt"><span class="com-opt-link link-view"><i class="com-i-view"></i>91</span><span class="com-opt-link link-like"><i class="com-i-like"></i>1</span><span class="com-opt-link link-comment"><i class="com-i-dialog"></i>0</span><span><a href="javascript:;" class="com-opt-link link-share" hotrep="community.tag.tag_detail.activities.article.2471890.sharing"><i class="com-i-share"></i></a><ul class="com-share-options"></ul></span></div></div></div></section><section class="com-article-panel-v2 higher"><a href="/developer/article/2471631" track-click="{"areaId":113001,"objectType":"article","objectId":2471631}" track-exposure="{"areaId":113001,"objectType":"article","objectId":2471631}" target="_blank" class="com-article-panel-v2-link"></a><div class="com-article-panel-v2-hd"><h3 class="com-article-panel-v2-title">原子性读取队列数据-lua脚本</h3><nav class="com-tag-v2-list com-article-panel-v2-tags"><a href="/developer/tag/10175?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":10175}" class="com-tag-v2">lua</a><a href="/developer/tag/15645?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":15645}" class="com-tag-v2">redis</a><a href="/developer/tag/17197?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":17197}" class="com-tag-v2">并发</a></nav></div><div class="com-article-panel-v2-bd"><div class="com-article-panel-v2-cnt"><div class="com-article-panel-v2-user-wrap"><div class="com-media com-user-infos"><a href="/developer/user/11347538" track-click="{"objectType":"user","objectId":11347538}" target="_blank" class="com-media-object"><span class="com-media-img" style="background-image:url(https://developer.qcloudimg.com/http-save/10011/2a88ee3fa606a8698ad76e05651cec9e.jpg?imageView2/2/w/48/h/7000)"></span></a><div class="com-media-body"><a href="/developer/user/11347538" track-click="{"objectType":"user","objectId":11347538}" target="_blank" class="author-info name">王宝</a><span class="author-info time"><time dateTime="2024-11-27 12:01:38" title="2024-11-27 12:01:38"> <span>7</span>天前<span class="com-v-box">2024-11-27 12:01:38</span></time></span></div></div></div><p class="com-article-panel-v2-des">生产者往redis队列中生产数据,多个消费者从该队列中消费消息,防止消费者重复从队列中获取相同消息</p><div class="com-operations com-article-panel-v2-opt"><span class="com-opt-link link-view"><i class="com-i-view"></i>84</span><span class="com-opt-link link-like"><i class="com-i-like"></i>1</span><span class="com-opt-link link-comment"><i class="com-i-dialog"></i>0</span><span><a href="javascript:;" class="com-opt-link link-share" hotrep="community.tag.tag_detail.activities.article.2471631.sharing"><i class="com-i-share"></i></a><ul class="com-share-options"></ul></span></div></div></div></section><section class="com-article-panel-v2 higher"><a href="/developer/article/2471206" track-click="{"areaId":113001,"objectType":"article","objectId":2471206}" track-exposure="{"areaId":113001,"objectType":"article","objectId":2471206}" target="_blank" class="com-article-panel-v2-link"></a><div class="com-article-panel-v2-hd"><h3 class="com-article-panel-v2-title">集合类你不知道的小知识</h3><nav class="com-tag-v2-list com-article-panel-v2-tags"><a href="/developer/tag/17457?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":17457}" class="com-tag-v2">数组</a><a href="/developer/tag/17540?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":17540}" class="com-tag-v2">异常</a><a href="/developer/tag/10649?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":10649}" class="com-tag-v2">容器</a><a href="/developer/tag/17197?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":17197}" class="com-tag-v2">并发</a><a href="/developer/tag/17303?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":17303}" class="com-tag-v2">集合</a></nav></div><div class="com-article-panel-v2-bd"><div class="com-article-panel-v2-object"><span class="com-article-panel-v2-img" style="background-image:url(https://developer.qcloudimg.com/http-save/yehe-11272335/3f2b964e57a8502c86dc4f46c6ca2169.png?imageView2/2/w/400/h/7000)"></span></div><div class="com-article-panel-v2-cnt"><div class="com-article-panel-v2-user-wrap"><div class="com-media com-user-infos"><a href="/developer/user/11272335" track-click="{"objectType":"user","objectId":11272335}" target="_blank" class="com-media-object"><span class="com-media-img" style="background-image:url(https://developer.qcloudimg.com/avatar/22335.png?imageView2/2/w/48/h/7000)"></span></a><div class="com-media-body"><a href="/developer/user/11272335" track-click="{"objectType":"user","objectId":11272335}" target="_blank" class="author-info name">ma布</a><span class="author-info time"><time dateTime="2024-11-26 12:20:11" title="2024-11-26 12:20:11"> <span>8</span>天前<span class="com-v-box">2024-11-26 12:20:11</span></time></span></div></div></div><p class="com-article-panel-v2-des">在系统设计中,快速失效(fail-fast)系统一种可以立即报告任何可能表明故障的情况的系统。快速失效系统通常设计用于停止正常操作,而不是试图继续可能存在缺陷的...</p><div class="com-operations com-article-panel-v2-opt"><span class="com-opt-link link-view"><i class="com-i-view"></i>77</span><span class="com-opt-link link-like"><i class="com-i-like"></i>1</span><span class="com-opt-link link-comment"><i class="com-i-dialog"></i>0</span><span><a href="javascript:;" class="com-opt-link link-share" hotrep="community.tag.tag_detail.activities.article.2471206.sharing"><i class="com-i-share"></i></a><ul class="com-share-options"></ul></span></div></div></div></section><section class="com-article-panel-v2 higher"><a href="/developer/article/2470305" track-click="{"areaId":113001,"objectType":"article","objectId":2470305}" track-exposure="{"areaId":113001,"objectType":"article","objectId":2470305}" target="_blank" class="com-article-panel-v2-link"></a><div class="com-article-panel-v2-hd"><h3 class="com-article-panel-v2-title">C#校验画布签名图片是否为空白</h3><nav class="com-tag-v2-list com-article-panel-v2-tags"><a href="/developer/tag/17204?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":17204}" class="com-tag-v2">操作系统</a><a href="/developer/tag/17337?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":17337}" class="com-tag-v2">开发</a><a href="/developer/tag/17470?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":17470}" class="com-tag-v2">统计</a><a href="/developer/tag/10171?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":10171}" class="com-tag-v2">c#</a><a href="/developer/tag/17197?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":17197}" class="com-tag-v2">并发</a></nav></div><div class="com-article-panel-v2-bd"><div class="com-article-panel-v2-object"><span class="com-article-panel-v2-img" style="background-image:url(https://developer.qcloudimg.com/http-save/yehe-6925087/01c9ae3d3dd85a6b0c593399afc94428.png?imageView2/2/w/400/h/7000)"></span></div><div class="com-article-panel-v2-cnt"><div class="com-article-panel-v2-user-wrap"><div class="com-media com-user-infos"><a href="/developer/user/6925087" track-click="{"objectType":"user","objectId":6925087}" target="_blank" class="com-media-object"><span class="com-media-img" style="background-image:url(https://ask.qcloudimg.com/random-avatar/6925087/fkeoandx6w.png)"></span></a><div class="com-media-body"><a href="/developer/user/6925087" track-click="{"objectType":"user","objectId":6925087}" target="_blank" class="author-info name">初九之潜龙勿用</a><span class="author-info time"><time dateTime="2024-11-24 08:56:41" title="2024-11-24 08:56:41"> <span>11</span>天前<span class="com-v-box">2024-11-24 08:56:41</span></time></span></div></div></div><p class="com-article-panel-v2-des">我的文章《C# WinForm实现画笔签名及解决MemoryBmp格式问题》主要介绍如何通过 C# WinForm 通过画布画笔实现手写签名,签名后的图片将根据...</p><div class="com-operations com-article-panel-v2-opt"><span class="com-opt-link link-view"><i class="com-i-view"></i>43</span><span class="com-opt-link link-like"><i class="com-i-like"></i>0</span><span class="com-opt-link link-comment"><i class="com-i-dialog"></i>0</span><span><a href="javascript:;" class="com-opt-link link-share" hotrep="community.tag.tag_detail.activities.article.2470305.sharing"><i class="com-i-share"></i></a><ul class="com-share-options"></ul></span></div></div></div></section><section class="com-article-panel-v2 higher"><a href="/developer/article/2470091" track-click="{"areaId":113001,"objectType":"article","objectId":2470091}" track-exposure="{"areaId":113001,"objectType":"article","objectId":2470091}" target="_blank" class="com-article-panel-v2-link"></a><div class="com-article-panel-v2-hd"><h3 class="com-article-panel-v2-title">10w 级的并发场景,JVM 有哪些方面值得优化呢?</h3><nav class="com-tag-v2-list com-article-panel-v2-tags"><a href="/developer/tag/17248?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":17248}" class="com-tag-v2">对象</a><a href="/developer/tag/17382?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":17382}" class="com-tag-v2">内存</a><a href="/developer/tag/17554?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":17554}" class="com-tag-v2">优化</a><a href="/developer/tag/10688?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":10688}" class="com-tag-v2">jvm</a><a href="/developer/tag/17197?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":17197}" class="com-tag-v2">并发</a></nav></div><div class="com-article-panel-v2-bd"><div class="com-article-panel-v2-object"><span class="com-article-panel-v2-img" style="background-image:url(https://developer.qcloudimg.com/http-save/yehe-2253892/29f9cd0c41c8a7ceabe82e6f9b3c2083.jpg?imageView2/2/w/400/h/7000)"></span></div><div class="com-article-panel-v2-cnt"><div class="com-article-panel-v2-user-wrap"><div class="com-media com-user-infos"><a href="/developer/user/2253892" track-click="{"objectType":"user","objectId":2253892}" target="_blank" class="com-media-object"><span class="com-media-img" style="background-image:url(https://developer.qcloudimg.com/http-save/10011/1b9c3652fd10c71666f670e276e212aa.jpg?imageView2/2/w/48/h/7000)"></span></a><div class="com-media-body"><a href="/developer/user/2253892" track-click="{"objectType":"user","objectId":2253892}" target="_blank" class="author-info name">码哥字节</a><span class="author-info time"><time dateTime="2024-11-23 15:33:17" title="2024-11-23 15:33:17"> <span>11</span>天前<span class="com-v-box">2024-11-23 15:33:17</span></time></span></div></div></div><p class="com-article-panel-v2-des">大家好,我是码哥,今天我们来简单聊一聊面试中常见的一个问题:要支持 10w 级以上的并发场景, JVM 有哪些方面值得优化呢?</p><div class="com-operations com-article-panel-v2-opt"><span class="com-opt-link link-view"><i class="com-i-view"></i>70</span><span class="com-opt-link link-like"><i class="com-i-like"></i>1</span><span class="com-opt-link link-comment"><i class="com-i-dialog"></i>0</span><span><a href="javascript:;" class="com-opt-link link-share" hotrep="community.tag.tag_detail.activities.article.2470091.sharing"><i class="com-i-share"></i></a><ul class="com-share-options"></ul></span></div></div></div></section><section class="com-article-panel-v2 higher"><a href="/developer/article/2469955" track-click="{"areaId":113001,"objectType":"article","objectId":2469955}" track-exposure="{"areaId":113001,"objectType":"article","objectId":2469955}" target="_blank" class="com-article-panel-v2-link"></a><div class="com-article-panel-v2-hd"><h3 class="com-article-panel-v2-title">Apache Hudi 从零到一:并发控制(七)</h3><nav class="com-tag-v2-list com-article-panel-v2-tags"><a href="/developer/tag/10314?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":10314}" class="com-tag-v2">apache</a><a href="/developer/tag/17197?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":17197}" class="com-tag-v2">并发</a><a href="/developer/tag/17264?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":17264}" class="com-tag-v2">服务</a><a href="/developer/tag/17346?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":17346}" class="com-tag-v2">客户端</a><a href="/developer/tag/17437?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":17437}" class="com-tag-v2">事务</a></nav></div><div class="com-article-panel-v2-bd"><div class="com-article-panel-v2-object"><span class="com-article-panel-v2-img" style="background-image:url(https://developer.qcloudimg.com/http-save/yehe-6853397/c2460e656ce4b45642de8e36f1be3f43.jpg?imageView2/2/w/400/h/7000)"></span></div><div class="com-article-panel-v2-cnt"><div class="com-article-panel-v2-user-wrap"><div class="com-media com-user-infos"><a href="/developer/user/6853397" track-click="{"objectType":"user","objectId":6853397}" target="_blank" class="com-media-object"><span class="com-media-img" style="background-image:url(https://ask.qcloudimg.com/http-save/yehe-6853397/38tred7eix.jpeg?imageView2/2/w/48/h/7000)"></span></a><div class="com-media-body"><a href="/developer/user/6853397" track-click="{"objectType":"user","objectId":6853397}" target="_blank" class="author-info name">ApacheHudi</a><span class="author-info time"><time dateTime="2024-11-23 12:57:47" title="2024-11-23 12:57:47"> <span>11</span>天前<span class="com-v-box">2024-11-23 12:57:47</span></time></span></div></div></div><p class="com-article-panel-v2-des">在前一篇文章中,我们通过对聚类过程和空间填充曲线的深入探讨,完成了对表服务的论述。基于在前几篇文章中所获取的知识,我们能够顺利地过渡到下一个主题:并发控制,具体...</p><div class="com-operations com-article-panel-v2-opt"><span class="com-opt-link link-view"><i class="com-i-view"></i>81</span><span class="com-opt-link link-like"><i class="com-i-like"></i>1</span><span class="com-opt-link link-comment"><i class="com-i-dialog"></i>0</span><span><a href="javascript:;" class="com-opt-link link-share" hotrep="community.tag.tag_detail.activities.article.2469955.sharing"><i class="com-i-share"></i></a><ul class="com-share-options"></ul></span></div></div></div></section><section class="com-article-panel-v2 higher"><a href="/developer/article/2469774" track-click="{"areaId":113001,"objectType":"article","objectId":2469774}" track-exposure="{"areaId":113001,"objectType":"article","objectId":2469774}" target="_blank" class="com-article-panel-v2-link"></a><div class="com-article-panel-v2-hd"><h3 class="com-article-panel-v2-title">肘子的 Swift 周报 #058| 运气眷顾耐心的人</h3><nav class="com-tag-v2-list com-article-panel-v2-tags"><a href="/developer/tag/17337?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":17337}" class="com-tag-v2">开发</a><a href="/developer/tag/17341?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":17341}" class="com-tag-v2">开发者</a><a href="/developer/tag/10160?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":10160}" class="com-tag-v2">swift</a><a href="/developer/tag/10576?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":10576}" class="com-tag-v2">渲染</a><a href="/developer/tag/17197?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":17197}" class="com-tag-v2">并发</a></nav></div><div class="com-article-panel-v2-bd"><div class="com-article-panel-v2-object"><span class="com-article-panel-v2-img" style="background-image:url(https://developer.qcloudimg.com/http-save/yehe-7250248/e50e94179811d8c9638ee8f4fdd38501.jpg?imageView2/2/w/400/h/7000)"></span></div><div class="com-article-panel-v2-cnt"><div class="com-article-panel-v2-user-wrap"><div class="com-media com-user-infos"><a href="/developer/user/7250248" track-click="{"objectType":"user","objectId":7250248}" target="_blank" class="com-media-object"><span class="com-media-img" style="background-image:url(https://developer.qcloudimg.com/http-save/10011/1d8ffaff2b0091a6e5c5fe62dd378422.jpg?imageView2/2/w/48/h/7000)"></span></a><div class="com-media-body"><a href="/developer/user/7250248" track-click="{"objectType":"user","objectId":7250248}" target="_blank" class="author-info name">东坡肘子</a><span class="author-info time"><time dateTime="2024-11-23 09:30:45" title="2024-11-23 09:30:45"> <span>12</span>天前<span class="com-v-box">2024-11-23 09:30:45</span></time></span></div></div></div><p class="com-article-panel-v2-des">家里的淋浴间出现了渗水情况。尽管漏水量很少,但这个问题已经困扰了一段时间。找来了一位经验丰富的维修师傅,他带着超声波和热成像两种漏水检测仪上门,却因渗水量太小无...</p><div class="com-operations com-article-panel-v2-opt"><span class="com-opt-link link-view"><i class="com-i-view"></i>47</span><span class="com-opt-link link-like"><i class="com-i-like"></i>0</span><span class="com-opt-link link-comment"><i class="com-i-dialog"></i>0</span><span><a href="javascript:;" class="com-opt-link link-share" hotrep="community.tag.tag_detail.activities.article.2469774.sharing"><i class="com-i-share"></i></a><ul class="com-share-options"></ul></span></div></div></div></section><section class="com-article-panel-v2 higher"><a href="/developer/article/2469772" track-click="{"areaId":113001,"objectType":"article","objectId":2469772}" track-exposure="{"areaId":113001,"objectType":"article","objectId":2469772}" target="_blank" class="com-article-panel-v2-link"></a><div class="com-article-panel-v2-hd"><h3 class="com-article-panel-v2-title">肘子的 Swift 周报 #056| Pixelmator 并购背后的思考</h3><nav class="com-tag-v2-list com-article-panel-v2-tags"><a href="/developer/tag/10160?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":10160}" class="com-tag-v2">swift</a><a href="/developer/tag/17197?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":17197}" class="com-tag-v2">并发</a><a href="/developer/tag/17337?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":17337}" class="com-tag-v2">开发</a><a href="/developer/tag/17341?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":17341}" class="com-tag-v2">开发者</a><a href="/developer/tag/17394?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":17394}" class="com-tag-v2">苹果</a></nav></div><div class="com-article-panel-v2-bd"><div class="com-article-panel-v2-object"><span class="com-article-panel-v2-img" style="background-image:url(https://developer.qcloudimg.com/http-save/yehe-7250248/9ed0250f235e902221da4bac2f3a4190.jpg?imageView2/2/w/400/h/7000)"></span></div><div class="com-article-panel-v2-cnt"><div class="com-article-panel-v2-user-wrap"><div class="com-media com-user-infos"><a href="/developer/user/7250248" track-click="{"objectType":"user","objectId":7250248}" target="_blank" class="com-media-object"><span class="com-media-img" style="background-image:url(https://developer.qcloudimg.com/http-save/10011/1d8ffaff2b0091a6e5c5fe62dd378422.jpg?imageView2/2/w/48/h/7000)"></span></a><div class="com-media-body"><a href="/developer/user/7250248" track-click="{"objectType":"user","objectId":7250248}" target="_blank" class="author-info name">东坡肘子</a><span class="author-info time"><time dateTime="2024-11-23 09:29:23" title="2024-11-23 09:29:23"> <span>12</span>天前<span class="com-v-box">2024-11-23 09:29:23</span></time></span></div></div></div><p class="com-article-panel-v2-des">Actor 模型由 Carl Hewitt 于 1973 年首次提出,这一突破性的并发计算模型此后深刻影响了诸多编程语言的发展。Swift 语言在 5.5 版本...</p><div class="com-operations com-article-panel-v2-opt"><span class="com-opt-link link-view"><i class="com-i-view"></i>65</span><span class="com-opt-link link-like"><i class="com-i-like"></i>0</span><span class="com-opt-link link-comment"><i class="com-i-dialog"></i>0</span><span><a href="javascript:;" class="com-opt-link link-share" hotrep="community.tag.tag_detail.activities.article.2469772.sharing"><i class="com-i-share"></i></a><ul class="com-share-options"></ul></span></div></div></div></section><section class="com-article-panel-v2 higher"><a href="/developer/article/2469406" track-click="{"areaId":113001,"objectType":"article","objectId":2469406}" track-exposure="{"areaId":113001,"objectType":"article","objectId":2469406}" target="_blank" class="com-article-panel-v2-link"></a><div class="com-article-panel-v2-hd"><h3 class="com-article-panel-v2-title">ConcurrentModificationException:检测到并发修改完美解决方法</h3><nav class="com-tag-v2-list com-article-panel-v2-tags"><a href="/developer/tag/17187?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":17187}" class="com-tag-v2">遍历</a><a href="/developer/tag/17197?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":17197}" class="com-tag-v2">并发</a><a href="/developer/tag/17303?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":17303}" class="com-tag-v2">集合</a><a href="/developer/tag/17509?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":17509}" class="com-tag-v2">线程安全</a><a href="/developer/tag/17540?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":17540}" class="com-tag-v2">异常</a></nav></div><div class="com-article-panel-v2-bd"><div class="com-article-panel-v2-cnt"><div class="com-article-panel-v2-user-wrap"><div class="com-media com-user-infos"><a href="/developer/user/11273182" track-click="{"objectType":"user","objectId":11273182}" target="_blank" class="com-media-object"><span class="com-media-img" style="background-image:url(https://developer.qcloudimg.com/http-save/10011/a5914666a9130f099bb59906285ff47d.jpg?imageView2/2/w/48/h/7000)"></span></a><div class="com-media-body"><a href="/developer/user/11273182" track-click="{"objectType":"user","objectId":11273182}" target="_blank" class="author-info name">默 语</a><span class="author-info time"><time dateTime="2024-11-22 11:42:13" title="2024-11-22 11:42:13"> <span>12</span>天前<span class="com-v-box">2024-11-22 11:42:13</span></time></span></div></div></div><p class="com-article-panel-v2-des">大家好,我是默语!在这篇文章中,我们将深入探讨Java中的ConcurrentModificationException,它是一种常见的运行时异常,通常在对集合...</p><div class="com-operations com-article-panel-v2-opt"><span class="com-opt-link link-view"><i class="com-i-view"></i>73</span><span class="com-opt-link link-like"><i class="com-i-like"></i>1</span><span class="com-opt-link link-comment"><i class="com-i-dialog"></i>0</span><span><a href="javascript:;" class="com-opt-link link-share" hotrep="community.tag.tag_detail.activities.article.2469406.sharing"><i class="com-i-share"></i></a><ul class="com-share-options"></ul></span></div></div></div></section><section class="com-article-panel-v2 higher"><a href="/developer/article/2469216" track-click="{"areaId":113001,"objectType":"article","objectId":2469216}" track-exposure="{"areaId":113001,"objectType":"article","objectId":2469216}" target="_blank" class="com-article-panel-v2-link"></a><div class="com-article-panel-v2-hd"><h3 class="com-article-panel-v2-title">Race Condition: 并发编程中的隐形杀手</h3><nav class="com-tag-v2-list com-article-panel-v2-tags"><a href="/developer/tag/16248?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":16248}" class="com-tag-v2">std</a><a href="/developer/tag/17197?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":17197}" class="com-tag-v2">并发</a><a href="/developer/tag/17198?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":17198}" class="com-tag-v2">并发编程</a><a href="/developer/tag/17276?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":17276}" class="com-tag-v2">工具</a><a href="/developer/tag/17508?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":17508}" class="com-tag-v2">线程</a></nav></div><div class="com-article-panel-v2-bd"><div class="com-article-panel-v2-cnt"><div class="com-article-panel-v2-user-wrap"><div class="com-media com-user-infos"><a href="/developer/user/11273182" track-click="{"objectType":"user","objectId":11273182}" target="_blank" class="com-media-object"><span class="com-media-img" style="background-image:url(https://developer.qcloudimg.com/http-save/10011/a5914666a9130f099bb59906285ff47d.jpg?imageView2/2/w/48/h/7000)"></span></a><div class="com-media-body"><a href="/developer/user/11273182" track-click="{"objectType":"user","objectId":11273182}" target="_blank" class="author-info name">默 语</a><span class="author-info time"><time dateTime="2024-11-22 10:14:23" title="2024-11-22 10:14:23"> <span>12</span>天前<span class="com-v-box">2024-11-22 10:14:23</span></time></span></div></div></div><p class="com-article-panel-v2-des">大家好,我是默语,擅长全栈开发、运维和人工智能技术。在这篇博客中,我们将深入探讨并发编程中的一个常见且危险的陷阱:Race Condition(竞争条件)。Ra...</p><div class="com-operations com-article-panel-v2-opt"><span class="com-opt-link link-view"><i class="com-i-view"></i>41</span><span class="com-opt-link link-like"><i class="com-i-like"></i>0</span><span class="com-opt-link link-comment"><i class="com-i-dialog"></i>0</span><span><a href="javascript:;" class="com-opt-link link-share" hotrep="community.tag.tag_detail.activities.article.2469216.sharing"><i class="com-i-share"></i></a><ul class="com-share-options"></ul></span></div></div></div></section><section class="com-article-panel-v2 higher"><a href="/developer/article/2469211" track-click="{"areaId":113001,"objectType":"article","objectId":2469211}" track-exposure="{"areaId":113001,"objectType":"article","objectId":2469211}" target="_blank" class="com-article-panel-v2-link"></a><div class="com-article-panel-v2-hd"><h3 class="com-article-panel-v2-title">Data Race: 并发编程中的数据竞争问题</h3><nav class="com-tag-v2-list com-article-panel-v2-tags"><a href="/developer/tag/17276?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":17276}" class="com-tag-v2">工具</a><a href="/developer/tag/17440?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":17440}" class="com-tag-v2">数据</a><a href="/developer/tag/12897?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":12897}" class="com-tag-v2">data</a><a href="/developer/tag/17197?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":17197}" class="com-tag-v2">并发</a><a href="/developer/tag/17198?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":17198}" class="com-tag-v2">并发编程</a></nav></div><div class="com-article-panel-v2-bd"><div class="com-article-panel-v2-cnt"><div class="com-article-panel-v2-user-wrap"><div class="com-media com-user-infos"><a href="/developer/user/11273182" track-click="{"objectType":"user","objectId":11273182}" target="_blank" class="com-media-object"><span class="com-media-img" style="background-image:url(https://developer.qcloudimg.com/http-save/10011/a5914666a9130f099bb59906285ff47d.jpg?imageView2/2/w/48/h/7000)"></span></a><div class="com-media-body"><a href="/developer/user/11273182" track-click="{"objectType":"user","objectId":11273182}" target="_blank" class="author-info name">默 语</a><span class="author-info time"><time dateTime="2024-11-22 10:12:49" title="2024-11-22 10:12:49"> <span>12</span>天前<span class="com-v-box">2024-11-22 10:12:49</span></time></span></div></div></div><p class="com-article-panel-v2-des">大家好,我是默语,专注于全栈开发、运维和人工智能技术。在这篇博客中,我们将详细探讨“数据竞争”(Data Race),这是并发编程中常见而棘手的问题。我们将介绍...</p><div class="com-operations com-article-panel-v2-opt"><span class="com-opt-link link-view"><i class="com-i-view"></i>72</span><span class="com-opt-link link-like"><i class="com-i-like"></i>1</span><span class="com-opt-link link-comment"><i class="com-i-dialog"></i>0</span><span><a href="javascript:;" class="com-opt-link link-share" hotrep="community.tag.tag_detail.activities.article.2469211.sharing"><i class="com-i-share"></i></a><ul class="com-share-options"></ul></span></div></div></div></section><section class="com-article-panel-v2 higher"><a href="/developer/article/2469119" track-click="{"areaId":113001,"objectType":"article","objectId":2469119}" track-exposure="{"areaId":113001,"objectType":"article","objectId":2469119}" target="_blank" class="com-article-panel-v2-link"></a><div class="com-article-panel-v2-hd"><h3 class="com-article-panel-v2-title">Java 并发和线程处理</h3><nav class="com-tag-v2-list com-article-panel-v2-tags"><a href="/developer/tag/17508?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":17508}" class="com-tag-v2">线程</a><a href="/developer/tag/17509?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":17509}" class="com-tag-v2">线程安全</a><a href="/developer/tag/10164?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":10164}" class="com-tag-v2">java</a><a href="/developer/tag/17197?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":17197}" class="com-tag-v2">并发</a><a href="/developer/tag/17469?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":17469}" class="com-tag-v2">同步</a></nav></div><div class="com-article-panel-v2-bd"><div class="com-article-panel-v2-cnt"><div class="com-article-panel-v2-user-wrap"><div class="com-media com-user-infos"><a href="/developer/user/11273182" track-click="{"objectType":"user","objectId":11273182}" target="_blank" class="com-media-object"><span class="com-media-img" style="background-image:url(https://developer.qcloudimg.com/http-save/10011/a5914666a9130f099bb59906285ff47d.jpg?imageView2/2/w/48/h/7000)"></span></a><div class="com-media-body"><a href="/developer/user/11273182" track-click="{"objectType":"user","objectId":11273182}" target="_blank" class="author-info name">默 语</a><span class="author-info time"><time dateTime="2024-11-22 08:51:23" title="2024-11-22 08:51:23"> <span>13</span>天前<span class="com-v-box">2024-11-22 08:51:23</span></time></span></div></div></div><p class="com-article-panel-v2-des">并发编程是 Java 开发中的一个重要领域,能够让程序同时执行多个任务,提高程序的执行效率。然而,并发编程也带来了线程安全性和死锁等问题,正确处理这些问题是每个...</p><div class="com-operations com-article-panel-v2-opt"><span class="com-opt-link link-view"><i class="com-i-view"></i>99</span><span class="com-opt-link link-like"><i class="com-i-like"></i>1</span><span class="com-opt-link link-comment"><i class="com-i-dialog"></i>0</span><span><a href="javascript:;" class="com-opt-link link-share" hotrep="community.tag.tag_detail.activities.article.2469119.sharing"><i class="com-i-share"></i></a><ul class="com-share-options"></ul></span></div></div></div></section><section class="com-article-panel-v2 higher"><a href="/developer/article/2468969" track-click="{"areaId":113001,"objectType":"article","objectId":2468969}" track-exposure="{"areaId":113001,"objectType":"article","objectId":2468969}" target="_blank" class="com-article-panel-v2-link"></a><div class="com-article-panel-v2-hd"><h3 class="com-article-panel-v2-title">QPS 和并发测试</h3><nav class="com-tag-v2-list com-article-panel-v2-tags"><a href="/developer/tag/17525?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":17525}" class="com-tag-v2">性能</a><a href="/developer/tag/17898?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":17898}" class="com-tag-v2">并发测试</a><a href="/developer/tag/17197?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":17197}" class="com-tag-v2">并发</a><a href="/developer/tag/17205?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":17205}" class="com-tag-v2">测试</a><a href="/developer/tag/17508?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":17508}" class="com-tag-v2">线程</a></nav></div><div class="com-article-panel-v2-bd"><div class="com-article-panel-v2-cnt"><div class="com-article-panel-v2-user-wrap"><div class="com-media com-user-infos"><a href="/developer/user/3850389" track-click="{"objectType":"user","objectId":3850389}" target="_blank" class="com-media-object"><span class="com-media-img" style="background-image:url(https://ask.qcloudimg.com/http-save/yehe-3850389/0392660a346db7e5d83681e1051690bb.jpg?imageView2/2/w/48/h/7000)"></span></a><div class="com-media-body"><a href="/developer/user/3850389" track-click="{"objectType":"user","objectId":3850389}" target="_blank" class="author-info name">chuchur</a><span class="author-info time"><time dateTime="2024-11-21 18:31:43" title="2024-11-21 18:31:43"> <span>13</span>天前<span class="com-v-box">2024-11-21 18:31:43</span></time></span></div></div></div><p class="com-article-panel-v2-des">要测试 http 应用的 QPS(每秒请求数)和并发性能,你可以使用 wrk、ab(Apache Benchmark)、或 hey 等工具。下面介绍如何使用这些...</p><div class="com-operations com-article-panel-v2-opt"><span class="com-opt-link link-view"><i class="com-i-view"></i>90</span><span class="com-opt-link link-like"><i class="com-i-like"></i>1</span><span class="com-opt-link link-comment"><i class="com-i-dialog"></i>0</span><span><a href="javascript:;" class="com-opt-link link-share" hotrep="community.tag.tag_detail.activities.article.2468969.sharing"><i class="com-i-share"></i></a><ul class="com-share-options"></ul></span></div></div></div></section><section class="com-article-panel-v2 higher"><a href="/developer/article/2468681" track-click="{"areaId":113001,"objectType":"article","objectId":2468681}" track-exposure="{"areaId":113001,"objectType":"article","objectId":2468681}" target="_blank" class="com-article-panel-v2-link"></a><div class="com-article-panel-v2-hd"><h3 class="com-article-panel-v2-title">【操作系统不挂科】<忙等待互斥(10)>选择题&简答题(带答案与解析)</h3><nav class="com-tag-v2-list com-article-panel-v2-tags"><a href="/developer/tag/17200?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":17200}" class="com-tag-v2">博客</a><a href="/developer/tag/17204?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":17204}" class="com-tag-v2">操作系统</a><a href="/developer/tag/17332?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":17332}" class="com-tag-v2">进程</a><a href="/developer/tag/17506?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":17506}" class="com-tag-v2">系统</a><a href="/developer/tag/17197?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":17197}" class="com-tag-v2">并发</a></nav></div><div class="com-article-panel-v2-bd"><div class="com-article-panel-v2-object"><span class="com-article-panel-v2-img" style="background-image:url(https://developer.qcloudimg.com/http-save/yehe-10923987/0044e9a03e8243aecbf4fcb524fb0c2c.png?imageView2/2/w/400/h/7000)"></span></div><div class="com-article-panel-v2-cnt"><div class="com-article-panel-v2-user-wrap"><div class="com-media com-user-infos"><a href="/developer/user/10923987" track-click="{"objectType":"user","objectId":10923987}" target="_blank" class="com-media-object"><span class="com-media-img" style="background-image:url(https://developer.qcloudimg.com/avatar/23987.png?imageView2/2/w/48/h/7000)"></span></a><div class="com-media-body"><a href="/developer/user/10923987" track-click="{"objectType":"user","objectId":10923987}" target="_blank" class="author-info name">YY的秘密代码小屋</a><span class="author-info time"><time dateTime="2024-11-21 12:53:28" title="2024-11-21 12:53:28"> <span>13</span>天前<span class="com-v-box">2024-11-21 12:53:28</span></time></span></div></div></div><p class="com-article-panel-v2-des">则并发执行进程P0和P1时产生的情况是( ) A.不能保证进程互斥进入临界区,会出现“饥饿”现象 B.不能保证进程互斥进入临界区,不会出现“饥饿”现象 C...</p><div class="com-operations com-article-panel-v2-opt"><span class="com-opt-link link-view"><i class="com-i-view"></i>45</span><span class="com-opt-link link-like"><i class="com-i-like"></i>1</span><span class="com-opt-link link-comment"><i class="com-i-dialog"></i>0</span><span><a href="javascript:;" class="com-opt-link link-share" hotrep="community.tag.tag_detail.activities.article.2468681.sharing"><i class="com-i-share"></i></a><ul class="com-share-options"></ul></span></div></div></div></section><section class="com-article-panel-v2 higher"><a href="/developer/article/2467826" track-click="{"areaId":113001,"objectType":"article","objectId":2467826}" track-exposure="{"areaId":113001,"objectType":"article","objectId":2467826}" target="_blank" class="com-article-panel-v2-link"></a><div class="com-article-panel-v2-hd"><h3 class="com-article-panel-v2-title">Java JDK 21特性大揭秘:发挥最大潜力的秘诀</h3><nav class="com-tag-v2-list com-article-panel-v2-tags"><a href="/developer/tag/17354?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":17354}" class="com-tag-v2">垃圾回收</a><a href="/developer/tag/17525?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":17525}" class="com-tag-v2">性能</a><a href="/developer/tag/10164?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":10164}" class="com-tag-v2">java</a><a href="/developer/tag/10685?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":10685}" class="com-tag-v2">jdk</a><a href="/developer/tag/17197?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":17197}" class="com-tag-v2">并发</a></nav></div><div class="com-article-panel-v2-bd"><div class="com-article-panel-v2-object"><span class="com-article-panel-v2-img" style="background-image:url(https://developer.qcloudimg.com/http-save/yehe-11273182/ec1aff28c3cc23fedfa9ee8dafe0d38d.png?imageView2/2/w/400/h/7000)"></span></div><div class="com-article-panel-v2-cnt"><div class="com-article-panel-v2-user-wrap"><div class="com-media com-user-infos"><a href="/developer/user/11273182" track-click="{"objectType":"user","objectId":11273182}" target="_blank" class="com-media-object"><span class="com-media-img" style="background-image:url(https://developer.qcloudimg.com/http-save/10011/a5914666a9130f099bb59906285ff47d.jpg?imageView2/2/w/48/h/7000)"></span></a><div class="com-media-body"><a href="/developer/user/11273182" track-click="{"objectType":"user","objectId":11273182}" target="_blank" class="author-info name">默 语</a><span class="author-info time"><time dateTime="2024-11-20 14:47:41" title="2024-11-20 14:47:41"> <span>14</span>天前<span class="com-v-box">2024-11-20 14:47:41</span></time></span></div></div></div><p class="com-article-panel-v2-des">JDK 21 引入了显著的并发性能提升。我们将深入研究新的并发库和工具,展示如何构建高性能的多线程应用程序。</p><div class="com-operations com-article-panel-v2-opt"><span class="com-opt-link link-view"><i class="com-i-view"></i>85</span><span class="com-opt-link link-like"><i class="com-i-like"></i>1</span><span class="com-opt-link link-comment"><i class="com-i-dialog"></i>0</span><span><a href="javascript:;" class="com-opt-link link-share" hotrep="community.tag.tag_detail.activities.article.2467826.sharing"><i class="com-i-share"></i></a><ul class="com-share-options"></ul></span></div></div></div></section><section class="com-article-panel-v2 higher"><a href="/developer/article/2467825" track-click="{"areaId":113001,"objectType":"article","objectId":2467825}" track-exposure="{"areaId":113001,"objectType":"article","objectId":2467825}" target="_blank" class="com-article-panel-v2-link"></a><div class="com-article-panel-v2-hd"><h3 class="com-article-panel-v2-title">Java JDK 21新特性:开发者的竞争优势深度剖析</h3><nav class="com-tag-v2-list com-article-panel-v2-tags"><a href="/developer/tag/17525?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":17525}" class="com-tag-v2">性能</a><a href="/developer/tag/10164?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":10164}" class="com-tag-v2">java</a><a href="/developer/tag/10685?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":10685}" class="com-tag-v2">jdk</a><a href="/developer/tag/17197?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":17197}" class="com-tag-v2">并发</a><a href="/developer/tag/17341?entry=article" track-click="{"areaId":113001,"objectType":"tag","objectId":17341}" class="com-tag-v2">开发者</a></nav></div><div class="com-article-panel-v2-bd"><div class="com-article-panel-v2-object"><span class="com-article-panel-v2-img" style="background-image:url(https://developer.qcloudimg.com/http-save/yehe-11273182/4b68c7c8e4b19142c87bea5ccd1327ec.png?imageView2/2/w/400/h/7000)"></span></div><div class="com-article-panel-v2-cnt"><div class="com-article-panel-v2-user-wrap"><div class="com-media com-user-infos"><a href="/developer/user/11273182" track-click="{"objectType":"user","objectId":11273182}" target="_blank" class="com-media-object"><span class="com-media-img" style="background-image:url(https://developer.qcloudimg.com/http-save/10011/a5914666a9130f099bb59906285ff47d.jpg?imageView2/2/w/48/h/7000)"></span></a><div class="com-media-body"><a href="/developer/user/11273182" track-click="{"objectType":"user","objectId":11273182}" target="_blank" class="author-info name">默 语</a><span class="author-info time"><time dateTime="2024-11-20 14:47:17" title="2024-11-20 14:47:17"> <span>14</span>天前<span class="com-v-box">2024-11-20 14:47:17</span></time></span></div></div></div><p class="com-article-panel-v2-des">JDK 21 带来了显著的并发性能提升。我们将深入研究新的并发库和工具,以及如何利用它们构建高性能的多线程应用程序。让 Java 在并发领域大放异彩!</p><div class="com-operations com-article-panel-v2-opt"><span class="com-opt-link link-view"><i class="com-i-view"></i>76</span><span class="com-opt-link link-like"><i class="com-i-like"></i>1</span><span class="com-opt-link link-comment"><i class="com-i-dialog"></i>0</span><span><a href="javascript:;" class="com-opt-link link-share" hotrep="community.tag.tag_detail.activities.article.2467825.sharing"><i class="com-i-share"></i></a><ul class="com-share-options"></ul></span></div></div></div></section></div><div><div class="c-loading c-loading-tip"><div class="c-loading-inner"><div class="one"></div><div class="two"></div><div class="three"></div></div></div></div></com></div></div></div><div class="layout-side" track-click="" track-exposure=""><div class="com-2-section side"><header class="com-2-section-hd"><h2 class="com-2-section-title without-icon"><span><em>相关</em>产品</span></h2></header><div class="com-2-section-bd"><ul class="com-side-products"><li class="panel-cell"><div class="com-side-product"><a href="" target="_blank" class="panel-link"></a><header class="com-side-product-hd"><div class="com-side-product-object"><img src="//cloudcache.tencent-cloud.com/qcloud/developer/images/release/team/product-default-icon.v1.svg" alt=""/></div><h3 class="com-side-product-title"></h3></header><p class="com-side-product-desc"></p></div></li></ul></div></div><div class="com-2-section side"><header class="com-2-section-hd"><h2 class="com-2-section-title without-icon"><span><em>热门</em>专栏</span></h2></header><div class="com-2-section-bd"><div class="com-side-column-panels-wrap"><div class="com-side-column-panels-cnt"><ul track-click="{"areaId":113004}" track-exposure="{"areaId":113004}" class="com-side-column-panels"><li class="panel-cell"><a href="/developer/column/1037" trackClick="{"objectType":"column","objectId":1037}" class="com-media com-side-column-panel"><div class="com-media-object"><span class="com-2-avatar"><span class="com-2-avatar-inner" style="background-image:url(https://ask.qcloudimg.com/http-save/yehe-988670/ea6mqodskk.jpeg?imageView2/2/w/76/h/7000)"></span></span></div><div class="com-media-body"><h3 class="com-side-column-panel-title">腾讯云 DNSPod 团队</h3><div class="com-side-column-panel-infos"><div class="com-datas"><span class="com-data">743 文章</span><span class="com-data">54 订阅</span></div></div></div></a></li><li class="panel-cell"><a href="/developer/column/1196" trackClick="{"objectType":"column","objectId":1196}" class="com-media com-side-column-panel"><div class="com-media-object"><span class="com-2-avatar"><span class="com-2-avatar-inner" style="background-image:url(https://ask.qcloudimg.com/http-save/yehe-1000057/m05e54frjv.jpeg?imageView2/2/w/76/h/7000)"></span></span></div><div class="com-media-body"><h3 class="com-side-column-panel-title">Tencent Serverless 官方专栏</h3><div class="com-side-column-panel-infos"><div class="com-datas"><span class="com-data">522 文章</span><span class="com-data">438 订阅</span></div></div></div></a></li><li class="panel-cell"><a href="/developer/column/1200" trackClick="{"objectType":"column","objectId":1200}" class="com-media com-side-column-panel"><div class="com-media-object"><span class="com-2-avatar"><span class="com-2-avatar-inner" style="background-image:url(https://developer.qcloudimg.com/http-save/10011/974516aa930ae184bc0eef3f27102d3e.jpg?imageView2/2/w/76/h/7000)"></span></span></div><div class="com-media-body"><h3 class="com-side-column-panel-title">贤羽的前端小栈</h3><div class="com-side-column-panel-infos"><div class="com-datas"><span class="com-data">31 文章</span><span class="com-data">16 订阅</span></div></div></div></a></li><li class="panel-cell"><a href="/developer/column/1283" trackClick="{"objectType":"column","objectId":1283}" class="com-media com-side-column-panel"><div class="com-media-object"><span class="com-2-avatar"><span class="com-2-avatar-inner" style="background-image:url(https://ask.qcloudimg.com/http-save/yehe-170434/568f3e8410f6654284c65b8e886345e3.png?imageView2/2/w/76/h/7000)"></span></span></div><div class="com-media-body"><h3 class="com-side-column-panel-title">腾讯技术工程官方号的专栏</h3><div class="com-side-column-panel-infos"><div class="com-datas"><span class="com-data">1.1K 文章</span><span class="com-data">912 订阅</span></div></div></div></a></li></ul></div></div></div></div></div></div></div><div class="cdc-footer J-footer com-2-footer"><div class="cdc-footer__inner"><div class="cdc-footer__main"><div class="cdc-footer__website"><ul class="cdc-footer__website-group"><li class="cdc-footer__website-column"><div class="cdc-footer__website-box"><h3 class="cdc-footer__website-title">社区</h3><ul class="cdc-footer__website-list"><li class="cdc-footer__website-item"><a href="/developer/column">专栏文章</a></li><li class="cdc-footer__website-item"><a href="/developer/inventory">阅读清单</a></li><li class="cdc-footer__website-item"><a href="/developer/ask">互动问答</a></li><li class="cdc-footer__website-item"><a href="/developer/salon">技术沙龙</a></li><li class="cdc-footer__website-item"><a href="/developer/video">技术视频</a></li><li class="cdc-footer__website-item"><a href="/developer/teams">团队主页</a></li><li class="cdc-footer__website-item"><a href="/developer/timl">腾讯云TI平台</a></li></ul></div></li><li class="cdc-footer__website-column"><div class="cdc-footer__website-box"><h3 class="cdc-footer__website-title">活动</h3><ul class="cdc-footer__website-list"><li class="cdc-footer__website-item"><a href="/developer/support-plan">自媒体同步曝光计划</a></li><li class="cdc-footer__website-item"><a href="/developer/support-plan-invitation">邀请作者入驻</a></li><li class="cdc-footer__website-item"><a href="/developer/article/1535830">自荐上首页</a></li><li class="cdc-footer__website-item"><a href="/developer/competition">技术竞赛</a></li></ul></div></li><li class="cdc-footer__website-column"><div class="cdc-footer__website-box"><h3 class="cdc-footer__website-title">资源</h3><ul class="cdc-footer__website-list"><li class="cdc-footer__website-item"><a href="/developer/specials">技术周刊</a></li><li class="cdc-footer__website-item"><a href="/developer/tags">社区标签</a></li><li class="cdc-footer__website-item"><a href="/developer/devdocs">开发者手册</a></li><li class="cdc-footer__website-item"><a href="/lab?from=20064&from_column=20064">开发者实验室</a></li></ul></div></li><li class="cdc-footer__website-column"><div class="cdc-footer__website-box"><h3 class="cdc-footer__website-title">关于</h3><ul class="cdc-footer__website-list"><li class="cdc-footer__website-item"><a rel="nofollow" href="/developer/article/1006434">社区规范</a></li><li class="cdc-footer__website-item"><a rel="nofollow" href="/developer/article/1006435">免责声明</a></li><li class="cdc-footer__website-item"><a rel="nofollow" href="mailto:cloudcommunity@tencent.com">联系我们</a></li><li class="cdc-footer__website-item"><a rel="nofollow" href="/developer/friendlink">友情链接</a></li></ul></div></li></ul></div><div class="cdc-footer__qr"><h3 class="cdc-footer__qr-title">腾讯云开发者</h3><div class="cdc-footer__qr-object"><img class="cdc-footer__qr-image" src="https://qcloudimg.tencent-cloud.cn/raw/a8907230cd5be483497c7e90b061b861.png" alt="扫码关注腾讯云开发者"/></div><div class="cdc-footer__qr-infos"><p class="cdc-footer__qr-info"><span class="cdc-footer__qr-text">扫码关注腾讯云开发者</span></p><p class="cdc-footer__qr-info"><span class="cdc-footer__qr-text">领取腾讯云代金券</span></p></div></div></div><div class="cdc-footer__recommend"><div class="cdc-footer__recommend-rows"><div class="cdc-footer__recommend-cell"><h3 class="cdc-footer__recommend-title">热门产品</h3><div class="cdc-footer__recommend-wrap"><ul class="cdc-footer__recommend-list"><li class="cdc-footer__recommend-item"><a class="com-2-footer-recommend-link" href="https://dnspod.cloud.tencent.com?from=20064&from_column=20064">域名注册</a></li><li class="cdc-footer__recommend-item"><a class="com-2-footer-recommend-link" href="/product/cvm?from=20064&from_column=20064">云服务器</a></li><li class="cdc-footer__recommend-item"><a class="com-2-footer-recommend-link" href="/product/tbaas?from=20064&from_column=20064">区块链服务</a></li><li class="cdc-footer__recommend-item"><a class="com-2-footer-recommend-link" href="/product/mq?from=20064&from_column=20064">消息队列</a></li><li class="cdc-footer__recommend-item"><a class="com-2-footer-recommend-link" href="/product/dsa?from=20064&from_column=20064">网络加速</a></li><li class="cdc-footer__recommend-item"><a class="com-2-footer-recommend-link" href="/product/tencentdb-catalog?from=20064&from_column=20064">云数据库</a></li><li class="cdc-footer__recommend-item"><a class="com-2-footer-recommend-link" href="/product/cns?from=20064&from_column=20064">域名解析</a></li><li class="cdc-footer__recommend-item"><a class="com-2-footer-recommend-link" href="/product/cos?from=20064&from_column=20064">云存储</a></li><li class="cdc-footer__recommend-item"><a class="com-2-footer-recommend-link" href="/product/css?from=20064&from_column=20064">视频直播</a></li></ul></div></div><div class="cdc-footer__recommend-cell"><h3 class="cdc-footer__recommend-title">热门推荐</h3><div class="cdc-footer__recommend-wrap"><ul class="cdc-footer__recommend-list"><li class="cdc-footer__recommend-item"><a class="com-2-footer-recommend-link" href="/product/facerecognition?from=20064&from_column=20064">人脸识别</a></li><li class="cdc-footer__recommend-item"><a class="com-2-footer-recommend-link" href="/product/tm?from=20064&from_column=20064">腾讯会议</a></li><li class="cdc-footer__recommend-item"><a class="com-2-footer-recommend-link" href="/act/pro/enterprise2019?from=20064&from_column=20064">企业云</a></li><li class="cdc-footer__recommend-item"><a class="com-2-footer-recommend-link" href="/product/cdn-scd?from=20064&from_column=20064">CDN加速</a></li><li class="cdc-footer__recommend-item"><a class="com-2-footer-recommend-link" href="/product/trtc?from=20064&from_column=20064">视频通话</a></li><li class="cdc-footer__recommend-item"><a class="com-2-footer-recommend-link" href="/product/tiia?from=20064&from_column=20064">图像分析</a></li><li class="cdc-footer__recommend-item"><a class="com-2-footer-recommend-link" href="/product/cdb?from=20064&from_column=20064">MySQL 数据库</a></li><li class="cdc-footer__recommend-item"><a class="com-2-footer-recommend-link" href="/product/symantecssl?from=20064&from_column=20064">SSL 证书</a></li><li class="cdc-footer__recommend-item"><a class="com-2-footer-recommend-link" href="/product/asr?from=20064&from_column=20064">语音识别</a></li></ul></div></div><div class="cdc-footer__recommend-cell"><h3 class="cdc-footer__recommend-title">更多推荐</h3><div class="cdc-footer__recommend-wrap"><ul class="cdc-footer__recommend-list"><li class="cdc-footer__recommend-item"><a class="com-2-footer-recommend-link" href="/solution/data_protection?from=20064&from_column=20064">数据安全</a></li><li class="cdc-footer__recommend-item"><a class="com-2-footer-recommend-link" href="/product/clb?from=20064&from_column=20064">负载均衡</a></li><li class="cdc-footer__recommend-item"><a class="com-2-footer-recommend-link" href="/product/sms?from=20064&from_column=20064">短信</a></li><li class="cdc-footer__recommend-item"><a class="com-2-footer-recommend-link" href="/product/ocr?from=20064&from_column=20064">文字识别</a></li><li class="cdc-footer__recommend-item"><a class="com-2-footer-recommend-link" href="/product/vod?from=20064&from_column=20064">云点播</a></li><li class="cdc-footer__recommend-item"><a class="com-2-footer-recommend-link" href="https://tm.cloud.tencent.com?from=20064&from_column=20064">商标注册</a></li><li class="cdc-footer__recommend-item"><a class="com-2-footer-recommend-link" href="/solution/la?from=20064&from_column=20064">小程序开发</a></li><li class="cdc-footer__recommend-item"><a class="com-2-footer-recommend-link" href="/product/cat?from=20064&from_column=20064">网站监控</a></li><li class="cdc-footer__recommend-item"><a class="com-2-footer-recommend-link" href="/product/cdm?from=20064&from_column=20064">数据迁移</a></li></ul></div></div></div></div><div class="cdc-footer__copyright"><div class="cdc-footer__copyright-text"><p>Copyright © 2013 - <!-- -->2024<!-- --> Tencent Cloud. All Rights Reserved. 腾讯云 版权所有<!-- --> </p><p>深圳市腾讯计算机系统有限公司 ICP备案/许可证号:<a href="https://beian.miit.gov.cn/#/Integrated/index" target="_blank">粤B2-20090059<!-- --> </a><a href="https://www.beian.gov.cn/portal/index.do" target="_blank">深公网安备号 44030502008569</a></p><p>腾讯云计算(北京)有限责任公司 京ICP证150476号 | <!-- --> <a href="https://beian.miit.gov.cn/#/Integrated/index" target="_blank">京ICP备11018762号</a> | <!-- --> <a href="https://www.beian.gov.cn/portal/index.do" target="_blank">京公网安备号11010802020287</a></p></div></div></div></div></div><div class="com-widget-global"><div style="position:relative;z-index:8088"><div class="com-widget-global2"><div class="com-widget-global2__btn code"><div class="com-widget-global2__btn-tag">领券</div></div><div class="com-widget-global2__btn top" style="visibility:hidden"></div></div></div></div><div id="dialog-root"></div><div id="rno-dialog-root" class="rno-modal-wrap"></div></div><script>window.isServerContext = false; window.isClientContext = true;</script><script>window.$serverTime = 1733362383073; window.$clientTime = 1733362383073;</script><script class="">window.$ua = {"browser":{"name":"IE","version":"7.0","major":"7"},"cpu":{},"device":{},"engine":{},"os":{"name":"Windows","version":"Vista"}};</script><script src="//cloudcache.tencent-cloud.com/qcloud/developer/scripts/release/libs/dom4/1.8.3/dom4.js"></script><script src="https://cloudcache.tencent-cloud.com/qcloud/main/scripts/release/common/vendors/babel/polyfill.6.26.min.js"></script><script src="https://cloudcache.tencent-cloud.com/qcloud/main/scripts/release/common/vendors/react/react.16.8.6.min.js"></script><script src="https://cloudcache.tencent-cloud.com/qcloud/main/scripts/release/common/vendors/react/react-dom.16.8.6.min.js"></script><script src="https://cloudcache.tencent-cloud.com/qcloud/main/scripts/release/common/vendors/jquery-3.2.1.min.js"></script><script src="//cloudcache.tencent-cloud.com/qcloud/developer/scripts/release/base.e1782d07ea.js?max_age=31536000" crossorigin="anonymous"></script><script src="//cloudcache.tencent-cloud.com/qcloud/draft-master/dist/draft-master-v2.0.142.d4s2ddo9sb.js?max_age=31536000"></script><script src="https://cloud.tencent.com/qccomponent/login/api.js"></script><script src="//cloudcache.tencent-cloud.com/qcloud/main/scripts/release/common/deps/wechatJsSdk.js?version=1_0_1&max_age=31536000"></script><script src="//cloudcache.tencent-cloud.com/qcloud/developer/scripts/release/common.bfa68a623a.js?max_age=31536000" crossorigin="anonymous"></script><script src="https://web.sdk.qcloud.com/player/tcplayer/release/v4.7.2/tcplayer.v4.7.2.min.js"></script><script src="//dscache.tencent-cloud.cn/ecache/qcstat/qcloud/qcloudStatApi.js"></script><script src="https://qccommunity.qcloudimg.com/common/exposure-plugin-4.1.15.min.js"></script><script src="https://qccommunity.qcloudimg.com/community-track/qcloud-community-track.min.js"></script><script src="https://dscache.tencent-cloud.com/sdk/dianshi-sdk/loader/umd/dianshi-sdk-loader.v0.0.18.js"></script><script src="//cloudcache.tencent-cloud.com/qcloud/developer/scripts/release/tag/tag-detail.58e2085521.js?max_age=31536000" crossorigin="anonymous"></script><script class=""> window.$render({"tagInfo":{"id":17197,"name":"并发","icon":"","defaultIcon":"//cloudcache.tencent-cloud.com/open_proj/proj_qcloud_v2/gateway/q-and-a/css/img/tags/tag_comm.svg","shareIcon":"https://cloudcache.tencent-cloud.com/open_proj/proj_qcloud_v2/gateway/q-and-a/css/img/tags/share_comm.png","initial":"B","desc":"","followCount":0,"questionCount":92,"answerCount":99,"unanswerCount":12,"articleCount":1182,"devdocCount":0,"vlogCount":0,"boundProductId":0,"stick":{"articleIds":[],"askIds":[],"vlogIds":[]},"createTime":"2023-03-14 11:34:53"},"activeRelatedEntry":"article","timelineData":{"ask":{"fetchStatus":"none","done":false,"nextPageNumber":1,"pageSize":20,"total":0,"list":[]},"article":{"fetchStatus":"loaded","done":false,"nextPageNumber":2,"pageSize":20,"total":1178,"list":[{"id":2473536,"articleId":2473536,"title":"【在Linux世界中追寻伟大的One Piece】读者写者问题与读写锁","content":"","plain":"","brief":"","summary":"通过对比可以看出,读者写者模型更适合于数据的并发读取,而生产消费者模型更适合于数据的生产和消费。在实际应用中,应根据具体的业务需求选择合适的模型。","abstract":"通过对比可以看出,读者写者模型更适合于数据的并发读取,而生产消费者模型更适合于数据的生产和消费。在实际应用中,应根据具体的业务需求选择合适的模型。","posterSummary":"","description":"","picture":"","coverImageUrl":"","sourceType":99,"sourceDetail":{},"channelType":2,"channelDetail":{},"authorId":11145777,"columnId":102916,"columnIds":[],"writeTime":1733272398,"updateTime":1733272398,"viewCount":29,"likeCount":0,"commentCount":0,"favorCount":0,"weight":0,"status":2,"draftId":0,"tagIds":[],"isCommentEnable":true,"highQuality":false,"skipAds":false,"showAds":false,"focusRead":false,"publishTime":null,"editTime":null,"isCloseTextLink":false,"author":{"avatarUrl":"https://developer.qcloudimg.com/avatar/45777.png","company":"","introduce":"","isProfessionVerified":0,"nickname":"枫叶丹","title":"","uid":11145777,"id":11145777,"name":"枫叶丹","avatar":"https://developer.qcloudimg.com/avatar/45777.png"},"tags":[{"tagId":17440,"tagName":"数据","id":17440,"name":"数据"},{"tagId":17508,"tagName":"线程","id":17508,"name":"线程"},{"tagId":10308,"tagName":"linux","id":10308,"name":"linux"},{"tagId":17197,"tagName":"并发","id":17197,"name":"并发"},{"tagId":17381,"tagName":"模型","id":17381,"name":"模型"}]},{"id":2473486,"articleId":2473486,"title":"高并发环境下诡异的加锁问题:明明加了锁,但还是出错了!","content":"","plain":"","brief":"","summary":"很多网友留言说:在编写多线程并发程序时,我明明对共享资源加锁了啊?为什么还是出问题呢?问题到底出在哪里呢?其实,我想说的是:你的加锁姿势正确吗?你真的会使用锁吗...","abstract":"很多网友留言说:在编写多线程并发程序时,我明明对共享资源加锁了啊?为什么还是出问题呢?问题到底出在哪里呢?其实,我想说的是:你的加锁姿势正确吗?你真的会使用锁吗...","posterSummary":"很多网友留言说:在编写多线程并发程序时,我明明对共享资源加锁了啊?为什么还是出问题呢?问题到底出在哪里呢?其实,我想说的是:你的加锁姿势正确吗?你真的会使用锁吗?错误的加锁方式不但不能解决并发问题,而且还会带来各种诡异的Bug问题,有时难以复现!","description":"","picture":"https://developer.qcloudimg.com/http-save/yehe-7851686/c13f6189c901077cb6fb70b8db09c2b6.jpg","coverImageUrl":"https://developer.qcloudimg.com/http-save/yehe-7851686/c13f6189c901077cb6fb70b8db09c2b6.jpg","sourceType":99,"sourceDetail":{},"channelType":4,"channelDetail":{},"authorId":7851686,"columnId":89914,"columnIds":[],"writeTime":1733232884,"updateTime":1733232884,"viewCount":26,"likeCount":1,"commentCount":0,"favorCount":0,"weight":0,"status":2,"draftId":0,"tagIds":[],"isCommentEnable":true,"highQuality":false,"skipAds":false,"showAds":false,"focusRead":false,"publishTime":null,"editTime":null,"isCloseTextLink":false,"author":{"avatarUrl":"https://ask.qcloudimg.com/http-save/yehe-7851686/de429f77c68062b2ad736876dc42526a.jpeg","company":"","introduce":"专注于大数据、分布式、微服务、云原生等领域,“冰河技术”公众号作者,推荐关注“冰河技术”公众号。","isProfessionVerified":0,"nickname":"冰河","title":"","uid":7851686,"id":7851686,"name":"冰河","avatar":"https://ask.qcloudimg.com/http-save/yehe-7851686/de429f77c68062b2ad736876dc42526a.jpeg"},"tags":[{"tagId":17188,"tagName":"变量","id":17188,"name":"变量"},{"tagId":17197,"tagName":"并发","id":17197,"name":"并发"},{"tagId":17248,"tagName":"对象","id":17248,"name":"对象"},{"tagId":17270,"tagName":"高并发","id":17270,"name":"高并发"},{"tagId":17508,"tagName":"线程","id":17508,"name":"线程"}]},{"id":2472295,"articleId":2472295,"title":"2024年各编程语言运行100万个并发任务需要多少内存?","content":"","plain":"","brief":"","summary":"在 Go 语言中,goroutine 是实现并发的关键。我们不需要逐个等待 goroutine ,而是通过 WaitGroup 来统一管理:","abstract":"在 Go 语言中,goroutine 是实现并发的关键。我们不需要逐个等待 goroutine ,而是通过 WaitGroup 来统一管理:","posterSummary":"","description":"","picture":"https://developer.qcloudimg.com/http-save/yehe-1358501/226a94a11457d0a2bc46018f0e1d2d61.jpg","coverImageUrl":"https://developer.qcloudimg.com/http-save/yehe-1358501/226a94a11457d0a2bc46018f0e1d2d61.jpg","sourceType":99,"sourceDetail":{},"channelType":4,"channelDetail":{},"authorId":1358501,"columnId":97395,"columnIds":[],"writeTime":1732871981,"updateTime":1732871981,"viewCount":129,"likeCount":1,"commentCount":0,"favorCount":0,"weight":0,"status":2,"draftId":0,"tagIds":[],"isCommentEnable":true,"highQuality":false,"skipAds":false,"showAds":false,"focusRead":false,"publishTime":null,"editTime":null,"isCloseTextLink":false,"author":{"avatarUrl":"https://ask.qcloudimg.com/http-save/yehe-1358501/50b1fd9fe568675e549688182095a455.jpg","company":"","introduce":"","isProfessionVerified":0,"nickname":"InCerry","title":"","uid":1358501,"id":1358501,"name":"InCerry","avatar":"https://ask.qcloudimg.com/http-save/yehe-1358501/50b1fd9fe568675e549688182095a455.jpg"},"tags":[{"tagId":17215,"tagName":"程序","id":17215,"name":"程序"},{"tagId":17382,"tagName":"内存","id":17382,"name":"内存"},{"tagId":17185,"tagName":"编程语言","id":17185,"name":"编程语言"},{"tagId":17197,"tagName":"并发","id":17197,"name":"并发"},{"tagId":17205,"tagName":"测试","id":17205,"name":"测试"}]},{"id":2472247,"articleId":2472247,"title":"go map 原理与并发安全map","content":"","plain":"","brief":"","summary":"go map 整体和 java hashmap 差不多, 只是源码阅读的位置不太方便","abstract":"go map 整体和 java hashmap 差不多, 只是源码阅读的位置不太方便","posterSummary":"","description":"","picture":"https://developer.qcloudimg.com/http-save/yehe-1140319/272ace7bbefbcd4946676e8375f78525.png","coverImageUrl":"https://developer.qcloudimg.com/http-save/yehe-1140319/272ace7bbefbcd4946676e8375f78525.png","sourceType":99,"sourceDetail":{},"channelType":2,"channelDetail":{},"authorId":1140319,"columnId":95952,"columnIds":[],"writeTime":1732864391,"updateTime":1732864391,"viewCount":93,"likeCount":1,"commentCount":0,"favorCount":0,"weight":0,"status":2,"draftId":0,"tagIds":[],"isCommentEnable":true,"highQuality":false,"skipAds":false,"showAds":false,"focusRead":false,"publishTime":null,"editTime":null,"isCloseTextLink":false,"author":{"avatarUrl":"https://ask.qcloudimg.com/avatar/1140319/xfcy0wbtqr.png","company":"腾讯云","introduce":"","isProfessionVerified":1,"nickname":"leobhao","title":"后台开发工程师","uid":1140319,"id":1140319,"name":"leobhao","avatar":"https://ask.qcloudimg.com/avatar/1140319/xfcy0wbtqr.png"},"tags":[{"tagId":10665,"tagName":"存储","id":10665,"name":"存储"},{"tagId":10799,"tagName":"安全","id":10799,"name":"安全"},{"tagId":14586,"tagName":"map","id":14586,"name":"map"},{"tagId":17197,"tagName":"并发","id":17197,"name":"并发"},{"tagId":17566,"tagName":"原理","id":17566,"name":"原理"}]},{"id":2471890,"articleId":2471890,"title":"redis锁和等待锁随机毫秒数解决程序调用方控制执行的先后顺序,避免并发操作造成的数据不一致","content":"","plain":"","brief":"","summary":"redis锁和等待锁随机毫秒数解决程序调用方控制执行的先后顺序,避免并发操作造成的数据不一致","abstract":"redis锁和等待锁随机毫秒数解决程序调用方控制执行的先后顺序,避免并发操作造成的数据不一致","posterSummary":"","description":"","picture":"","coverImageUrl":"","sourceType":99,"sourceDetail":{},"channelType":2,"channelDetail":{},"authorId":9679348,"columnId":103873,"columnIds":[],"writeTime":1732756265,"updateTime":1732756265,"viewCount":91,"likeCount":1,"commentCount":0,"favorCount":0,"weight":0,"status":2,"draftId":0,"tagIds":[],"isCommentEnable":true,"highQuality":false,"skipAds":false,"showAds":false,"focusRead":false,"publishTime":null,"editTime":null,"isCloseTextLink":false,"author":{"avatarUrl":"https://developer.qcloudimg.com/http-save/10011/5c27bee623807f821661100a4241c944.jpg","company":"","introduce":"","isProfessionVerified":0,"nickname":"oktokeep","title":"","uid":9679348,"id":9679348,"name":"oktokeep","avatar":"https://developer.qcloudimg.com/http-save/10011/5c27bee623807f821661100a4241c944.jpg"},"tags":[{"tagId":17329,"tagName":"接口","id":17329,"name":"接口"},{"tagId":17440,"tagName":"数据","id":17440,"name":"数据"},{"tagId":15645,"tagName":"redis","id":15645,"name":"redis"},{"tagId":17197,"tagName":"并发","id":17197,"name":"并发"},{"tagId":17215,"tagName":"程序","id":17215,"name":"程序"}]},{"id":2471631,"articleId":2471631,"title":"原子性读取队列数据-lua脚本","content":"","plain":"","brief":"","summary":"生产者往redis队列中生产数据,多个消费者从该队列中消费消息,防止消费者重复从队列中获取相同消息","abstract":"生产者往redis队列中生产数据,多个消费者从该队列中消费消息,防止消费者重复从队列中获取相同消息","posterSummary":"","description":"","picture":"","coverImageUrl":"","sourceType":1,"sourceDetail":{},"channelType":0,"channelDetail":{},"authorId":11347538,"columnId":104278,"columnIds":[],"writeTime":1732680098,"updateTime":1732680098,"viewCount":84,"likeCount":1,"commentCount":0,"favorCount":0,"weight":0,"status":2,"draftId":0,"tagIds":[],"isCommentEnable":true,"highQuality":false,"skipAds":false,"showAds":false,"focusRead":false,"publishTime":null,"editTime":null,"isCloseTextLink":false,"author":{"avatarUrl":"https://developer.qcloudimg.com/http-save/10011/2a88ee3fa606a8698ad76e05651cec9e.jpg","company":"","introduce":"小时候有很多梦想,但没有一个是买房和贷款…","isProfessionVerified":0,"nickname":"王宝","title":"","uid":11347538,"id":11347538,"name":"王宝","avatar":"https://developer.qcloudimg.com/http-save/10011/2a88ee3fa606a8698ad76e05651cec9e.jpg"},"tags":[{"tagId":10175,"tagName":"lua","id":10175,"name":"lua"},{"tagId":15645,"tagName":"redis","id":15645,"name":"redis"},{"tagId":17197,"tagName":"并发","id":17197,"name":"并发"}]},{"id":2471206,"articleId":2471206,"title":"集合类你不知道的小知识","content":"","plain":"","brief":"","summary":"在系统设计中,快速失效(fail-fast)系统一种可以立即报告任何可能表明故障的情况的系统。快速失效系统通常设计用于停止正常操作,而不是试图继续可能存在缺陷的...","abstract":"在系统设计中,快速失效(fail-fast)系统一种可以立即报告任何可能表明故障的情况的系统。快速失效系统通常设计用于停止正常操作,而不是试图继续可能存在缺陷的...","posterSummary":"在系统设计中,快速失效(fail-fast)系统一种可以立即报告任何可能表明故障的情况的系统。快速失效系统通常设计用于停止正常操作,而不是试图继续可能存在缺陷的过程。","description":"","picture":"https://developer.qcloudimg.com/http-save/yehe-11272335/3f2b964e57a8502c86dc4f46c6ca2169.png","coverImageUrl":"https://developer.qcloudimg.com/http-save/yehe-11272335/3f2b964e57a8502c86dc4f46c6ca2169.png","sourceType":99,"sourceDetail":{},"channelType":2,"channelDetail":{},"authorId":11272335,"columnId":103995,"columnIds":[],"writeTime":1732594811,"updateTime":1732594811,"viewCount":77,"likeCount":1,"commentCount":0,"favorCount":0,"weight":0,"status":2,"draftId":0,"tagIds":[],"isCommentEnable":true,"highQuality":false,"skipAds":false,"showAds":false,"focusRead":false,"publishTime":null,"editTime":null,"isCloseTextLink":false,"author":{"avatarUrl":"https://developer.qcloudimg.com/avatar/22335.png","company":"","introduce":"","isProfessionVerified":0,"nickname":"ma布","title":"","uid":11272335,"id":11272335,"name":"ma布","avatar":"https://developer.qcloudimg.com/avatar/22335.png"},"tags":[{"tagId":17457,"tagName":"数组","id":17457,"name":"数组"},{"tagId":17540,"tagName":"异常","id":17540,"name":"异常"},{"tagId":10649,"tagName":"容器","id":10649,"name":"容器"},{"tagId":17197,"tagName":"并发","id":17197,"name":"并发"},{"tagId":17303,"tagName":"集合","id":17303,"name":"集合"}]},{"id":2470305,"articleId":2470305,"title":"C#校验画布签名图片是否为空白","content":"","plain":"","brief":"","summary":"我的文章《C# WinForm实现画笔签名及解决MemoryBmp格式问题》主要介绍如何通过 C# WinForm 通过画布画笔实现手写签名,签名后的图片将根据...","abstract":"我的文章《C# WinForm实现画笔签名及解决MemoryBmp格式问题》主要介绍如何通过 C# WinForm 通过画布画笔实现手写签名,签名后的图片将根据...","posterSummary":"我的文章《C# WinForm实现画笔签名及解决MemoryBmp格式问题》主要介绍如何通过 C# WinForm 通过画布画笔实现手写签名,签名后的图片将根据需要保存在数据库中,现有一需求,即判断用户是否在画布上进行了签名,是否有值。我们可以通过如下方法进行判断或联合判断:","description":"","picture":"https://developer.qcloudimg.com/http-save/yehe-6925087/01c9ae3d3dd85a6b0c593399afc94428.png","coverImageUrl":"https://developer.qcloudimg.com/http-save/yehe-6925087/01c9ae3d3dd85a6b0c593399afc94428.png","sourceType":99,"sourceDetail":{},"channelType":2,"channelDetail":{},"authorId":6925087,"columnId":103045,"columnIds":[],"writeTime":1732409801,"updateTime":1732409801,"viewCount":43,"likeCount":0,"commentCount":0,"favorCount":0,"weight":0,"status":2,"draftId":0,"tagIds":[],"isCommentEnable":true,"highQuality":false,"skipAds":false,"showAds":false,"focusRead":false,"publishTime":null,"editTime":null,"isCloseTextLink":false,"author":{"avatarUrl":"https://ask.qcloudimg.com/random-avatar/6925087/fkeoandx6w.png","company":"","introduce":"","isProfessionVerified":0,"nickname":"初九之潜龙勿用","title":"","uid":6925087,"id":6925087,"name":"初九之潜龙勿用","avatar":"https://ask.qcloudimg.com/random-avatar/6925087/fkeoandx6w.png"},"tags":[{"tagId":17204,"tagName":"操作系统","id":17204,"name":"操作系统"},{"tagId":17337,"tagName":"开发","id":17337,"name":"开发"},{"tagId":17470,"tagName":"统计","id":17470,"name":"统计"},{"tagId":10171,"tagName":"c#","id":10171,"name":"c#"},{"tagId":17197,"tagName":"并发","id":17197,"name":"并发"}]},{"id":2470091,"articleId":2470091,"title":"10w 级的并发场景,JVM 有哪些方面值得优化呢?","content":"","plain":"","brief":"","summary":"大家好,我是码哥,今天我们来简单聊一聊面试中常见的一个问题:要支持 10w 级以上的并发场景, JVM 有哪些方面值得优化呢?","abstract":"大家好,我是码哥,今天我们来简单聊一聊面试中常见的一个问题:要支持 10w 级以上的并发场景, JVM 有哪些方面值得优化呢?","posterSummary":"","description":"","picture":"https://developer.qcloudimg.com/http-save/yehe-2253892/29f9cd0c41c8a7ceabe82e6f9b3c2083.jpg","coverImageUrl":"https://developer.qcloudimg.com/http-save/yehe-2253892/29f9cd0c41c8a7ceabe82e6f9b3c2083.jpg","sourceType":99,"sourceDetail":{},"channelType":4,"channelDetail":{},"authorId":2253892,"columnId":81086,"columnIds":[],"writeTime":1732347197,"updateTime":1732347197,"viewCount":70,"likeCount":1,"commentCount":0,"favorCount":0,"weight":0,"status":2,"draftId":0,"tagIds":[],"isCommentEnable":true,"highQuality":false,"skipAds":false,"showAds":false,"focusRead":false,"publishTime":null,"editTime":null,"isCloseTextLink":false,"author":{"avatarUrl":"https://developer.qcloudimg.com/http-save/10011/1b9c3652fd10c71666f670e276e212aa.jpg","company":"互联网金融","introduce":"著有《Redis 高手心法》、InfoQ 签约作者,擅长 MySQL、Spring Cloud、Kafka","isProfessionVerified":0,"nickname":"码哥字节","title":"架构师","uid":2253892,"id":2253892,"name":"码哥字节","avatar":"https://developer.qcloudimg.com/http-save/10011/1b9c3652fd10c71666f670e276e212aa.jpg"},"tags":[{"tagId":17248,"tagName":"对象","id":17248,"name":"对象"},{"tagId":17382,"tagName":"内存","id":17382,"name":"内存"},{"tagId":17554,"tagName":"优化","id":17554,"name":"优化"},{"tagId":10688,"tagName":"jvm","id":10688,"name":"jvm"},{"tagId":17197,"tagName":"并发","id":17197,"name":"并发"}]},{"id":2469955,"articleId":2469955,"title":"Apache Hudi 从零到一:并发控制(七)","content":"","plain":"","brief":"","summary":"在前一篇文章中,我们通过对聚类过程和空间填充曲线的深入探讨,完成了对表服务的论述。基于在前几篇文章中所获取的知识,我们能够顺利地过渡到下一个主题:并发控制,具体...","abstract":"在前一篇文章中,我们通过对聚类过程和空间填充曲线的深入探讨,完成了对表服务的论述。基于在前几篇文章中所获取的知识,我们能够顺利地过渡到下一个主题:并发控制,具体...","posterSummary":"在前一篇文章中,我们通过对聚类过程和空间填充曲线的深入探讨,完成了对表服务的论述。基于在前几篇文章中所获取的知识,我们能够顺利地过渡到下一个主题:并发控制,具体来讲,是针对多个写入器及表服务的并发。","description":"","picture":"https://developer.qcloudimg.com/http-save/yehe-6853397/c2460e656ce4b45642de8e36f1be3f43.jpg","coverImageUrl":"https://developer.qcloudimg.com/http-save/yehe-6853397/c2460e656ce4b45642de8e36f1be3f43.jpg","sourceType":99,"sourceDetail":{},"channelType":4,"channelDetail":{},"authorId":6853397,"columnId":91580,"columnIds":[],"writeTime":1732337867,"updateTime":1732337867,"viewCount":81,"likeCount":1,"commentCount":0,"favorCount":0,"weight":0,"status":2,"draftId":0,"tagIds":[],"isCommentEnable":true,"highQuality":false,"skipAds":false,"showAds":false,"focusRead":false,"publishTime":null,"editTime":null,"isCloseTextLink":false,"author":{"avatarUrl":"https://ask.qcloudimg.com/http-save/yehe-6853397/38tred7eix.jpeg","company":"","introduce":"","isProfessionVerified":0,"nickname":"ApacheHudi","title":"","uid":6853397,"id":6853397,"name":"ApacheHudi","avatar":"https://ask.qcloudimg.com/http-save/yehe-6853397/38tred7eix.jpeg"},"tags":[{"tagId":10314,"tagName":"apache","id":10314,"name":"apache"},{"tagId":17197,"tagName":"并发","id":17197,"name":"并发"},{"tagId":17264,"tagName":"服务","id":17264,"name":"服务"},{"tagId":17346,"tagName":"客户端","id":17346,"name":"客户端"},{"tagId":17437,"tagName":"事务","id":17437,"name":"事务"}]},{"id":2469774,"articleId":2469774,"title":"肘子的 Swift 周报 #058| 运气眷顾耐心的人","content":"","plain":"","brief":"","summary":"家里的淋浴间出现了渗水情况。尽管漏水量很少,但这个问题已经困扰了一段时间。找来了一位经验丰富的维修师傅,他带着超声波和热成像两种漏水检测仪上门,却因渗水量太小无...","abstract":"家里的淋浴间出现了渗水情况。尽管漏水量很少,但这个问题已经困扰了一段时间。找来了一位经验丰富的维修师傅,他带着超声波和热成像两种漏水检测仪上门,却因渗水量太小无...","posterSummary":"家里的淋浴间出现了渗水情况。尽管漏水量很少,但这个问题已经困扰了一段时间。找来了一位经验丰富的维修师傅,他带着超声波和热成像两种漏水检测仪上门,却因渗水量太小无法定位。更奇妙的是,就像许多患者到了医院后症状会消失一样,自从预约了维修师傅后,渗水情况便消失了。","description":"","picture":"https://developer.qcloudimg.com/http-save/yehe-7250248/e50e94179811d8c9638ee8f4fdd38501.jpg","coverImageUrl":"https://developer.qcloudimg.com/http-save/yehe-7250248/e50e94179811d8c9638ee8f4fdd38501.jpg","sourceType":99,"sourceDetail":{},"channelType":4,"channelDetail":{},"authorId":7250248,"columnId":96310,"columnIds":[],"writeTime":1732325445,"updateTime":1732325445,"viewCount":47,"likeCount":0,"commentCount":0,"favorCount":0,"weight":0,"status":2,"draftId":0,"tagIds":[],"isCommentEnable":true,"highQuality":false,"skipAds":false,"showAds":false,"focusRead":false,"publishTime":null,"editTime":null,"isCloseTextLink":false,"author":{"avatarUrl":"https://developer.qcloudimg.com/http-save/10011/1d8ffaff2b0091a6e5c5fe62dd378422.jpg","company":"","introduce":"退休代码爱好者,专职在家照顾猫猫狗狗。欢迎订阅我的 Swift 周报 https://weekly.fatbobman.com","isProfessionVerified":0,"nickname":"东坡肘子","title":"","uid":7250248,"id":7250248,"name":"东坡肘子","avatar":"https://developer.qcloudimg.com/http-save/10011/1d8ffaff2b0091a6e5c5fe62dd378422.jpg"},"tags":[{"tagId":17337,"tagName":"开发","id":17337,"name":"开发"},{"tagId":17341,"tagName":"开发者","id":17341,"name":"开发者"},{"tagId":10160,"tagName":"swift","id":10160,"name":"swift"},{"tagId":10576,"tagName":"渲染","id":10576,"name":"渲染"},{"tagId":17197,"tagName":"并发","id":17197,"name":"并发"}]},{"id":2469772,"articleId":2469772,"title":"肘子的 Swift 周报 #056| Pixelmator 并购背后的思考","content":"","plain":"","brief":"","summary":"Actor 模型由 Carl Hewitt 于 1973 年首次提出,这一突破性的并发计算模型此后深刻影响了诸多编程语言的发展。Swift 语言在 5.5 版本...","abstract":"Actor 模型由 Carl Hewitt 于 1973 年首次提出,这一突破性的并发计算模型此后深刻影响了诸多编程语言的发展。Swift 语言在 5.5 版本...","posterSummary":"Actor 模型由 Carl Hewitt 于 1973 年首次提出,这一突破性的并发计算模型此后深刻影响了诸多编程语言的发展。Swift 语言在 5.5 版本中引入了 Actor 类型作为其并发编程的核心解决方案,标志着 Swift 在并发安全领域迈出了重要的一步。","description":"","picture":"https://developer.qcloudimg.com/http-save/yehe-7250248/9ed0250f235e902221da4bac2f3a4190.jpg","coverImageUrl":"https://developer.qcloudimg.com/http-save/yehe-7250248/9ed0250f235e902221da4bac2f3a4190.jpg","sourceType":99,"sourceDetail":{},"channelType":4,"channelDetail":{},"authorId":7250248,"columnId":96310,"columnIds":[],"writeTime":1732325363,"updateTime":1732325363,"viewCount":65,"likeCount":0,"commentCount":0,"favorCount":0,"weight":0,"status":2,"draftId":0,"tagIds":[],"isCommentEnable":true,"highQuality":false,"skipAds":false,"showAds":false,"focusRead":false,"publishTime":null,"editTime":null,"isCloseTextLink":false,"author":{"avatarUrl":"https://developer.qcloudimg.com/http-save/10011/1d8ffaff2b0091a6e5c5fe62dd378422.jpg","company":"","introduce":"退休代码爱好者,专职在家照顾猫猫狗狗。欢迎订阅我的 Swift 周报 https://weekly.fatbobman.com","isProfessionVerified":0,"nickname":"东坡肘子","title":"","uid":7250248,"id":7250248,"name":"东坡肘子","avatar":"https://developer.qcloudimg.com/http-save/10011/1d8ffaff2b0091a6e5c5fe62dd378422.jpg"},"tags":[{"tagId":10160,"tagName":"swift","id":10160,"name":"swift"},{"tagId":17197,"tagName":"并发","id":17197,"name":"并发"},{"tagId":17337,"tagName":"开发","id":17337,"name":"开发"},{"tagId":17341,"tagName":"开发者","id":17341,"name":"开发者"},{"tagId":17394,"tagName":"苹果","id":17394,"name":"苹果"}]},{"id":2469406,"articleId":2469406,"title":"ConcurrentModificationException:检测到并发修改完美解决方法","content":"","plain":"","brief":"","summary":"大家好,我是默语!在这篇文章中,我们将深入探讨Java中的ConcurrentModificationException,它是一种常见的运行时异常,通常在对集合...","abstract":"大家好,我是默语!在这篇文章中,我们将深入探讨Java中的ConcurrentModificationException,它是一种常见的运行时异常,通常在对集合...","posterSummary":"大家好,我是默语!在这篇文章中,我们将深入探讨Java中的ConcurrentModificationException,它是一种常见的运行时异常,通常在对集合进行遍历时发生并发修改的情况。对于刚接触Java的初学者来说,了解这个异常的原因、常见场景以及解决方法非常重要。本文将提供详细的说明和示例,帮助你有效地避免和处理这类错误,提升你的编程技能!🌟","description":"","picture":"","coverImageUrl":"","sourceType":99,"sourceDetail":{},"channelType":2,"channelDetail":{},"authorId":11273182,"columnId":104228,"columnIds":[],"writeTime":1732246933,"updateTime":1732246933,"viewCount":73,"likeCount":1,"commentCount":0,"favorCount":0,"weight":0,"status":2,"draftId":0,"tagIds":[],"isCommentEnable":true,"highQuality":false,"skipAds":false,"showAds":false,"focusRead":false,"publishTime":null,"editTime":null,"isCloseTextLink":false,"author":{"avatarUrl":"https://developer.qcloudimg.com/http-save/10011/a5914666a9130f099bb59906285ff47d.jpg","company":"架构师","introduce":"Java高级工程师、自媒体博主,北京城市开发者社区的主理人。全网 10余万粉丝,总阅读量超过1000万。","isProfessionVerified":0,"nickname":"默 语","title":"国家电网","uid":11273182,"id":11273182,"name":"默 语","avatar":"https://developer.qcloudimg.com/http-save/10011/a5914666a9130f099bb59906285ff47d.jpg"},"tags":[{"tagId":17187,"tagName":"遍历","id":17187,"name":"遍历"},{"tagId":17197,"tagName":"并发","id":17197,"name":"并发"},{"tagId":17303,"tagName":"集合","id":17303,"name":"集合"},{"tagId":17509,"tagName":"线程安全","id":17509,"name":"线程安全"},{"tagId":17540,"tagName":"异常","id":17540,"name":"异常"}]},{"id":2469216,"articleId":2469216,"title":"Race Condition: 并发编程中的隐形杀手","content":"","plain":"","brief":"","summary":"大家好,我是默语,擅长全栈开发、运维和人工智能技术。在这篇博客中,我们将深入探讨并发编程中的一个常见且危险的陷阱:Race Condition(竞争条件)。Ra...","abstract":"大家好,我是默语,擅长全栈开发、运维和人工智能技术。在这篇博客中,我们将深入探讨并发编程中的一个常见且危险的陷阱:Race Condition(竞争条件)。Ra...","posterSummary":"大家好,我是默语,擅长全栈开发、运维和人工智能技术。在这篇博客中,我们将深入探讨并发编程中的一个常见且危险的陷阱:Race Condition(竞争条件)。Race Condition 是指多个线程在并发执行时,由于对共享资源的访问顺序未被控制好,从而导致程序运行结果不可预测的问题。本文将详细介绍这种错误的成因、识别方法、预防策略以及修复技巧。希望通过这篇文章,大家能更好地理解并避免这种常见的编程...","description":"","picture":"","coverImageUrl":"","sourceType":99,"sourceDetail":{},"channelType":2,"channelDetail":{},"authorId":11273182,"columnId":104228,"columnIds":[],"writeTime":1732241663,"updateTime":1732241663,"viewCount":41,"likeCount":0,"commentCount":0,"favorCount":0,"weight":0,"status":2,"draftId":0,"tagIds":[],"isCommentEnable":true,"highQuality":false,"skipAds":false,"showAds":false,"focusRead":false,"publishTime":null,"editTime":null,"isCloseTextLink":false,"author":{"avatarUrl":"https://developer.qcloudimg.com/http-save/10011/a5914666a9130f099bb59906285ff47d.jpg","company":"架构师","introduce":"Java高级工程师、自媒体博主,北京城市开发者社区的主理人。全网 10余万粉丝,总阅读量超过1000万。","isProfessionVerified":0,"nickname":"默 语","title":"国家电网","uid":11273182,"id":11273182,"name":"默 语","avatar":"https://developer.qcloudimg.com/http-save/10011/a5914666a9130f099bb59906285ff47d.jpg"},"tags":[{"tagId":16248,"tagName":"std","id":16248,"name":"std"},{"tagId":17197,"tagName":"并发","id":17197,"name":"并发"},{"tagId":17198,"tagName":"并发编程","id":17198,"name":"并发编程"},{"tagId":17276,"tagName":"工具","id":17276,"name":"工具"},{"tagId":17508,"tagName":"线程","id":17508,"name":"线程"}]},{"id":2469211,"articleId":2469211,"title":"Data Race: 并发编程中的数据竞争问题","content":"","plain":"","brief":"","summary":"大家好,我是默语,专注于全栈开发、运维和人工智能技术。在这篇博客中,我们将详细探讨“数据竞争”(Data Race),这是并发编程中常见而棘手的问题。我们将介绍...","abstract":"大家好,我是默语,专注于全栈开发、运维和人工智能技术。在这篇博客中,我们将详细探讨“数据竞争”(Data Race),这是并发编程中常见而棘手的问题。我们将介绍...","posterSummary":"大家好,我是默语,专注于全栈开发、运维和人工智能技术。在这篇博客中,我们将详细探讨“数据竞争”(Data Race),这是并发编程中常见而棘手的问题。我们将介绍数据竞争的定义、造成数据竞争的原因以及如何有效地检测和解决这些问题。本文还会分享一些实用的调试工具和最佳实践,帮助你在并发编程中提升代码的稳定性和安全性。💡🔧","description":"","picture":"","coverImageUrl":"","sourceType":99,"sourceDetail":{},"channelType":2,"channelDetail":{},"authorId":11273182,"columnId":104228,"columnIds":[],"writeTime":1732241569,"updateTime":1732241569,"viewCount":72,"likeCount":1,"commentCount":0,"favorCount":0,"weight":0,"status":2,"draftId":0,"tagIds":[],"isCommentEnable":true,"highQuality":false,"skipAds":false,"showAds":false,"focusRead":false,"publishTime":null,"editTime":null,"isCloseTextLink":false,"author":{"avatarUrl":"https://developer.qcloudimg.com/http-save/10011/a5914666a9130f099bb59906285ff47d.jpg","company":"架构师","introduce":"Java高级工程师、自媒体博主,北京城市开发者社区的主理人。全网 10余万粉丝,总阅读量超过1000万。","isProfessionVerified":0,"nickname":"默 语","title":"国家电网","uid":11273182,"id":11273182,"name":"默 语","avatar":"https://developer.qcloudimg.com/http-save/10011/a5914666a9130f099bb59906285ff47d.jpg"},"tags":[{"tagId":17276,"tagName":"工具","id":17276,"name":"工具"},{"tagId":17440,"tagName":"数据","id":17440,"name":"数据"},{"tagId":12897,"tagName":"data","id":12897,"name":"data"},{"tagId":17197,"tagName":"并发","id":17197,"name":"并发"},{"tagId":17198,"tagName":"并发编程","id":17198,"name":"并发编程"}]},{"id":2469119,"articleId":2469119,"title":"Java 并发和线程处理","content":"","plain":"","brief":"","summary":"并发编程是 Java 开发中的一个重要领域,能够让程序同时执行多个任务,提高程序的执行效率。然而,并发编程也带来了线程安全性和死锁等问题,正确处理这些问题是每个...","abstract":"并发编程是 Java 开发中的一个重要领域,能够让程序同时执行多个任务,提高程序的执行效率。然而,并发编程也带来了线程安全性和死锁等问题,正确处理这些问题是每个...","posterSummary":"并发编程是 Java 开发中的一个重要领域,能够让程序同时执行多个任务,提高程序的执行效率。然而,并发编程也带来了线程安全性和死锁等问题,正确处理这些问题是每个 Java 开发者必须掌握的技能。本文将详细介绍 Java 并发处理的基本概念和常见方法,帮助您在实际项目中高效处理并发任务。","description":"","picture":"","coverImageUrl":"","sourceType":99,"sourceDetail":{},"channelType":2,"channelDetail":{},"authorId":11273182,"columnId":104228,"columnIds":[],"writeTime":1732236683,"updateTime":1732236683,"viewCount":99,"likeCount":1,"commentCount":0,"favorCount":0,"weight":0,"status":2,"draftId":0,"tagIds":[],"isCommentEnable":true,"highQuality":false,"skipAds":false,"showAds":false,"focusRead":false,"publishTime":null,"editTime":null,"isCloseTextLink":false,"author":{"avatarUrl":"https://developer.qcloudimg.com/http-save/10011/a5914666a9130f099bb59906285ff47d.jpg","company":"架构师","introduce":"Java高级工程师、自媒体博主,北京城市开发者社区的主理人。全网 10余万粉丝,总阅读量超过1000万。","isProfessionVerified":0,"nickname":"默 语","title":"国家电网","uid":11273182,"id":11273182,"name":"默 语","avatar":"https://developer.qcloudimg.com/http-save/10011/a5914666a9130f099bb59906285ff47d.jpg"},"tags":[{"tagId":17508,"tagName":"线程","id":17508,"name":"线程"},{"tagId":17509,"tagName":"线程安全","id":17509,"name":"线程安全"},{"tagId":10164,"tagName":"java","id":10164,"name":"java"},{"tagId":17197,"tagName":"并发","id":17197,"name":"并发"},{"tagId":17469,"tagName":"同步","id":17469,"name":"同步"}]},{"id":2468969,"articleId":2468969,"title":"QPS 和并发测试","content":"","plain":"","brief":"","summary":"要测试 http 应用的 QPS(每秒请求数)和并发性能,你可以使用 wrk、ab(Apache Benchmark)、或 hey 等工具。下面介绍如何使用这些...","abstract":"要测试 http 应用的 QPS(每秒请求数)和并发性能,你可以使用 wrk、ab(Apache Benchmark)、或 hey 等工具。下面介绍如何使用这些...","posterSummary":"要测试 http 应用的 QPS(每秒请求数)和并发性能,你可以使用 wrk、ab(Apache Benchmark)、或 hey 等工具。下面介绍如何使用这些工具来测试 Flask 应用的性能。","description":"","picture":"","coverImageUrl":"","sourceType":99,"sourceDetail":{},"channelType":2,"channelDetail":{},"authorId":3850389,"columnId":97018,"columnIds":[],"writeTime":1732185103,"updateTime":1732185103,"viewCount":90,"likeCount":1,"commentCount":0,"favorCount":0,"weight":0,"status":2,"draftId":0,"tagIds":[],"isCommentEnable":true,"highQuality":false,"skipAds":false,"showAds":false,"focusRead":false,"publishTime":null,"editTime":null,"isCloseTextLink":false,"author":{"avatarUrl":"https://ask.qcloudimg.com/http-save/yehe-3850389/0392660a346db7e5d83681e1051690bb.jpg","company":"","introduce":"","isProfessionVerified":0,"nickname":"chuchur","title":"","uid":3850389,"id":3850389,"name":"chuchur","avatar":"https://ask.qcloudimg.com/http-save/yehe-3850389/0392660a346db7e5d83681e1051690bb.jpg"},"tags":[{"tagId":17525,"tagName":"性能","id":17525,"name":"性能"},{"tagId":17898,"tagName":"并发测试","id":17898,"name":"并发测试"},{"tagId":17197,"tagName":"并发","id":17197,"name":"并发"},{"tagId":17205,"tagName":"测试","id":17205,"name":"测试"},{"tagId":17508,"tagName":"线程","id":17508,"name":"线程"}]},{"id":2468681,"articleId":2468681,"title":"【操作系统不挂科】<忙等待互斥(10)>选择题&简答题(带答案与解析)","content":"","plain":"","brief":"","summary":"则并发执行进程P0和P1时产生的情况是( )\n A.不能保证进程互斥进入临界区,会出现“饥饿”现象\n B.不能保证进程互斥进入临界区,不会出现“饥饿”现象\n C...","abstract":"则并发执行进程P0和P1时产生的情况是( )\n A.不能保证进程互斥进入临界区,会出现“饥饿”现象\n B.不能保证进程互斥进入临界区,不会出现“饥饿”现象\n C...","posterSummary":"则并发执行进程P0和P1时产生的情况是( )\n A.不能保证进程互斥进入临界区,会出现“饥饿”现象\n B.不能保证进程互斥进入临界区,不会出现“饥饿”现象\n C.能保证进程互斥进入临界区,会出现“饥饿”现象\n D.能保证进程互斥进入临界区,不会出现“饥饿”现象","description":"","picture":"https://developer.qcloudimg.com/http-save/yehe-10923987/0044e9a03e8243aecbf4fcb524fb0c2c.png","coverImageUrl":"https://developer.qcloudimg.com/http-save/yehe-10923987/0044e9a03e8243aecbf4fcb524fb0c2c.png","sourceType":99,"sourceDetail":{},"channelType":2,"channelDetail":{},"authorId":10923987,"columnId":101955,"columnIds":[],"writeTime":1732164808,"updateTime":1732164808,"viewCount":45,"likeCount":1,"commentCount":0,"favorCount":0,"weight":0,"status":2,"draftId":0,"tagIds":[],"isCommentEnable":true,"highQuality":false,"skipAds":false,"showAds":false,"focusRead":false,"publishTime":null,"editTime":null,"isCloseTextLink":false,"author":{"avatarUrl":"https://developer.qcloudimg.com/avatar/23987.png","company":"","introduce":"","isProfessionVerified":0,"nickname":"YY的秘密代码小屋","title":"","uid":10923987,"id":10923987,"name":"YY的秘密代码小屋","avatar":"https://developer.qcloudimg.com/avatar/23987.png"},"tags":[{"tagId":17200,"tagName":"博客","id":17200,"name":"博客"},{"tagId":17204,"tagName":"操作系统","id":17204,"name":"操作系统"},{"tagId":17332,"tagName":"进程","id":17332,"name":"进程"},{"tagId":17506,"tagName":"系统","id":17506,"name":"系统"},{"tagId":17197,"tagName":"并发","id":17197,"name":"并发"}]},{"id":2467826,"articleId":2467826,"title":"Java JDK 21特性大揭秘:发挥最大潜力的秘诀","content":"","plain":"","brief":"","summary":"JDK 21 引入了显著的并发性能提升。我们将深入研究新的并发库和工具,展示如何构建高性能的多线程应用程序。","abstract":"JDK 21 引入了显著的并发性能提升。我们将深入研究新的并发库和工具,展示如何构建高性能的多线程应用程序。","posterSummary":"","description":"","picture":"https://developer.qcloudimg.com/http-save/yehe-11273182/ec1aff28c3cc23fedfa9ee8dafe0d38d.png","coverImageUrl":"https://developer.qcloudimg.com/http-save/yehe-11273182/ec1aff28c3cc23fedfa9ee8dafe0d38d.png","sourceType":99,"sourceDetail":{},"channelType":2,"channelDetail":{},"authorId":11273182,"columnId":104228,"columnIds":[],"writeTime":1732085261,"updateTime":1732085261,"viewCount":85,"likeCount":1,"commentCount":0,"favorCount":0,"weight":0,"status":2,"draftId":0,"tagIds":[],"isCommentEnable":true,"highQuality":false,"skipAds":false,"showAds":false,"focusRead":false,"publishTime":null,"editTime":null,"isCloseTextLink":false,"author":{"avatarUrl":"https://developer.qcloudimg.com/http-save/10011/a5914666a9130f099bb59906285ff47d.jpg","company":"架构师","introduce":"Java高级工程师、自媒体博主,北京城市开发者社区的主理人。全网 10余万粉丝,总阅读量超过1000万。","isProfessionVerified":0,"nickname":"默 语","title":"国家电网","uid":11273182,"id":11273182,"name":"默 语","avatar":"https://developer.qcloudimg.com/http-save/10011/a5914666a9130f099bb59906285ff47d.jpg"},"tags":[{"tagId":17354,"tagName":"垃圾回收","id":17354,"name":"垃圾回收"},{"tagId":17525,"tagName":"性能","id":17525,"name":"性能"},{"tagId":10164,"tagName":"java","id":10164,"name":"java"},{"tagId":10685,"tagName":"jdk","id":10685,"name":"jdk"},{"tagId":17197,"tagName":"并发","id":17197,"name":"并发"}]},{"id":2467825,"articleId":2467825,"title":"Java JDK 21新特性:开发者的竞争优势深度剖析","content":"","plain":"","brief":"","summary":"JDK 21 带来了显著的并发性能提升。我们将深入研究新的并发库和工具,以及如何利用它们构建高性能的多线程应用程序。让 Java 在并发领域大放异彩!","abstract":"JDK 21 带来了显著的并发性能提升。我们将深入研究新的并发库和工具,以及如何利用它们构建高性能的多线程应用程序。让 Java 在并发领域大放异彩!","posterSummary":"","description":"","picture":"https://developer.qcloudimg.com/http-save/yehe-11273182/4b68c7c8e4b19142c87bea5ccd1327ec.png","coverImageUrl":"https://developer.qcloudimg.com/http-save/yehe-11273182/4b68c7c8e4b19142c87bea5ccd1327ec.png","sourceType":99,"sourceDetail":{},"channelType":2,"channelDetail":{},"authorId":11273182,"columnId":104228,"columnIds":[],"writeTime":1732085237,"updateTime":1732085237,"viewCount":76,"likeCount":1,"commentCount":0,"favorCount":0,"weight":0,"status":2,"draftId":0,"tagIds":[],"isCommentEnable":true,"highQuality":false,"skipAds":false,"showAds":false,"focusRead":false,"publishTime":null,"editTime":null,"isCloseTextLink":false,"author":{"avatarUrl":"https://developer.qcloudimg.com/http-save/10011/a5914666a9130f099bb59906285ff47d.jpg","company":"架构师","introduce":"Java高级工程师、自媒体博主,北京城市开发者社区的主理人。全网 10余万粉丝,总阅读量超过1000万。","isProfessionVerified":0,"nickname":"默 语","title":"国家电网","uid":11273182,"id":11273182,"name":"默 语","avatar":"https://developer.qcloudimg.com/http-save/10011/a5914666a9130f099bb59906285ff47d.jpg"},"tags":[{"tagId":17525,"tagName":"性能","id":17525,"name":"性能"},{"tagId":10164,"tagName":"java","id":10164,"name":"java"},{"tagId":10685,"tagName":"jdk","id":10685,"name":"jdk"},{"tagId":17197,"tagName":"并发","id":17197,"name":"并发"},{"tagId":17341,"tagName":"开发者","id":17341,"name":"开发者"}]}]},"video":{"fetchStatus":"none","done":false,"nextPageNumber":1,"pageSize":20,"total":0,"list":[]}},"relatedProducts":[{"id":0,"type":1,"name":"","cnName":"","iconUrl":"//cloudcache.tencent-cloud.com/qcloud/developer/images/release/team/product-default-icon.v1.svg","intro":"","introUrl":"","desc":"","documentUrl":"","features":"null","weight":0}],"relatedDevdocs":[],"activeUsers":[],"hotColumns":[{"id":1037,"name":"腾讯云 DNSPod 团队","desc":"","icon":"https://imgcache.qq.com/qcloud/developer/images/release/column-icons/11.png","background":"","status":2,"creatorId":988670,"memberCount":1,"articleCount":743,"followCount":54,"createdTime":1477380309,"creator":{"id":988670,"uid":988670,"name":"腾讯云DNSPod团队","label":"域名、解析产品经理","avatar":"https://ask.qcloudimg.com/http-save/yehe-988670/ea6mqodskk.jpeg","province":"1213","city":"1216","company":"广东","title":"产品经理","school":"","major":"","homePage":"https://www.dnspod.cn/","region":1,"jobType":1,"graduationDate":"","education":0,"specialityIds":[10422],"specialities":[],"gender":1,"trade":"","growthLevel":0,"isProfessionVerified":false,"upvoteCount":6,"followingCount":2,"followerCount":113,"questionCount":0,"answerCount":5,"followQuestionCount":0,"followTagCount":2,"favorAnswerCount":0,"beHandPickedCount":2,"followColumnCount":3,"articleCount":749,"validArticleCount":743}},{"id":1196,"name":"Tencent Serverless 官方专栏","desc":"立即使用 Serverless,只需三步 --\u003E\n https://serverless.cloud.tencent.com/","icon":"https://ask.qcloudimg.com/http-save/yehe-1000057/lmd4xso2ck.png","background":"https://imgcache.qq.com/qcloud/developer/images/release/column-bgs/6.svg","status":2,"creatorId":1000057,"memberCount":6,"articleCount":522,"followCount":438,"createdTime":1493191347,"creator":{"id":1000057,"uid":1000057,"name":"腾讯云serverless团队","label":"腾讯云无服务器云函数SCF产品","avatar":"https://ask.qcloudimg.com/http-save/yehe-1000057/m05e54frjv.jpeg","province":"1213","city":"1216","company":"腾讯云","title":"产品团队","school":"","major":"","homePage":"","region":1,"jobType":1,"graduationDate":"","education":0,"specialityIds":[10356,10420,10174,110,10169],"specialities":[],"gender":1,"trade":"itcc","growthLevel":0,"isProfessionVerified":true,"upvoteCount":25,"followingCount":14,"followerCount":408,"questionCount":1,"answerCount":25,"followQuestionCount":0,"followTagCount":9,"favorAnswerCount":0,"beHandPickedCount":25,"followColumnCount":9,"articleCount":493,"validArticleCount":493}},{"id":1200,"name":"贤羽的前端小栈","desc":"白马非马,咸鱼非鱼。","icon":"https://imgcache.qq.com/qcloud/developer/images/release/column-icons/19.png","background":"","status":2,"creatorId":950458,"memberCount":1,"articleCount":31,"followCount":16,"createdTime":1493279552,"creator":{"id":950458,"uid":950458,"name":"贤羽","label":"腾讯动漫前端开发","avatar":"https://developer.qcloudimg.com/http-save/10011/974516aa930ae184bc0eef3f27102d3e.jpg","province":"1213","city":"1216","company":"腾讯","title":"UI工程师","school":"南昌大学","major":"网络工程","homePage":"https://blog.krimeshu.com/","region":1,"jobType":1,"graduationDate":"","education":0,"specialityIds":[10170,10213,10197,10198,10616],"specialities":[],"gender":1,"trade":"","growthLevel":0,"isProfessionVerified":true,"upvoteCount":0,"followingCount":1,"followerCount":32,"questionCount":0,"answerCount":0,"followQuestionCount":0,"followTagCount":0,"favorAnswerCount":0,"beHandPickedCount":0,"followColumnCount":2,"articleCount":31,"validArticleCount":31}},{"id":1283,"name":"腾讯技术工程官方号的专栏","desc":"","icon":"https://ask.qcloudimg.com/column-icons/1283/170434/hcgwwmih7d.jpg","background":"","status":2,"creatorId":170434,"memberCount":2,"articleCount":1119,"followCount":912,"createdTime":1496643325,"creator":{"id":170434,"uid":170434,"name":"腾讯技术工程官方号","label":"腾讯技术工程事业群官方微信公众号","avatar":"https://ask.qcloudimg.com/http-save/yehe-170434/568f3e8410f6654284c65b8e886345e3.png","province":"1213","city":"1216","company":"腾讯","title":"产品经理","school":"","major":"","homePage":"","region":1,"jobType":1,"graduationDate":"","education":0,"specialityIds":[10539,10244,10149,10333,10245],"specialities":[],"gender":1,"trade":"","growthLevel":0,"isProfessionVerified":true,"upvoteCount":0,"followingCount":1,"followerCount":1574,"questionCount":0,"answerCount":0,"followQuestionCount":0,"followTagCount":0,"favorAnswerCount":0,"beHandPickedCount":0,"followColumnCount":2,"articleCount":1122,"validArticleCount":1119}}],"recommendedTags":[],"env":"production","documentBaseTitle":"腾讯云开发者社区-腾讯云","cdnDomain":"cloudcache.tencent-cloud.cn","cssDomain":"cloudcache.tencent-cloud.cn","qcloudDomain":"cloud.tencent.com","consoleDomain":"console.cloud.tencent.com","qcommunity_identify_id":"cumJd8Up68R-FITLjNxh1","session":{"isLogined":false,"isQcloudUser":false,"isOwner":false,"nickname":"","accountInfoCompleted":false,"phoneCompleted":false,"profile":{},"contactPhoneCompleted":false,"userInfo":{}},"pvId":"U4Vycgi3t-_rENDObfaJo","userIp":"8.222.208.146","fromMiniProgram":false,"route":{"url":"/developer/tag/17197?entry=article","path":"/developer/tag/17197?entry=article","pathname":"/developer/tag/17197","search":"?entry=article","query":{"entry":"article"},"segments":["developer","tag","17197"]}}); </script><script class=""> if (!Element.prototype.matches) Element.prototype.matches = Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector; if (!Element.prototype.closest) Element.prototype.closest = function(s) { var el = this; if (!document.documentElement.contains(el)) return null; do { if (el.matches(s)) return el; el = el.parentElement; } while (el !== null); return null; }; window.addEventListener('mouseover', function(evt) { const target = evt.target; if (!target) { return; } const aEle = target.closest('a'); if (!aEle) { return; } let href = aEle.getAttribute('href'); if (!href) { return; } href = href.replace(/cloud.tencent.com.cn|cloud.tencent.com|cloud.tencent.cn/g, 'cloud.tencent.com'); aEle.setAttribute('href', href); }, true); </script></body></html>