{"id":344531,"date":"2021-02-12T21:43:24","date_gmt":"2021-02-12T13:43:24","guid":{"rendered":"http:\/\/4563.org\/?p=344531"},"modified":"2021-02-12T21:43:24","modified_gmt":"2021-02-12T13:43:24","slug":"%e6%97%a0%e9%94%81%e5%b9%b6%e5%8f%91%e7%9a%84-ringbuffer-%e6%9c%89%e7%ae%80%e5%8d%95%e6%98%93%e6%87%82%e7%9a%84%e4%bb%a3%e7%a0%81%e5%ae%9e%e7%8e%b0%e5%90%97","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=344531","title":{"rendered":"\u65e0\u9501\u5e76\u53d1\u7684 RingBuffer \u6709\u7b80\u5355\u6613\u61c2\u7684\u4ee3\u7801\u5b9e\u73b0\u5417"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  \u65e0\u9501\u5e76\u53d1\u7684 RingBuffer \u6709\u7b80\u5355\u6613\u61c2\u7684\u4ee3\u7801\u5b9e\u73b0\u5417               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : vansenb <\/span>  <span><i><\/i> 3<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\">                        \u770b\u4e86\u4e00\u4e9b CPU \u539f\u5b50\u64cd\u4f5c CAS \u76f8\u5173\u7684\u6587\u7ae0\uff08 Rust\/Golang \uff09\uff0c\u4e5f\u770b\u4e86\u5176\u4ed6\u5173\u4e8e\u65e0\u9501\u5e76\u53d1\u7684\u5b9e\u73b0\u65b9\u5f0f\uff08 RingBuffer \uff09\uff0c\u4f46\u662f\u82e6\u4e8e\u81ea\u5df1\u7b28\u624b\u7b28\u811a\uff0c\u4e0d\u77e5\u9053\u5982\u4f55\u5b9e\u73b0\u4e00\u4e2a\u7528\u4e8e\u65e0\u9501\u5e76\u53d1\u7684 RingBuffer\uff0c\u4e5f\u4e0d\u77e5\u9053\u5982\u4f55\u4f7f\u7528\u5b83\u3002\u5e0c\u671b V2EX \u8fd9\u91cc\u6709\u5927\u4f6c\u80fd\u591f\u6307\u70b9\u4e00\u4e0b\uff0c\u7ed9\u51fa\u4e00\u4e9b\u5b9e\u73b0\uff0c\u8c22\u8c22\u5566\uff01      <\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>5<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"5312858\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : vansenb <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6709 GC \u7684\u8bed\u8a00\u53ef\u4ee5\u76f4\u63a5\u7528 CAS \u5b9e\u73b0\u65e0\u9501\u5e76\u53d1\uff0c\u4f46\u65e0 GC \u7684\u9700\u8981\u5904\u7406 ABA \u95ee\u9898\u3002\u4e0d\u77e5\u9053 Ringbuffer \u662f\u600e\u4e48\u6837\u7684                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5312859\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : zhoudaiyu <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u770b\u4e86\u4e00\u4e9b CPU \u539f\u5b50\u64cd\u4f5c CAS \u76f8\u5173\u7684\u6587\u7ae0\uff08 Rust\/Golang \uff09<\/p>\n<p>\u6c42\u6587\u7ae0                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5312860\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : vansenb <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @zhoudaiyu \u6211\u770b\u7684\u662f\u6781\u5ba2\u65f6\u95f4\u4e0a\u5f20\u6c49\u4e1c\u7684 Rust \u4e13\u680f\u548c\u674e\u94a5\u7684\u6d88\u606f\u961f\u5217\u9ad8\u624b\u8bfe\u4e13\u680f\uff0c\u91cc\u9762\u90fd\u6709\u65e0\u9501\u5e76\u53d1\u76f8\u5173\u7684\u4ecb\u7ecd\u548c\u4ee3\u7801\u793a\u4f8b\u3002\u5176\u5b83\u4e00\u4e9b\u4f8b\u5982\u535a\u5ba2\u56ed\u3001\u4e2a\u4eba\u535a\u5ba2\u7684\u901a\u8fc7\u641c\u7d22\u5f15\u64ce\u627e\u4e00\u4e0b\u5c31\u597d\uff0c\u4e0d\u592a\u786e\u5b9a\u535a\u5ba2\u4e0a\u7684\u5185\u5bb9\u6b63\u786e\u6027\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5312861\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : zhoudaiyu <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @vansenb \u611f\u8c22                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5312862\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : hxndg <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             DPDK \u7684 mc\/mp rte_ring \uff1f<br \/>\u8bed\u8a00\u662f C \/C++<br \/>\u4e0d\u8fc7\u6211\u4eec\u7528\u7684\u90fd\u662f\u7cfb\u7edf\u7ea7\u522b\uff0c\u4e0d\u662f\u7ed9\u6d88\u606f\u961f\u5217\u7528\u7684\u3002\u3002\u3002\u3002<br \/>\u4e0d\u77e5\u9053\u5408\u4e0d\u5408\u9002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>\u65e0\u9501\u5e76\u53d1\u7684 RingBuffer &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/344531"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=344531"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/344531\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=344531"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=344531"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=344531"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}