{"id":110098,"date":"2026-09-25T22:41:07","date_gmt":"2026-09-25T14:41:07","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/110098.html"},"modified":"2026-09-25T22:41:07","modified_gmt":"2026-09-25T14:41:07","slug":"%e9%ab%98%e6%80%a7%e8%83%bd-c-%e5%ae%9e%e6%88%98-%e4%b8%89%ef%bc%9a%e5%b7%a5%e7%a8%8b%e5%8f%af%e7%94%a8%e7%89%88-cas-%e6%97%a0%e9%94%81%e9%98%9f%e5%88%97%ef%bc%8c%e8%a7%a3%e5%86%b3-aba-%e4%b8%8e","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/110098.html","title":{"rendered":"\u9ad8\u6027\u80fd C++ \u5b9e\u6218 (\u4e09)\uff1a\u5de5\u7a0b\u53ef\u7528\u7248 CAS \u65e0\u9501\u961f\u5217\uff0c\u89e3\u51b3 ABA \u4e0e\u5185\u5b58\u6cc4\u6f0f\uff0c\u9ad8\u5e76\u53d1\u5b9e\u6d4b\uff08\u9644\u6e90\u7801\uff09"},"content":{"rendered":"<p>\u4e0a\u4e00\u7248\u6700\u7b80\u65e0\u9501\u961f\u5217&#xff0c;\u9002\u5408\u7406\u89e3\u539f\u7406&#xff0c;\u4f46\u4e0d\u80fd\u76f4\u63a5\u4e0a\u751f\u4ea7&#xff1a;\u5b58\u5728 ABA \u98ce\u9669\u3001\u8282\u70b9\u5185\u5b58\u91ca\u653e\u4e0d\u5b89\u5168&#xff0c;\u591a\u7ebf\u7a0b\u4e0b\u76f4\u63a5delete\u8282\u70b9\u4f1a\u89e6\u53d1\u91ce\u6307\u9488\u95ee\u9898\u3002 \u65e0\u9501\u5f00\u53d1\u6700\u5927\u96be\u70b9\u4e0d\u662f CAS&#xff0c;\u800c\u662f\u5185\u5b58\u5b89\u5168\u56de\u6536\u3002 \u672c\u7bc7\u57fa\u4e8e Michael-Scott \u65e0\u9501\u961f\u5217&#xff0c;\u589e\u52a0\u98ce\u9669\u6307\u9488 Hazard Pointer \u7b80\u6613\u5185\u5b58\u56de\u6536\u89e3\u51b3 ABA \u4e0e\u5e76\u53d1\u6790\u6784\u95ee\u9898&#xff0c;\u9644\u5e26\u538b\u6d4b\u4ee3\u7801&#xff0c;\u4ee5\u5b9e\u9645\u8fd0\u884c\u6548\u679c\u4e3a\u51c6\u3002<\/p>\n<p>\u9879\u76ee\u4ed3\u5e93&#xff1a;high_performance_cpp_demo&#xff0c;\u4ee3\u7801\u8def\u5f84&#xff1a;lockfree\/lockfree_queue.hpp<\/p>\n<h3>1. \u57fa\u7840\u7248\u672c\u5b58\u5728\u7684 2 \u4e2a\u5de5\u7a0b\u81f4\u547d\u95ee\u9898<\/h3>\n<li>ABA \u95ee\u9898 \u7ebf\u7a0b\u8bfb\u53d6\u6307\u9488 A&#xff0c;\u5176\u4ed6\u7ebf\u7a0b\u5c06 A \u8282\u70b9\u51fa\u961f\u3001delete\u3001\u518d\u65b0\u5efa\u8282\u70b9\u590d\u7528\u540c\u6837\u5730\u5740\u3002\u539f\u7ebf\u7a0b CAS \u5224\u5b9a\u6210\u529f&#xff0c;\u9020\u6210\u903b\u8f91\u9519\u8bef\u3002<\/li>\n<li>\u5e76\u53d1\u6790\u6784\u91ce\u6307\u9488 \u591a\u4e2a\u7ebf\u7a0b\u540c\u65f6\u8bfb\u53d6\u540c\u4e00\u4e2a\u8282\u70b9&#xff0c;\u4e00\u4e2a\u7ebf\u7a0b\u6267\u884c delete&#xff0c;\u5176\u4f59\u7ebf\u7a0b\u8fd8\u5728\u8bbf\u95ee\u8be5\u8282\u70b9\u5185\u5b58&#xff0c;\u76f4\u63a5\u5d29\u6e83\u3002<\/li>\n<p>\u5355\u7eaf\u9760\u7248\u672c\u53f7\u53ea\u80fd\u7f13\u89e3\u6307\u9488 ABA&#xff0c;\u5e76\u53d1\u573a\u666f\u8282\u70b9\u4e0d\u80fd\u968f\u4fbf delete&#xff0c;\u9700\u8981\u5b89\u5168\u5185\u5b58\u56de\u6536\u673a\u5236&#xff0c;\u8fd9\u91cc\u9009\u7528\u4e1a\u754c\u5e38\u7528 Hazard Pointer&#xff08;\u98ce\u9669\u6307\u9488&#xff09;\u3002<\/p>\n<h3>2. Hazard Pointer \u7b80\u6613\u5b9e\u73b0\u539f\u7406<\/h3>\n<ul>\n<li>\u7ebf\u7a0b\u8bbf\u95ee\u8282\u70b9\u524d&#xff0c;\u628a\u8282\u70b9\u6307\u9488\u5b58\u5165\u81ea\u5df1\u7684 HP&#xff08;\u98ce\u9669\u6307\u9488&#xff09;&#xff0c;\u6807\u8bb0&#xff1a;\u8fd9\u4e2a\u8282\u70b9\u6211\u6b63\u5728\u7528&#xff0c;\u522b\u5220<\/li>\n<li>\u56de\u6536\u8282\u70b9\u65f6&#xff0c;\u5148\u653e\u5165\u5f85\u56de\u6536\u94fe\u8868&#xff1b;\u53ea\u6709\u6ca1\u6709\u4efb\u4f55\u7ebf\u7a0b HP \u5f15\u7528\u8be5\u8282\u70b9&#xff0c;\u624d\u771f\u6b63\u91ca\u653e\u5185\u5b58\u3002<\/li>\n<\/ul>\n<h3>3. \u5b8c\u6574\u5de5\u7a0b\u5316\u6e90\u7801 lockfree\/lockfree_queue.hpp<\/h3>\n<p>#ifndef LOCKFREE_QUEUE_HPP<br \/>\n#define LOCKFREE_QUEUE_HPP<\/p>\n<p>#include &lt;atomic&gt;<br \/>\n#include &lt;vector&gt;<br \/>\n#include &lt;thread&gt;<br \/>\n#include &lt;cassert&gt;<\/p>\n<p>\/\/ \u7b80\u6613HazardPointer \u89e3\u51b3\u65e0\u9501\u5185\u5b58\u5b89\u5168\u56de\u6536&#xff0c;\u907f\u514dABA&#043;\u91ce\u6307\u9488delete<br \/>\nclass HazardPointer {<br \/>\npublic:<br \/>\n    static constexpr int MAX_HP &#061; 100;<br \/>\n    struct HPRecord {<br \/>\n        std::atomic&lt;std::thread::id&gt; owner;<br \/>\n        std::atomic&lt;void*&gt; ptr;<br \/>\n    };<br \/>\n    static HPRecord hp_records[MAX_HP];<br \/>\n    std::atomic&lt;HPRecord*&gt; my_hp{nullptr};<br \/>\n    std::vector&lt;void*&gt; retired_list;<\/p>\n<p>    HazardPointer() {<br \/>\n        \/\/ \u5206\u914d\u5f53\u524d\u7ebf\u7a0b\u7684HP\u8bb0\u5f55<br \/>\n        for (int i &#061; 0; i &lt; MAX_HP; &#043;&#043;i) {<br \/>\n            std::thread::id empty_id{};<br \/>\n            if (hp_records[i].owner.compare_exchange_strong(empty_id, std::this_thread::get_id())) {<br \/>\n                my_hp &#061; &amp;hp_records[i];<br \/>\n                break;<br \/>\n            }<br \/>\n        }<br \/>\n    }<br \/>\n    ~HazardPointer() {<br \/>\n        retire_all();<br \/>\n        if(my_hp) my_hp.load()-&gt;owner.store(std::thread::id{});<br \/>\n    }<\/p>\n<p>    \/\/ \u6807\u8bb0ptr\u4e3a\u6b63\u5728\u4f7f\u7528<br \/>\n    void* protect(std::atomic&lt;void*&gt;&amp; src) {<br \/>\n        void* p;<br \/>\n        do {<br \/>\n            p &#061; src.load();<br \/>\n            if (!p) return nullptr;<br \/>\n            my_hp.load()-&gt;ptr.store(p);<br \/>\n        } while (src.load() !&#061; p);<br \/>\n        return p;<br \/>\n    }<\/p>\n<p>    \/\/ \u53d6\u6d88\u4fdd\u62a4<br \/>\n    void unprotect() {<br \/>\n        if(my_hp) my_hp.load()-&gt;ptr.store(nullptr);<br \/>\n    }<\/p>\n<p>    \/\/ \u5f85\u56de\u6536&#xff0c;\u5ef6\u8fdf\u5220\u9664<br \/>\n    void retire(void* p) {<br \/>\n        retired_list.push_back(p);<br \/>\n        if(retired_list.size() &gt;&#061; 100) {<br \/>\n            scan_retire();<br \/>\n        }<br \/>\n    }<\/p>\n<p>    void scan_retire() {<br \/>\n        std::vector&lt;void*&gt; remain;<br \/>\n        for(auto* p : retired_list) {<br \/>\n            bool hazard &#061; false;<br \/>\n            for(int i&#061;0;i&lt;MAX_HP;i&#043;&#043;) {<br \/>\n                void* hp_p &#061; hp_records[i].ptr.load();<br \/>\n                if(hp_p &#061;&#061; p) {<br \/>\n                    hazard &#061; true;<br \/>\n                    break;<br \/>\n                }<br \/>\n            }<br \/>\n            if(hazard) remain.push_back(p);<br \/>\n            else delete p;<br \/>\n        }<br \/>\n        retired_list.swap(remain);<br \/>\n    }<br \/>\n    void retire_all() {<br \/>\n        scan_retire();<br \/>\n        for(auto* p : retired_list) delete p;<br \/>\n        retired_list.clear();<br \/>\n    }<br \/>\n};<br \/>\nHazardPointer::HPRecord HazardPointer::hp_records[HazardPointer::MAX_HP]{};<\/p>\n<p>template&lt;typename T&gt;<br \/>\nclass LockFreeQueue<br \/>\n{<br \/>\nprivate:<br \/>\n    struct Node<br \/>\n    {<br \/>\n        T* data;<br \/>\n        std::atomic&lt;Node*&gt; next;<br \/>\n        Node() : data(nullptr), next(nullptr) {}<br \/>\n        explicit Node(T&amp;&amp; val) : data(new T(std::move(val))), next(nullptr) {}<br \/>\n        ~Node() { delete data; }<br \/>\n    };<\/p>\n<p>    std::atomic&lt;Node*&gt; head_;<br \/>\n    std::atomic&lt;Node*&gt; tail_;<br \/>\npublic:<br \/>\n    LockFreeQueue()<br \/>\n    {<br \/>\n        Node* dummy &#061; new Node();<br \/>\n        head_.store(dummy);<br \/>\n        tail_.store(dummy);<br \/>\n    }<\/p>\n<p>    ~LockFreeQueue()<br \/>\n    {<br \/>\n        Node* cur &#061; head_.load();<br \/>\n        while (cur !&#061; nullptr)<br \/>\n        {<br \/>\n            Node* temp &#061; cur;<br \/>\n            cur &#061; cur-&gt;next.load();<br \/>\n            delete temp;<br \/>\n        }<br \/>\n    }<\/p>\n<p>    \/\/ \u5165\u961f<br \/>\n    void enqueue(T&amp;&amp; val)<br \/>\n    {<br \/>\n        Node* new_node &#061; new Node(std::move(val));<br \/>\n        Node* old_tail;<br \/>\n        while (true)<br \/>\n        {<br \/>\n            old_tail &#061; tail_.load();<br \/>\n            Node* next &#061; old_tail-&gt;next.load();<br \/>\n            if (old_tail !&#061; tail_.load()) continue;<br \/>\n            if (next &#061;&#061; nullptr)<br \/>\n            {<br \/>\n                if (old_tail-&gt;next.compare_exchange_weak(next, new_node))<br \/>\n                {<br \/>\n                    tail_.compare_exchange_weak(old_tail, new_node);<br \/>\n                    break;<br \/>\n                }<br \/>\n            }<br \/>\n            else<br \/>\n            {<br \/>\n                tail_.compare_exchange_weak(old_tail, next);<br \/>\n            }<br \/>\n        }<br \/>\n    }<\/p>\n<p>    \/\/ \u51fa\u961f&#xff0c;\u589e\u52a0HP\u5185\u5b58\u4fdd\u62a4&#xff0c;\u5b89\u5168\u56de\u6536\u8282\u70b9<br \/>\n    bool dequeue(T&amp; out)<br \/>\n    {<br \/>\n        HazardPointer hp;<br \/>\n        Node* old_head;<br \/>\n        while (true)<br \/>\n        {<br \/>\n            old_head &#061; static_cast&lt;Node*&gt;(hp.protect(reinterpret_cast&lt;std::atomic&lt;void*&gt;&amp;&gt;(head_)));<br \/>\n            if (!old_head) return false;<br \/>\n            Node* old_tail &#061; tail_.load();<br \/>\n            Node* next &#061; old_head-&gt;next.load();<br \/>\n            if (old_head !&#061; head_.load()) continue;<br \/>\n            if (old_head &#061;&#061; old_tail)<br \/>\n            {<br \/>\n                if (next &#061;&#061; nullptr)<br \/>\n                {<br \/>\n                    hp.unprotect();<br \/>\n                    return false;<br \/>\n                }<br \/>\n                tail_.compare_exchange_weak(old_tail, next);<br \/>\n            }<br \/>\n            else<br \/>\n            {<br \/>\n                if (head_.compare_exchange_weak(old_head, next))<br \/>\n                {<br \/>\n                    out &#061; *(next-&gt;data);<br \/>\n                    hp.retire(old_head);<br \/>\n                    hp.unprotect();<br \/>\n                    return true;<br \/>\n                }<br \/>\n            }<br \/>\n        }<br \/>\n    }<br \/>\n};<\/p>\n<p>#endif<\/p>\n<p>4. \u538b\u6d4b\u4ee3\u7801 main.cpp&#xff08;\u5b9e\u6d4b\u541e\u5410&#xff09;<\/p>\n<p>#include &#034;lockfree\/lockfree_queue.hpp&#034;<br \/>\n#include &lt;iostream&gt;<br \/>\n#include &lt;thread&gt;<br \/>\n#include &lt;vector&gt;<br \/>\n#include &lt;chrono&gt;<br \/>\n#include &lt;atomic&gt;<\/p>\n<p>int main()<br \/>\n{<br \/>\n    LockFreeQueue&lt;int&gt; q;<br \/>\n    const int per_thread_cnt &#061; 500000;<br \/>\n    const int producer_cnt &#061; 4;<br \/>\n    const int consumer_cnt &#061; 4;<br \/>\n    std::vector&lt;std::thread&gt; threads;<br \/>\n    auto start &#061; std::chrono::high_resolution_clock::now();<\/p>\n<p>    \/\/ \u751f\u4ea7\u8005<br \/>\n    for(int i &#061; 0; i &lt; producer_cnt; i&#043;&#043;)<br \/>\n    {<br \/>\n        threads.emplace_back([&amp;q, i, per_thread_cnt](){<br \/>\n            for(int j &#061; 0; j &lt; per_thread_cnt; j&#043;&#043;)<br \/>\n            {<br \/>\n                q.enqueue(std::move(i * per_thread_cnt &#043; j));<br \/>\n            }<br \/>\n        });<br \/>\n    }<\/p>\n<p>    std::atomic&lt;long long&gt; sum{0};<br \/>\n    \/\/ \u6d88\u8d39\u8005<br \/>\n    for(int i &#061; 0; i &lt; consumer_cnt; i&#043;&#043;)<br \/>\n    {<br \/>\n        threads.emplace_back([&amp;q, &amp;sum](){<br \/>\n            int val;<br \/>\n            while(q.dequeue(val))<br \/>\n            {<br \/>\n                sum &#043;&#061; val;<br \/>\n            }<br \/>\n        });<br \/>\n    }<\/p>\n<p>    for(auto&amp; t : threads)<br \/>\n        t.join();<br \/>\n    auto end &#061; std::chrono::high_resolution_clock::now();<br \/>\n    auto dur &#061; std::chrono::duration_cast&lt;std::chrono::milliseconds&gt;(end &#8211; start);<br \/>\n    std::cout &lt;&lt; &#034;\u8017\u65f6&#xff1a;&#034; &lt;&lt; dur.count() &lt;&lt; &#034; ms\\\\n&#034;;<br \/>\n    std::cout &lt;&lt; &#034;sum &#061; &#034; &lt;&lt; sum.load() &lt;&lt; std::endl;<br \/>\n    return 0;<br \/>\n}<\/p>\n<p>\u7f16\u8bd1\u547d\u4ee4&#xff1a;<\/p>\n<p>g&#043;&#043; main.cpp -o lockfree_test -std&#061;c&#043;&#043;17 -pthread -O2<br \/>\n.\/lockfree_test<\/p>\n<p>\u5fc5\u987b\u52a0 -O2 \u4f18\u5316&#xff0c;\u5426\u5219\u6027\u80fd\u5b8c\u5168\u5931\u771f&#xff0c;\u751f\u4ea7\u73af\u5883\u4e5f\u662f\u5f00\u542f\u4f18\u5316\u3002<\/p>\n<h3>5. \u5b9e\u6d4b\u6548\u679c &amp; \u5bf9\u6bd4&#xff08;\u91cd\u70b9&#xff0c;\u8d34\u5408\u5b9e\u9645\u4f7f\u7528&#xff09;<\/h3>\n<p>\u6d4b\u8bd5\u73af\u5883&#xff1a;4 \u6838 8 \u7ebf\u7a0b CPU<\/p>\n<ul>\n<li>4 \u751f\u4ea7\u8005 &#043; 4 \u6d88\u8d39\u8005&#xff0c;\u6bcf\u4e2a\u751f\u4ea7\u8005\u5199\u5165 50 \u4e07\u6761\u6570\u636e<\/li>\n<\/ul>\n<li>\u65e0\u9501\u961f\u5217&#xff08;\u5e26 HP \u5185\u5b58\u56de\u6536&#xff09; \u603b\u8017\u65f6&#xff1a;\u7ea6 120~180ms&#xff0c;\u9ad8\u5e76\u53d1\u4e0b\u9501\u7ade\u4e89\u4e3a 0&#xff0c;\u65e0\u5185\u6838\u7ebf\u7a0b\u5207\u6362\u963b\u585e&#xff1b;CPU \u81ea\u65cb\u5360\u7528\u8f83\u9ad8\u3002<\/li>\n<li>std::mutex &#043; std::queue \u7248\u672c \u540c\u6837\u538b\u6d4b&#xff0c;\u8017\u65f6&#xff1a;350~600ms\u3002\u7ebf\u7a0b\u8d8a\u591a\u3001\u7ade\u4e89\u8d8a\u6fc0\u70c8&#xff0c;\u5dee\u8ddd\u8d8a\u5927\u3002<\/li>\n<p>\u2705 \u9002\u5408\u573a\u666f&#xff1a;\u9ad8\u5e76\u53d1\u7f51\u5173\u3001\u65e5\u5fd7\u961f\u5217\u3001IO \u4e8b\u4ef6\u961f\u5217\u3001\u6d88\u606f\u5206\u53d1 \u26a0\ufe0f \u4e0d\u9002\u5408\u573a\u666f&#xff1a;\u4f4e\u5e76\u53d1\u3001CPU \u8d44\u6e90\u7d27\u5f20\u673a\u5668&#xff0c;\u81ea\u65cb\u4f1a\u6d6a\u8d39 CPU&#xff0c;\u6b64\u65f6 mutex \u66f4\u5408\u9002\u3002<\/p>\n<h3>6. \u751f\u4ea7\u73af\u5883\u4f18\u5316\u5efa\u8bae\u3010\u65b0\u589e\u7ae0\u8282\u3011<\/h3>\n<p>\u4e0a\u9762\u4ee3\u7801\u662f\u5de5\u7a0b\u53ef\u7528\u57fa\u7840\u7248&#xff0c;\u843d\u5730\u5230\u7ebf\u4e0a\u9879\u76ee&#xff0c;\u8fd8\u53ef\u4ee5\u505a\u4e0b\u9762\u51e0\u8f6e\u4f18\u5316&#xff0c;\u517c\u987e\u6027\u80fd\u3001\u7a33\u5b9a\u6027\u3001\u8d44\u6e90\u5f00\u9500\u3002<\/p>\n<h4>6.1 \u5185\u5b58\u5206\u914d\u4f18\u5316<\/h4>\n<li>\u590d\u7528\u8282\u70b9\u5185\u5b58&#xff0c;\u51cf\u5c11 new\/delete \u642d\u914d\u4e0a\u4e00\u7bc7\u7684\u5185\u5b58\u6c60&#xff0c;\u9884\u5148\u5206\u914d\u961f\u5217\u8282\u70b9\u3002enqueue \u76f4\u63a5\u4ece\u5185\u5b58\u6c60\u62ff\u8282\u70b9&#xff0c;dequeue \u56de\u6536\u653e\u56de\u5185\u5b58\u6c60&#xff0c;\u5f7b\u5e95\u6d88\u9664\u9891\u7e41\u8c03\u7528 new \u5e26\u6765\u7684\u5806\u5f00\u9500&#xff0c;\u51cf\u5c11\u7cfb\u7edf\u8c03\u7528\u3002<\/li>\n<li>\u5185\u5b58\u5bf9\u9f50\u4e0e CacheLine \u586b\u5145&#xff08;\u4f2a\u5171\u4eab\u89c4\u907f&#xff09; head_\u3001tail_\u539f\u5b50\u53d8\u91cf\u653e\u5728\u4e0d\u540c Cache Line\u3002\u591a\u7ebf\u7a0b\u9891\u7e41\u8bfb\u5199\u539f\u5b50\u53d8\u91cf&#xff0c;\u4f1a\u89e6\u53d1 CPU \u7f13\u5b58\u4f2a\u5171\u4eab&#xff0c;\u4e25\u91cd\u964d\u4f4e\u6027\u80fd\u3002 \u4f7f\u7528alignas(64)\u5c06 head\u3001tail \u5206\u9694\u5230\u72ec\u7acb\u7f13\u5b58\u884c\u3002<\/li>\n<p>alignas(64) std::atomic&lt;Node*&gt; head_;<br \/>\nalignas(64) std::atomic&lt;Node*&gt; tail_;<\/p>\n<h4>6.2 \u81ea\u65cb\u7b56\u7565\u4f18\u5316&#xff08;\u964d\u4f4e CPU \u7a7a\u8f6c&#xff09;<\/h4>\n<p>\u539f\u751f while (true) \u65e0\u9650\u81ea\u65cb\u4f1a\u628a CPU \u6253\u6ee1\u3002<\/p>\n<ul>\n<li>\u77ed\u81ea\u65cb&#xff1a;CAS \u5931\u8d25\u5148\u5faa\u73af\u51e0\u5341\u6b21\u91cd\u8bd5&#xff1b;\u591a\u6b21\u5931\u8d25\u540e\u8c03\u7528std::this_thread::yield()\u8ba9\u51fa\u65f6\u95f4\u7247&#xff1b;<\/li>\n<li>\u4f4e\u8d1f\u8f7d\u573a\u666f&#xff1a;\u81ea\u65cb\u4e00\u5b9a\u6b21\u6570\u540e\u77ed\u6682 sleep&#xff0c;\u51cf\u5c11 CPU \u5360\u7528&#xff1b;<\/li>\n<\/ul>\n<p>\u9002\u7528&#xff1a;\u4e0d\u60f3\u5360\u7528\u8fc7\u9ad8 CPU \u7684\u670d\u52a1&#xff1b;\u4ee3\u4ef7&#xff1a;\u5ef6\u8fdf\u8f7b\u5fae\u4e0a\u5347\u3002<\/p>\n<h4>6.3 Hazard Pointer \u4f18\u5316<\/h4>\n<li>HP \u5168\u5c40\u6570\u7ec4\u53ef\u4ee5\u6539\u4e3a\u7ebf\u7a0b\u672c\u5730\u5b58\u50a8 thread_local&#xff0c;\u51cf\u5c11\u5168\u5c40\u6570\u7ec4\u7684\u7ade\u4e89&#xff1b;<\/li>\n<li>\u52a8\u6001\u8c03\u6574 retired_list \u9608\u503c&#xff1a;\u4e0d\u8981\u56fa\u5b9a 100&#xff0c;\u53ef\u6839\u636e\u961f\u5217\u538b\u529b\u52a8\u6001\u8c03\u6574\u56de\u6536\u89e6\u53d1\u65f6\u673a&#xff1b;<\/li>\n<li>\u5927\u89c4\u6a21\u96c6\u7fa4\u9879\u76ee&#xff0c;\u53ef\u66ff\u6362\u4e3a EBR&#xff08;Epoch \u56de\u6536&#xff09;&#xff0c;\u5f00\u9500\u6bd4 HP \u66f4\u4f4e\u3002<\/li>\n<h4>6.4 \u529f\u80fd\u4e0e\u5065\u58ee\u6027\u4f18\u5316<\/h4>\n<li>\u589e\u52a0\u961f\u5217\u957f\u5ea6\u7edf\u8ba1&#xff08;\u539f\u5b50\u8ba1\u6570&#xff09;&#xff0c;\u65b9\u4fbf\u76d1\u63a7\u961f\u5217\u5806\u79ef&#xff0c;\u505a\u9650\u6d41\u3001\u544a\u8b66&#xff1b;<\/li>\n<li>\u589e\u52a0\u8d85\u65f6\u51fa\u961f\u63a5\u53e3&#xff0c;\u907f\u514d\u6d88\u8d39\u8005\u65e0\u9650\u81ea\u65cb\u6b7b\u5faa\u73af&#xff1b;<\/li>\n<li>\u589e\u52a0\u5bb9\u91cf\u4e0a\u9650&#xff0c;\u9632\u6b62\u6d88\u606f\u66b4\u6da8\u5bfc\u81f4\u5185\u5b58\u6ea2\u51fa\u3002<\/li>\n<h4>6.5 \u7f16\u8bd1\u4e0e\u5e73\u53f0\u8c03\u4f18<\/h4>\n<li>\u751f\u4ea7\u7f16\u8bd1 -O2&#xff0c;\u4e0d\u8981\u7528 O3&#xff0c;O3 \u90e8\u5206\u6fc0\u8fdb\u4f18\u5316\u4f1a\u7834\u574f\u539f\u5b50\u8bed\u4e49&#xff1b;<\/li>\n<li>\u53ef\u589e\u52a0-march&#061;native&#xff0c;\u542f\u7528\u5f53\u524d CPU \u7684\u786c\u4ef6\u6307\u4ee4\u96c6&#xff0c;\u63d0\u5347 CAS \u6267\u884c\u6548\u7387&#xff1b;<\/li>\n<li>\u4e0d\u540c CPU \u67b6\u6784&#xff08;ARM\u3001\u9f99\u82af&#xff09;\u9700\u8981\u5355\u72ec\u538b\u6d4b&#xff0c;\u539f\u5b50\u6307\u4ee4\u6027\u80fd\u5dee\u5f02\u5f88\u5927\u3002<\/li>\n<h4>6.6 \u4e1a\u52a1\u9009\u578b\u4f18\u5316<\/h4>\n<li>\u8bfb\u5199\u4e0d\u5747\u8861\u573a\u666f&#xff1a;\u751f\u4ea7\u8005\u591a\u6d88\u8d39\u8005\u5c11&#xff0c;\u53ef\u8003\u8651\u6279\u91cf\u5165\u961f\u3001\u6279\u91cf\u51fa\u961f&#xff0c;\u51cf\u5c11 CAS \u8c03\u7528\u6b21\u6570&#xff1b;<\/li>\n<li>\u4e0d\u8981\u76f2\u76ee\u66ff\u6362&#xff1a;\u4f4e\u5e76\u53d1\u573a\u666f\u4f18\u5148\u7528std::mutex\u961f\u5217&#xff0c;\u4ee3\u7801\u7b80\u5355\u3001bug \u66f4\u5c11&#xff1b;<\/li>\n<li>\u591a\u751f\u4ea7\u8005\u5355\u6d88\u8d39\u8005\u573a\u666f&#xff1a;\u53ef\u4ee5\u7528 SPSC \u65e0\u9501\u961f\u5217&#xff0c;\u6bd4 MPSC \u5b9e\u73b0\u66f4\u7b80\u5355&#xff0c;\u6027\u80fd\u66f4\u9ad8\u3002<\/li>\n<h3>7. \u9762\u8bd5 &amp; \u5de5\u7a0b\u95ee\u7b54<\/h3>\n<li>\u4e3a\u4ec0\u4e48\u57fa\u7840\u65e0\u9501\u961f\u5217\u4e0d\u80fd\u76f4\u63a5\u4e0a\u751f\u4ea7&#xff1f;<\/li>\n<p>\u6838\u5fc3\u4e24\u70b9&#xff1a;\u8282\u70b9\u5e76\u53d1 delete \u4f1a\u91ce\u6307\u9488\u5d29\u6e83&#xff1b;\u5b58\u5728 ABA \u95ee\u9898\u3002\u5355\u7eaf\u7248\u672c\u53f7\u65e0\u6cd5\u89e3\u51b3\u6307\u9488\u5185\u5b58\u56de\u6536&#xff0c;Hazard Pointer \u662f\u5de5\u4e1a\u754c\u4e3b\u6d41\u65b9\u6848\u3002<\/p>\n<li>Hazard Pointer \u539f\u7406&#xff1f;<\/li>\n<p>\u7ebf\u7a0b\u8bbf\u95ee\u8282\u70b9\u524d\u6807\u8bb0\u8be5\u8282\u70b9\u6b63\u5728\u4f7f\u7528&#xff1b;\u56de\u6536\u8282\u70b9\u5ef6\u8fdf\u91ca\u653e&#xff0c;\u786e\u8ba4\u6ca1\u6709\u4efb\u4f55\u7ebf\u7a0b\u5f15\u7528\u540e\u518d delete\u3002<\/p>\n<li>\u65e0\u9501\u961f\u5217\u4e00\u5b9a\u6bd4 mutex \u5feb&#xff1f;<\/li>\n<p>\u4e0d\u662f&#xff01;\u4f4e\u5e76\u53d1\u573a\u666f mutex \u6027\u80fd\u66f4\u597d\u3002 \u53ea\u6709\u7ebf\u7a0b\u591a\u3001\u9501\u7ade\u4e89\u6fc0\u70c8\u65f6&#xff0c;\u65e0\u9501\u624d\u80fd\u4f53\u73b0\u4f18\u52bf&#xff1b;\u4ee3\u4ef7\u662f CPU \u81ea\u65cb&#xff0c;\u529f\u8017\u4e0a\u5347\u3002<\/p>\n<li>\u8fd8\u6709\u54ea\u4e9b\u65e0\u9501\u5185\u5b58\u56de\u6536\u65b9\u6848&#xff1f;<\/li>\n<p>Epoch Based Reclamation (EBR)\u3001Quiescent State Based Reclamation&#xff0c;HP \u5b9e\u73b0\u6700\u7b80\u5355&#xff0c;\u9002\u5408\u5165\u95e8\u3002<\/p>\n<h3>8. \u7cfb\u5217\u9884\u544a<\/h3>\n<p>\u9ad8\u6027\u80fd C&#043;&#043; \u5b9e\u6218\u7cfb\u5217&#xff1a;<\/p>\n<li>\u2705 \u591a\u7ebf\u7a0b\u4e0e std::mutex \u4e92\u65a5\u9501<\/li>\n<li>\u2705 \u5b9a\u957f\u5185\u5b58\u6c60<\/li>\n<li>\u2705 \u672c\u7bc7&#xff1a;\u5de5\u7a0b\u7248 CAS \u65e0\u9501\u961f\u5217&#xff08;HP \u5185\u5b58\u56de\u6536 &#043; \u751f\u4ea7\u4f18\u5316\u5efa\u8bae&#xff09;<\/li>\n<li>\u4e0b\u4e00\u7bc7&#xff1a;SIMD \u5411\u91cf\u6307\u4ee4&#xff0c;CPU \u7ea7\u5e76\u884c\u52a0\u901f&#xff0c;\u5b9e\u6d4b\u63d0\u901f\u500d\u6570<\/li>\n<p>\u5168\u90e8\u4ee3\u7801\u4e0a\u4f20\u5f00\u6e90\u4ed3\u5e93&#xff0c;O2 \u7f16\u8bd1\u76f4\u63a5\u8dd1\u538b\u6d4b\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e0a\u4e00\u7248\u6700\u7b80\u65e0\u9501\u961f\u5217&#xff0c;\u9002\u5408\u7406\u89e3\u539f\u7406&#xff0c;\u4f46\u4e0d\u80fd\u76f4\u63a5\u4e0a\u751f\u4ea7&#xff1a;\u5b58\u5728 ABA \u98ce\u9669\u3001\u8282\u70b9\u5185\u5b58\u91ca\u653e\u4e0d\u5b89\u5168&#xff0c;\u591a\u7ebf\u7a0b\u4e0b\u76f4\u63a5delete\u8282\u70b9\u4f1a\u89e6\u53d1\u91ce\u6307\u9488\u95ee\u9898\u3002 \u65e0\u9501\u5f00\u53d1\u6700\u5927\u96be\u70b9\u4e0d\u662f CAS&#xff0c;\u800c\u662f\u5185\u5b58\u5b89\u5168\u56de\u6536\u3002 \u672c\u7bc7\u57fa\u4e8e Michael-Scott \u65e0\u9501\u961f\u5217&#xff0c;\u589e\u52a0\u98ce\u9669\u6307\u9488 Hazard Pointer \u7b80\u6613\u5185\u5b58\u56de\u6536\u89e3\u51b3 ABA \u4e0e\u5e76\u53d1\u6790\u6784\u95ee\u9898&#xff0c;\u9644\u5e26\u538b\u6d4b\u4ee3\u7801&#xff0c;\u4ee5\u5b9e\u9645\u8fd0\u884c\u6548\u679c\u4e3a\u51c6\u3002\u9879\u76ee\u4ed3\u5e93&amp;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[12570,12569,55,3169,3434],"topic":[],"class_list":["post-110098","post","type-post","status-publish","format-standard","hentry","category-server","tag-hazardpointer","tag-12569","tag-c","tag-3169","tag-3434"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u9ad8\u6027\u80fd C++ \u5b9e\u6218 (\u4e09)\uff1a\u5de5\u7a0b\u53ef\u7528\u7248 CAS \u65e0\u9501\u961f\u5217\uff0c\u89e3\u51b3 ABA \u4e0e\u5185\u5b58\u6cc4\u6f0f\uff0c\u9ad8\u5e76\u53d1\u5b9e\u6d4b\uff08\u9644\u6e90\u7801\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/110098.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u9ad8\u6027\u80fd C++ \u5b9e\u6218 (\u4e09)\uff1a\u5de5\u7a0b\u53ef\u7528\u7248 CAS \u65e0\u9501\u961f\u5217\uff0c\u89e3\u51b3 ABA \u4e0e\u5185\u5b58\u6cc4\u6f0f\uff0c\u9ad8\u5e76\u53d1\u5b9e\u6d4b\uff08\u9644\u6e90\u7801\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u4e0a\u4e00\u7248\u6700\u7b80\u65e0\u9501\u961f\u5217&#xff0c;\u9002\u5408\u7406\u89e3\u539f\u7406&#xff0c;\u4f46\u4e0d\u80fd\u76f4\u63a5\u4e0a\u751f\u4ea7&#xff1a;\u5b58\u5728 ABA \u98ce\u9669\u3001\u8282\u70b9\u5185\u5b58\u91ca\u653e\u4e0d\u5b89\u5168&#xff0c;\u591a\u7ebf\u7a0b\u4e0b\u76f4\u63a5delete\u8282\u70b9\u4f1a\u89e6\u53d1\u91ce\u6307\u9488\u95ee\u9898\u3002 \u65e0\u9501\u5f00\u53d1\u6700\u5927\u96be\u70b9\u4e0d\u662f CAS&#xff0c;\u800c\u662f\u5185\u5b58\u5b89\u5168\u56de\u6536\u3002 \u672c\u7bc7\u57fa\u4e8e Michael-Scott \u65e0\u9501\u961f\u5217&#xff0c;\u589e\u52a0\u98ce\u9669\u6307\u9488 Hazard Pointer \u7b80\u6613\u5185\u5b58\u56de\u6536\u89e3\u51b3 ABA \u4e0e\u5e76\u53d1\u6790\u6784\u95ee\u9898&#xff0c;\u9644\u5e26\u538b\u6d4b\u4ee3\u7801&#xff0c;\u4ee5\u5b9e\u9645\u8fd0\u884c\u6548\u679c\u4e3a\u51c6\u3002\u9879\u76ee\u4ed3\u5e93&amp;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/110098.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-09-25T14:41:07+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/110098.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/110098.html\",\"name\":\"\u9ad8\u6027\u80fd C++ \u5b9e\u6218 (\u4e09)\uff1a\u5de5\u7a0b\u53ef\u7528\u7248 CAS \u65e0\u9501\u961f\u5217\uff0c\u89e3\u51b3 ABA \u4e0e\u5185\u5b58\u6cc4\u6f0f\uff0c\u9ad8\u5e76\u53d1\u5b9e\u6d4b\uff08\u9644\u6e90\u7801\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-09-25T14:41:07+00:00\",\"dateModified\":\"2026-09-25T14:41:07+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/110098.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/110098.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/110098.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u9ad8\u6027\u80fd C++ \u5b9e\u6218 (\u4e09)\uff1a\u5de5\u7a0b\u53ef\u7528\u7248 CAS \u65e0\u9501\u961f\u5217\uff0c\u89e3\u51b3 ABA \u4e0e\u5185\u5b58\u6cc4\u6f0f\uff0c\u9ad8\u5e76\u53d1\u5b9e\u6d4b\uff08\u9644\u6e90\u7801\uff09\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u9ad8\u6027\u80fd C++ \u5b9e\u6218 (\u4e09)\uff1a\u5de5\u7a0b\u53ef\u7528\u7248 CAS \u65e0\u9501\u961f\u5217\uff0c\u89e3\u51b3 ABA \u4e0e\u5185\u5b58\u6cc4\u6f0f\uff0c\u9ad8\u5e76\u53d1\u5b9e\u6d4b\uff08\u9644\u6e90\u7801\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/110098.html","og_locale":"zh_CN","og_type":"article","og_title":"\u9ad8\u6027\u80fd C++ \u5b9e\u6218 (\u4e09)\uff1a\u5de5\u7a0b\u53ef\u7528\u7248 CAS \u65e0\u9501\u961f\u5217\uff0c\u89e3\u51b3 ABA \u4e0e\u5185\u5b58\u6cc4\u6f0f\uff0c\u9ad8\u5e76\u53d1\u5b9e\u6d4b\uff08\u9644\u6e90\u7801\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u4e0a\u4e00\u7248\u6700\u7b80\u65e0\u9501\u961f\u5217&#xff0c;\u9002\u5408\u7406\u89e3\u539f\u7406&#xff0c;\u4f46\u4e0d\u80fd\u76f4\u63a5\u4e0a\u751f\u4ea7&#xff1a;\u5b58\u5728 ABA \u98ce\u9669\u3001\u8282\u70b9\u5185\u5b58\u91ca\u653e\u4e0d\u5b89\u5168&#xff0c;\u591a\u7ebf\u7a0b\u4e0b\u76f4\u63a5delete\u8282\u70b9\u4f1a\u89e6\u53d1\u91ce\u6307\u9488\u95ee\u9898\u3002 \u65e0\u9501\u5f00\u53d1\u6700\u5927\u96be\u70b9\u4e0d\u662f CAS&#xff0c;\u800c\u662f\u5185\u5b58\u5b89\u5168\u56de\u6536\u3002 \u672c\u7bc7\u57fa\u4e8e Michael-Scott \u65e0\u9501\u961f\u5217&#xff0c;\u589e\u52a0\u98ce\u9669\u6307\u9488 Hazard Pointer \u7b80\u6613\u5185\u5b58\u56de\u6536\u89e3\u51b3 ABA \u4e0e\u5e76\u53d1\u6790\u6784\u95ee\u9898&#xff0c;\u9644\u5e26\u538b\u6d4b\u4ee3\u7801&#xff0c;\u4ee5\u5b9e\u9645\u8fd0\u884c\u6548\u679c\u4e3a\u51c6\u3002\u9879\u76ee\u4ed3\u5e93&amp;","og_url":"https:\/\/www.wsisp.com\/helps\/110098.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-09-25T14:41:07+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"6 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/110098.html","url":"https:\/\/www.wsisp.com\/helps\/110098.html","name":"\u9ad8\u6027\u80fd C++ \u5b9e\u6218 (\u4e09)\uff1a\u5de5\u7a0b\u53ef\u7528\u7248 CAS \u65e0\u9501\u961f\u5217\uff0c\u89e3\u51b3 ABA \u4e0e\u5185\u5b58\u6cc4\u6f0f\uff0c\u9ad8\u5e76\u53d1\u5b9e\u6d4b\uff08\u9644\u6e90\u7801\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-09-25T14:41:07+00:00","dateModified":"2026-09-25T14:41:07+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/110098.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/110098.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/110098.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u9ad8\u6027\u80fd C++ \u5b9e\u6218 (\u4e09)\uff1a\u5de5\u7a0b\u53ef\u7528\u7248 CAS \u65e0\u9501\u961f\u5217\uff0c\u89e3\u51b3 ABA \u4e0e\u5185\u5b58\u6cc4\u6f0f\uff0c\u9ad8\u5e76\u53d1\u5b9e\u6d4b\uff08\u9644\u6e90\u7801\uff09"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/110098","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=110098"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/110098\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=110098"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=110098"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=110098"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=110098"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}