<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>协程 on 知识铺的博客</title>
    <link>https://index.zshipu.com/geek001/tags/%E5%8D%8F%E7%A8%8B/</link>
    <description>Recent content in 协程 on 知识铺的博客</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>zh-CN</language>
    <lastBuildDate>Fri, 04 Sep 2026 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://index.zshipu.com/geek001/tags/%E5%8D%8F%E7%A8%8B/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>自定义CoroutineDispatcher让VIP任务插队：从CPS状态机到优先级调度</title>
      <link>https://index.zshipu.com/geek001/post/20260904/%E8%87%AA%E5%AE%9A%E4%B9%89CoroutineDispatcher%E8%AE%A9VIP%E4%BB%BB%E5%8A%A1%E6%8F%92%E9%98%9F%E4%BB%8ECPS%E7%8A%B6%E6%80%81%E6%9C%BA%E5%88%B0%E4%BC%98%E5%85%88%E7%BA%A7%E8%B0%83%E5%BA%A6/</link>
      <pubDate>Fri, 04 Sep 2026 00:00:00 +0000</pubDate>
      <guid>https://index.zshipu.com/geek001/post/20260904/%E8%87%AA%E5%AE%9A%E4%B9%89CoroutineDispatcher%E8%AE%A9VIP%E4%BB%BB%E5%8A%A1%E6%8F%92%E9%98%9F%E4%BB%8ECPS%E7%8A%B6%E6%80%81%E6%9C%BA%E5%88%B0%E4%BC%98%E5%85%88%E7%BA%A7%E8%B0%83%E5%BA%A6/</guid>
      <description>自定义 CoroutineDispatcher 能让 VIP 任务通过优先级调度插队，同时用令牌桶限制执行速率、绑定线程亲和调度器。这些定制建立在 CPS 变换把 suspend 函数切分为带 label 的状态机之上，COROUTINE_SUSPENDED 充当暂停信使，javap 反编译即可直接验证字节码细节。 Kotlin协程把挂起函数编译成状态机后，自定义调度</description>
    </item>
  </channel>
</rss>
