{"id":39881,"date":"2023-12-11T14:49:07","date_gmt":"2023-12-11T06:49:07","guid":{"rendered":"https:\/\/wx.kaifamiao.info\/?p=39881"},"modified":"2023-12-11T14:49:07","modified_gmt":"2023-12-11T06:49:07","slug":"java%e7%ba%bf%e7%a8%8b%e6%b1%a0%e4%b8%83%e4%b8%aa%e5%8f%82%e6%95%b0%e8%af%a6%e8%a7%a3%ef%bc%9f","status":"publish","type":"post","link":"http:\/\/wx.kaifamiao.info\/index.php\/2023\/12\/11\/java%e7%ba%bf%e7%a8%8b%e6%b1%a0%e4%b8%83%e4%b8%aa%e5%8f%82%e6%95%b0%e8%af%a6%e8%a7%a3%ef%bc%9f\/","title":{"rendered":"Java\u7ebf\u7a0b\u6c60\u4e03\u4e2a\u53c2\u6570\u8be6\u89e3\uff1f"},"content":{"rendered":"<p>&#8220;`&#8221;<\/p>\n<p>&lt;p cid=&quot;&quot;n152&quot;&quot; mdtype=&quot;&quot;paragraph&quot;&quot; class=&quot;&quot;md-end-block md-p md-focus&quot;&quot; style=&quot;&quot;line-height: inherit; orphans: 4; margin: 0.8em 0px; white-space: pre-wrap; position: relative; color: rgb(51, 51, 51); font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;&quot;&quot;&gt;&lt;span md-inline=&quot;&quot;plain&quot;&quot; class=&quot;&quot;md-plain md-expand&quot;&quot;&gt;java\u591a\u7ebf\u7a0b\u5f00\u53d1\u65f6\uff0c\u5e38\u5e38\u7528\u5230\u7ebf\u7a0b\u6c60\u6280\u672f\uff0c\u8fd9\u7bc7\u6587\u7ae0\u662f\u5bf9\u521b\u5efajava\u7ebf\u7a0b\u6c60\u65f6\u7684\u4e03\u4e2a\u53c2\u6570\u7684\u8be6\u7ec6\u89e3\u91ca\u3002&lt;\/span&gt;&lt;\/p&gt;<\/p>\n<p>&lt;p cid=&quot;&quot;n155&quot;&quot; mdtype=&quot;&quot;paragraph&quot;&quot; class=&quot;&quot;md-end-block md-p&quot;&quot; style=&quot;&quot;line-height: inherit; orphans: 4; margin: 0.8em 0px; white-space: pre-wrap; position: relative; color: rgb(51, 51, 51); font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;&quot;&quot;&gt;&lt;span md-inline=&quot;&quot;plain&quot;&quot; class=&quot;&quot;md-plain&quot;&quot;&gt; &lt;\/span&gt;&lt;img src=&quot;&quot;http:\/\/res.mianshigee.com\/upload\/article\/20200417\/e6ba8f3f-9081-4889-83ed-f26485f8bbcb.png&quot;&quot; style=&quot;&quot;width: 510px;&quot;&quot;&gt;&lt;\/p&gt;<\/p>\n<p>&lt;p cid=&quot;&quot;n156&quot;&quot; mdtype=&quot;&quot;paragraph&quot;&quot; class=&quot;&quot;md-end-block md-p&quot;&quot; style=&quot;&quot;line-height: inherit; orphans: 4; margin: 0.8em 0px; white-space: pre-wrap; position: relative; color: rgb(51, 51, 51); font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;&quot;&quot;&gt;&lt;span md-inline=&quot;&quot;plain&quot;&quot; class=&quot;&quot;md-plain&quot;&quot;&gt;\u4ece\u6e90\u7801\u4e2d\u53ef\u4ee5\u770b\u51fa\uff0c\u7ebf\u7a0b\u6c60\u7684\u6784\u9020\u51fd\u6570\u67097\u4e2a\u53c2\u6570\uff0c\u5206\u522b\u662fcorePoolSize\u3001maximumPoolSize\u3001keepAliveTime\u3001unit\u3001workQueue\u3001threadFactory\u3001handler\u3002\u4e0b\u9762\u4f1a\u5bf9\u8fd97\u4e2a\u53c2\u6570\u4e00\u4e00\u89e3\u91ca\u3002&lt;\/span&gt;&lt;\/p&gt;<\/p>\n<p>&lt;p cid=&quot;&quot;n157&quot;&quot; mdtype=&quot;&quot;paragraph&quot;&quot; class=&quot;&quot;md-end-block md-p&quot;&quot; style=&quot;&quot;line-height: inherit; orphans: 4; margin: 0.8em 0px; white-space: pre-wrap; position: relative; color: rgb(51, 51, 51); font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;&quot;&quot;&gt;&lt;span md-inline=&quot;&quot;strong&quot;&quot; class=&quot;&quot;&quot;&quot;&gt;&lt;strong&gt;\u4e00\u3001corePoolSize \u7ebf\u7a0b\u6c60\u6838\u5fc3\u7ebf\u7a0b\u5927\u5c0f&lt;\/strong&gt;&lt;\/span&gt;&lt;\/p&gt;<\/p>\n<p>&lt;p cid=&quot;&quot;n158&quot;&quot; mdtype=&quot;&quot;paragraph&quot;&quot; class=&quot;&quot;md-end-block md-p&quot;&quot; style=&quot;&quot;line-height: inherit; orphans: 4; margin: 0.8em 0px; white-space: pre-wrap; position: relative; color: rgb(51, 51, 51); font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;&quot;&quot;&gt;&lt;span md-inline=&quot;&quot;plain&quot;&quot; class=&quot;&quot;md-plain&quot;&quot;&gt;\u7ebf\u7a0b\u6c60\u4e2d\u4f1a\u7ef4\u62a4\u4e00\u4e2a\u6700\u5c0f\u7684\u7ebf\u7a0b\u6570\u91cf\uff0c\u5373\u4f7f\u8fd9\u4e9b\u7ebf\u7a0b\u5904\u7406\u7a7a\u95f2\u72b6\u6001\uff0c\u4ed6\u4eec\u4e5f\u4e0d\u4f1a \u88ab\u9500\u6bc1\uff0c\u9664\u975e\u8bbe\u7f6e\u4e86allowCoreThreadTimeOut\u3002\u8fd9\u91cc\u7684\u6700\u5c0f\u7ebf\u7a0b\u6570\u91cf\u5373\u662fcorePoolSize\u3002&lt;\/span&gt;&lt;\/p&gt;<\/p>\n<p>&lt;p cid=&quot;&quot;n159&quot;&quot; mdtype=&quot;&quot;paragraph&quot;&quot; class=&quot;&quot;md-end-block md-p&quot;&quot; style=&quot;&quot;line-height: inherit; orphans: 4; margin: 0.8em 0px; white-space: pre-wrap; position: relative; color: rgb(51, 51, 51); font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;&quot;&quot;&gt;&lt;span md-inline=&quot;&quot;strong&quot;&quot; class=&quot;&quot;&quot;&quot;&gt;&lt;strong&gt;\u4e8c\u3001maximumPoolSize \u7ebf\u7a0b\u6c60\u6700\u5927\u7ebf\u7a0b\u6570\u91cf&lt;\/strong&gt;&lt;\/span&gt;&lt;\/p&gt;<\/p>\n<p>&lt;p cid=&quot;&quot;n160&quot;&quot; mdtype=&quot;&quot;paragraph&quot;&quot; class=&quot;&quot;md-end-block md-p&quot;&quot; style=&quot;&quot;line-height: inherit; orphans: 4; margin: 0.8em 0px; white-space: pre-wrap; position: relative; color: rgb(51, 51, 51); font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;&quot;&quot;&gt;&lt;span md-inline=&quot;&quot;plain&quot;&quot; class=&quot;&quot;md-plain&quot;&quot;&gt;\u4e00\u4e2a\u4efb\u52a1\u88ab\u63d0\u4ea4\u5230\u7ebf\u7a0b\u6c60\u540e\uff0c\u9996\u5148\u4f1a\u7f13\u5b58\u5230\u5de5\u4f5c\u961f\u5217\uff08\u540e\u9762\u4f1a\u4ecb\u7ecd\uff09\u4e2d\uff0c\u5982\u679c\u5de5\u4f5c\u961f\u5217\u6ee1\u4e86\uff0c\u5219\u4f1a\u521b\u5efa\u4e00\u4e2a\u65b0\u7ebf\u7a0b\uff0c\u7136\u540e\u4ece\u5de5\u4f5c\u961f\u5217\u4e2d\u7684\u53d6\u51fa\u4e00\u4e2a\u4efb\u52a1\u4ea4\u7531\u65b0\u7ebf\u7a0b\u6765\u5904\u7406\uff0c\u800c\u5c06\u521a\u63d0\u4ea4\u7684\u4efb\u52a1\u653e\u5165\u5de5\u4f5c\u961f\u5217\u3002\u7ebf\u7a0b\u6c60\u4e0d\u4f1a\u65e0\u9650\u5236\u7684\u53bb\u521b\u5efa\u65b0\u7ebf\u7a0b\uff0c\u5b83\u4f1a\u6709\u4e00\u4e2a\u6700\u5927\u7ebf\u7a0b\u6570\u91cf\u7684\u9650\u5236\uff0c\u8fd9\u4e2a\u6570\u91cf\u5373\u7531maximunPoolSize\u6765\u6307\u5b9a\u3002&lt;\/span&gt;&lt;\/p&gt;<\/p>\n<p>&lt;p cid=&quot;&quot;n161&quot;&quot; mdtype=&quot;&quot;paragraph&quot;&quot; class=&quot;&quot;md-end-block md-p&quot;&quot; style=&quot;&quot;line-height: inherit; orphans: 4; margin: 0.8em 0px; white-space: pre-wrap; position: relative; color: rgb(51, 51, 51); font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;&quot;&quot;&gt;&lt;span md-inline=&quot;&quot;strong&quot;&quot; class=&quot;&quot;&quot;&quot;&gt;&lt;strong&gt;\u4e09\u3001keepAliveTime \u7a7a\u95f2\u7ebf\u7a0b\u5b58\u6d3b\u65f6\u95f4&lt;\/strong&gt;&lt;\/span&gt;&lt;\/p&gt;<\/p>\n<p>&lt;p cid=&quot;&quot;n162&quot;&quot; mdtype=&quot;&quot;paragraph&quot;&quot; class=&quot;&quot;md-end-block md-p&quot;&quot; style=&quot;&quot;line-height: inherit; orphans: 4; margin: 0.8em 0px; white-space: pre-wrap; position: relative; color: rgb(51, 51, 51); font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;&quot;&quot;&gt;&lt;span md-inline=&quot;&quot;plain&quot;&quot; class=&quot;&quot;md-plain&quot;&quot;&gt;\u4e00\u4e2a\u7ebf\u7a0b\u5982\u679c\u5904\u4e8e\u7a7a\u95f2\u72b6\u6001\uff0c\u5e76\u4e14\u5f53\u524d\u7684\u7ebf\u7a0b\u6570\u91cf\u5927\u4e8ecorePoolSize\uff0c\u90a3\u4e48\u5728\u6307\u5b9a\u65f6\u95f4\u540e\uff0c\u8fd9\u4e2a\u7a7a\u95f2\u7ebf\u7a0b\u4f1a\u88ab\u9500\u6bc1\uff0c\u8fd9\u91cc\u7684\u6307\u5b9a\u65f6\u95f4\u7531keepAliveTime\u6765\u8bbe\u5b9a&lt;\/span&gt;&lt;\/p&gt;<\/p>\n<p>&lt;p cid=&quot;&quot;n163&quot;&quot; mdtype=&quot;&quot;paragraph&quot;&quot; class=&quot;&quot;md-end-block md-p&quot;&quot; style=&quot;&quot;line-height: inherit; orphans: 4; margin: 0.8em 0px; white-space: pre-wrap; position: relative; color: rgb(51, 51, 51); font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;&quot;&quot;&gt;&lt;span md-inline=&quot;&quot;strong&quot;&quot; class=&quot;&quot;&quot;&quot;&gt;&lt;strong&gt;\u56db\u3001unit \u7a7a\u95f4\u7ebf\u7a0b\u5b58\u6d3b\u65f6\u95f4\u5355\u4f4d&lt;\/strong&gt;&lt;\/span&gt;&lt;\/p&gt;<\/p>\n<p>&lt;p cid=&quot;&quot;n164&quot;&quot; mdtype=&quot;&quot;paragraph&quot;&quot; class=&quot;&quot;md-end-block md-p&quot;&quot; style=&quot;&quot;line-height: inherit; orphans: 4; margin: 0.8em 0px; white-space: pre-wrap; position: relative; color: rgb(51, 51, 51); font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;&quot;&quot;&gt;&lt;span md-inline=&quot;&quot;plain&quot;&quot; class=&quot;&quot;md-plain&quot;&quot;&gt;keepAliveTime\u7684\u8ba1\u91cf\u5355\u4f4d&lt;\/span&gt;&lt;\/p&gt;<\/p>\n<p>&lt;p cid=&quot;&quot;n165&quot;&quot; mdtype=&quot;&quot;paragraph&quot;&quot; class=&quot;&quot;md-end-block md-p&quot;&quot; style=&quot;&quot;line-height: inherit; orphans: 4; margin: 0.8em 0px; white-space: pre-wrap; position: relative; color: rgb(51, 51, 51); font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;&quot;&quot;&gt;&lt;span md-inline=&quot;&quot;strong&quot;&quot; class=&quot;&quot;&quot;&quot;&gt;&lt;strong&gt;\u4e94\u3001workQueue \u5de5\u4f5c\u961f\u5217&lt;\/strong&gt;&lt;\/span&gt;&lt;\/p&gt;<\/p>\n<p>&lt;p cid=&quot;&quot;n166&quot;&quot; mdtype=&quot;&quot;paragraph&quot;&quot; class=&quot;&quot;md-end-block md-p&quot;&quot; style=&quot;&quot;line-height: inherit; orphans: 4; margin: 0.8em 0px; white-space: pre-wrap; position: relative; color: rgb(51, 51, 51); font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;&quot;&quot;&gt;&lt;span md-inline=&quot;&quot;plain&quot;&quot; class=&quot;&quot;md-plain&quot;&quot;&gt;\u65b0\u4efb\u52a1\u88ab\u63d0\u4ea4\u540e\uff0c\u4f1a\u5148\u8fdb\u5165\u5230\u6b64\u5de5\u4f5c\u961f\u5217\u4e2d\uff0c\u4efb\u52a1\u8c03\u5ea6\u65f6\u518d\u4ece\u961f\u5217\u4e2d\u53d6\u51fa\u4efb\u52a1\u3002jdk\u4e2d\u63d0\u4f9b\u4e86\u56db\u79cd\u5de5\u4f5c\u961f\u5217\uff1a&lt;\/span&gt;&lt;\/p&gt;<\/p>\n<p>&lt;p cid=&quot;&quot;n167&quot;&quot; mdtype=&quot;&quot;paragraph&quot;&quot; class=&quot;&quot;md-end-block md-p&quot;&quot; style=&quot;&quot;line-height: inherit; orphans: 4; margin: 0.8em 0px; white-space: pre-wrap; position: relative; color: rgb(51, 51, 51); font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;&quot;&quot;&gt;&lt;span md-inline=&quot;&quot;plain&quot;&quot; class=&quot;&quot;md-plain&quot;&quot;&gt;\u2460ArrayBlockingQueue&lt;\/span&gt;&lt;\/p&gt;<\/p>\n<p>&lt;p cid=&quot;&quot;n168&quot;&quot; mdtype=&quot;&quot;paragraph&quot;&quot; class=&quot;&quot;md-end-block md-p&quot;&quot; style=&quot;&quot;line-height: inherit; orphans: 4; margin: 0.8em 0px; white-space: pre-wrap; position: relative; color: rgb(51, 51, 51); font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;&quot;&quot;&gt;&lt;span md-inline=&quot;&quot;plain&quot;&quot; class=&quot;&quot;md-plain&quot;&quot;&gt;\u57fa\u4e8e\u6570\u7ec4\u7684\u6709\u754c\u963b\u585e\u961f\u5217\uff0c\u6309FIFO\u6392\u5e8f\u3002\u65b0\u4efb\u52a1\u8fdb\u6765\u540e\uff0c\u4f1a\u653e\u5230\u8be5\u961f\u5217\u7684\u961f\u5c3e\uff0c\u6709\u754c\u7684\u6570\u7ec4\u53ef\u4ee5\u9632\u6b62\u8d44\u6e90\u8017\u5c3d\u95ee\u9898\u3002\u5f53\u7ebf\u7a0b\u6c60\u4e2d\u7ebf\u7a0b\u6570\u91cf\u8fbe\u5230corePoolSize\u540e\uff0c\u518d\u6709\u65b0\u4efb\u52a1\u8fdb\u6765\uff0c\u5219\u4f1a\u5c06\u4efb\u52a1\u653e\u5165\u8be5\u961f\u5217\u7684\u961f\u5c3e\uff0c\u7b49\u5f85\u88ab\u8c03\u5ea6\u3002\u5982\u679c\u961f\u5217\u5df2\u7ecf\u662f\u6ee1\u7684\uff0c\u5219\u521b\u5efa\u4e00\u4e2a\u65b0\u7ebf\u7a0b\uff0c\u5982\u679c\u7ebf\u7a0b\u6570\u91cf\u5df2\u7ecf\u8fbe\u5230maxPoolSize\uff0c\u5219\u4f1a\u6267\u884c\u62d2\u7edd\u7b56\u7565\u3002&lt;\/span&gt;&lt;\/p&gt;<\/p>\n<p>&lt;p cid=&quot;&quot;n169&quot;&quot; mdtype=&quot;&quot;paragraph&quot;&quot; class=&quot;&quot;md-end-block md-p&quot;&quot; style=&quot;&quot;line-height: inherit; orphans: 4; margin: 0.8em 0px; white-space: pre-wrap; position: relative; color: rgb(51, 51, 51); font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;&quot;&quot;&gt;&lt;span md-inline=&quot;&quot;plain&quot;&quot; class=&quot;&quot;md-plain&quot;&quot;&gt;\u2461LinkedBlockingQuene&lt;\/span&gt;&lt;\/p&gt;<\/p>\n<p>&lt;p cid=&quot;&quot;n170&quot;&quot; mdtype=&quot;&quot;paragraph&quot;&quot; class=&quot;&quot;md-end-block md-p&quot;&quot; style=&quot;&quot;line-height: inherit; orphans: 4; margin: 0.8em 0px; white-space: pre-wrap; position: relative; color: rgb(51, 51, 51); font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;&quot;&quot;&gt;&lt;span md-inline=&quot;&quot;plain&quot;&quot; class=&quot;&quot;md-plain&quot;&quot;&gt;\u57fa\u4e8e\u94fe\u8868\u7684\u65e0\u754c\u963b\u585e\u961f\u5217\uff08\u5176\u5b9e\u6700\u5927\u5bb9\u91cf\u4e3aInterger.MAX\uff09\uff0c\u6309\u7167FIFO\u6392\u5e8f\u3002\u7531\u4e8e\u8be5\u961f\u5217\u7684\u8fd1\u4f3c\u65e0\u754c\u6027\uff0c\u5f53\u7ebf\u7a0b\u6c60\u4e2d\u7ebf\u7a0b\u6570\u91cf\u8fbe\u5230corePoolSize\u540e\uff0c\u518d\u6709\u65b0\u4efb\u52a1\u8fdb\u6765\uff0c\u4f1a\u4e00\u76f4\u5b58\u5165\u8be5\u961f\u5217\uff0c\u800c\u4e0d\u4f1a\u53bb\u521b\u5efa\u65b0\u7ebf\u7a0b\u76f4\u5230maxPoolSize\uff0c\u56e0\u6b64\u4f7f\u7528\u8be5\u5de5\u4f5c\u961f\u5217\u65f6\uff0c\u53c2\u6570maxPoolSize\u5176\u5b9e\u662f\u4e0d\u8d77\u4f5c\u7528\u7684\u3002&lt;\/span&gt;&lt;\/p&gt;<\/p>\n<p>&lt;p cid=&quot;&quot;n171&quot;&quot; mdtype=&quot;&quot;paragraph&quot;&quot; class=&quot;&quot;md-end-block md-p&quot;&quot; style=&quot;&quot;line-height: inherit; orphans: 4; margin: 0.8em 0px; white-space: pre-wrap; position: relative; color: rgb(51, 51, 51); font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;&quot;&quot;&gt;&lt;span md-inline=&quot;&quot;plain&quot;&quot; class=&quot;&quot;md-plain&quot;&quot;&gt;\u2462SynchronousQuene&lt;\/span&gt;&lt;\/p&gt;<\/p>\n<p>&lt;p cid=&quot;&quot;n172&quot;&quot; mdtype=&quot;&quot;paragraph&quot;&quot; class=&quot;&quot;md-end-block md-p&quot;&quot; style=&quot;&quot;line-height: inherit; orphans: 4; margin: 0.8em 0px; white-space: pre-wrap; position: relative; color: rgb(51, 51, 51); font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;&quot;&quot;&gt;&lt;span md-inline=&quot;&quot;plain&quot;&quot; class=&quot;&quot;md-plain&quot;&quot;&gt;\u4e00\u4e2a\u4e0d\u7f13\u5b58\u4efb\u52a1\u7684\u963b\u585e\u961f\u5217\uff0c\u751f\u4ea7\u8005\u653e\u5165\u4e00\u4e2a\u4efb\u52a1\u5fc5\u987b\u7b49\u5230\u6d88\u8d39\u8005\u53d6\u51fa\u8fd9\u4e2a\u4efb\u52a1\u3002\u4e5f\u5c31\u662f\u8bf4\u65b0\u4efb\u52a1\u8fdb\u6765\u65f6\uff0c\u4e0d\u4f1a\u7f13\u5b58\uff0c\u800c\u662f\u76f4\u63a5\u88ab\u8c03\u5ea6\u6267\u884c\u8be5\u4efb\u52a1\uff0c\u5982\u679c\u6ca1\u6709\u53ef\u7528\u7ebf\u7a0b\uff0c\u5219\u521b\u5efa\u65b0\u7ebf\u7a0b\uff0c\u5982\u679c\u7ebf\u7a0b\u6570\u91cf\u8fbe\u5230maxPoolSize\uff0c\u5219\u6267\u884c\u62d2\u7edd\u7b56\u7565\u3002&lt;\/span&gt;&lt;\/p&gt;<\/p>\n<p>&lt;p cid=&quot;&quot;n173&quot;&quot; mdtype=&quot;&quot;paragraph&quot;&quot; class=&quot;&quot;md-end-block md-p&quot;&quot; style=&quot;&quot;line-height: inherit; orphans: 4; margin: 0.8em 0px; white-space: pre-wrap; position: relative; color: rgb(51, 51, 51); font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;&quot;&quot;&gt;&lt;span md-inline=&quot;&quot;plain&quot;&quot; class=&quot;&quot;md-plain&quot;&quot;&gt;\u2463PriorityBlockingQueue&lt;\/span&gt;&lt;\/p&gt;<\/p>\n<p>&lt;p cid=&quot;&quot;n174&quot;&quot; mdtype=&quot;&quot;paragraph&quot;&quot; class=&quot;&quot;md-end-block md-p&quot;&quot; style=&quot;&quot;line-height: inherit; orphans: 4; margin: 0.8em 0px; white-space: pre-wrap; position: relative; color: rgb(51, 51, 51); font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;&quot;&quot;&gt;&lt;span md-inline=&quot;&quot;plain&quot;&quot; class=&quot;&quot;md-plain&quot;&quot;&gt;\u5177\u6709\u4f18\u5148\u7ea7\u7684\u65e0\u754c\u963b\u585e\u961f\u5217\uff0c\u4f18\u5148\u7ea7\u901a\u8fc7\u53c2\u6570Comparator\u5b9e\u73b0\u3002&lt;\/span&gt;&lt;\/p&gt;<\/p>\n<p>&lt;p cid=&quot;&quot;n175&quot;&quot; mdtype=&quot;&quot;paragraph&quot;&quot; class=&quot;&quot;md-end-block md-p&quot;&quot; style=&quot;&quot;line-height: inherit; orphans: 4; margin: 0.8em 0px; white-space: pre-wrap; position: relative; color: rgb(51, 51, 51); font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;&quot;&quot;&gt;&lt;span md-inline=&quot;&quot;strong&quot;&quot; class=&quot;&quot;&quot;&quot;&gt;&lt;strong&gt;\u516d\u3001threadFactory \u7ebf\u7a0b\u5de5\u5382&lt;\/strong&gt;&lt;\/span&gt;&lt;\/p&gt;<\/p>\n<p>&lt;p cid=&quot;&quot;n176&quot;&quot; mdtype=&quot;&quot;paragraph&quot;&quot; class=&quot;&quot;md-end-block md-p&quot;&quot; style=&quot;&quot;line-height: inherit; orphans: 4; margin: 0.8em 0px; white-space: pre-wrap; position: relative; color: rgb(51, 51, 51); font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;&quot;&quot;&gt;&lt;span md-inline=&quot;&quot;plain&quot;&quot; class=&quot;&quot;md-plain&quot;&quot;&gt;\u521b\u5efa\u4e00\u4e2a\u65b0\u7ebf\u7a0b\u65f6\u4f7f\u7528\u7684\u5de5\u5382\uff0c\u53ef\u4ee5\u7528\u6765\u8bbe\u5b9a\u7ebf\u7a0b\u540d\u3001\u662f\u5426\u4e3adaemon\u7ebf\u7a0b\u7b49\u7b49&lt;\/span&gt;&lt;\/p&gt;<\/p>\n<p>&lt;p cid=&quot;&quot;n177&quot;&quot; mdtype=&quot;&quot;paragraph&quot;&quot; class=&quot;&quot;md-end-block md-p&quot;&quot; style=&quot;&quot;line-height: inherit; orphans: 4; margin: 0.8em 0px; white-space: pre-wrap; position: relative; color: rgb(51, 51, 51); font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;&quot;&quot;&gt;&lt;span md-inline=&quot;&quot;strong&quot;&quot; class=&quot;&quot;&quot;&quot;&gt;&lt;strong&gt;\u4e03\u3001handler \u62d2\u7edd\u7b56\u7565&lt;\/strong&gt;&lt;\/span&gt;&lt;\/p&gt;<\/p>\n<p>&lt;p cid=&quot;&quot;n178&quot;&quot; mdtype=&quot;&quot;paragraph&quot;&quot; class=&quot;&quot;md-end-block md-p&quot;&quot; style=&quot;&quot;line-height: inherit; orphans: 4; margin: 0.8em 0px; white-space: pre-wrap; position: relative; color: rgb(51, 51, 51); font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;&quot;&quot;&gt;&lt;span md-inline=&quot;&quot;plain&quot;&quot; class=&quot;&quot;md-plain&quot;&quot;&gt;\u5f53\u5de5\u4f5c\u961f\u5217\u4e2d\u7684\u4efb\u52a1\u5df2\u5230\u8fbe\u6700\u5927\u9650\u5236\uff0c\u5e76\u4e14\u7ebf\u7a0b\u6c60\u4e2d\u7684\u7ebf\u7a0b\u6570\u91cf\u4e5f\u8fbe\u5230\u6700\u5927\u9650\u5236\uff0c\u8fd9\u65f6\u5982\u679c\u6709\u65b0\u4efb\u52a1\u63d0\u4ea4\u8fdb\u6765\uff0c\u8be5\u5982\u4f55\u5904\u7406\u5462\u3002\u8fd9\u91cc\u7684\u62d2\u7edd\u7b56\u7565\uff0c\u5c31\u662f\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\u7684\uff0cjdk\u4e2d\u63d0\u4f9b\u4e864\u4e2d\u62d2\u7edd\u7b56\u7565\uff1a&lt;\/span&gt;&lt;\/p&gt;<\/p>\n<p>&lt;p cid=&quot;&quot;n179&quot;&quot; mdtype=&quot;&quot;paragraph&quot;&quot; class=&quot;&quot;md-end-block md-p&quot;&quot; style=&quot;&quot;line-height: inherit; orphans: 4; margin: 0.8em 0px; white-space: pre-wrap; position: relative; color: rgb(51, 51, 51); font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;&quot;&quot;&gt;&lt;span md-inline=&quot;&quot;plain&quot;&quot; class=&quot;&quot;md-plain&quot;&quot;&gt;\u2460CallerRunsPolicy&lt;\/span&gt;&lt;\/p&gt;<\/p>\n<p>&lt;p cid=&quot;&quot;n180&quot;&quot; mdtype=&quot;&quot;paragraph&quot;&quot; class=&quot;&quot;md-end-block md-p&quot;&quot; style=&quot;&quot;line-height: inherit; orphans: 4; margin: 0.8em 0px; white-space: pre-wrap; position: relative; color: rgb(51, 51, 51); font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;&quot;&quot;&gt;&lt;span md-inline=&quot;&quot;plain&quot;&quot; class=&quot;&quot;md-plain&quot;&quot;&gt;\u8be5\u7b56\u7565\u4e0b\uff0c\u5728\u8c03\u7528\u8005\u7ebf\u7a0b\u4e2d\u76f4\u63a5\u6267\u884c\u88ab\u62d2\u7edd\u4efb\u52a1\u7684run\u65b9\u6cd5\uff0c\u9664\u975e\u7ebf\u7a0b\u6c60\u5df2\u7ecfshutdown\uff0c\u5219\u76f4\u63a5\u629b\u5f03\u4efb\u52a1\u3002&lt;\/span&gt;&lt;\/p&gt;<\/p>\n<p>&lt;p cid=&quot;&quot;n181&quot;&quot; mdtype=&quot;&quot;paragraph&quot;&quot; class=&quot;&quot;md-end-block md-p&quot;&quot; style=&quot;&quot;line-height: inherit; orphans: 4; margin: 0.8em 0px; white-space: pre-wrap; position: relative; color: rgb(51, 51, 51); font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;&quot;&quot;&gt;&lt;\/p&gt;<\/p>\n<p>&lt;p cid=&quot;&quot;n182&quot;&quot; mdtype=&quot;&quot;paragraph&quot;&quot; class=&quot;&quot;md-end-block md-p&quot;&quot; style=&quot;&quot;line-height: inherit; orphans: 4; margin: 0.8em 0px; white-space: pre-wrap; position: relative; color: rgb(51, 51, 51); font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;&quot;&quot;&gt;&lt;span md-inline=&quot;&quot;plain&quot;&quot; class=&quot;&quot;md-plain md-expand&quot;&quot;&gt;\u2461AbortPolicy&lt;\/span&gt;&lt;\/p&gt;<\/p>\n<p>&lt;p cid=&quot;&quot;n183&quot;&quot; mdtype=&quot;&quot;paragraph&quot;&quot; class=&quot;&quot;md-end-block md-p&quot;&quot; style=&quot;&quot;line-height: inherit; orphans: 4; margin: 0.8em 0px; white-space: pre-wrap; position: relative; color: rgb(51, 51, 51); font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;&quot;&quot;&gt;&lt;span md-inline=&quot;&quot;plain&quot;&quot; class=&quot;&quot;md-plain&quot;&quot;&gt;\u8be5\u7b56\u7565\u4e0b\uff0c\u76f4\u63a5\u4e22\u5f03\u4efb\u52a1\uff0c\u5e76\u629b\u51faRejectedExecutionException\u5f02\u5e38\u3002&lt;\/span&gt;&lt;\/p&gt;<\/p>\n<p>&lt;p cid=&quot;&quot;n184&quot;&quot; mdtype=&quot;&quot;paragraph&quot;&quot; class=&quot;&quot;md-end-block md-p&quot;&quot; style=&quot;&quot;line-height: inherit; orphans: 4; margin: 0.8em 0px; white-space: pre-wrap; position: relative; color: rgb(51, 51, 51); font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;&quot;&quot;&gt;&lt;\/p&gt;<\/p>\n<p>&lt;p cid=&quot;&quot;n185&quot;&quot; mdtype=&quot;&quot;paragraph&quot;&quot; class=&quot;&quot;md-end-block md-p&quot;&quot; style=&quot;&quot;line-height: inherit; orphans: 4; margin: 0.8em 0px; white-space: pre-wrap; position: relative; color: rgb(51, 51, 51); font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;&quot;&quot;&gt;&lt;span md-inline=&quot;&quot;plain&quot;&quot; class=&quot;&quot;md-plain&quot;&quot;&gt;\u2462DiscardPolicy&lt;\/span&gt;&lt;\/p&gt;<\/p>\n<p>&lt;p cid=&quot;&quot;n186&quot;&quot; mdtype=&quot;&quot;paragraph&quot;&quot; class=&quot;&quot;md-end-block md-p&quot;&quot; style=&quot;&quot;line-height: inherit; orphans: 4; margin: 0.8em 0px; white-space: pre-wrap; position: relative; color: rgb(51, 51, 51); font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;&quot;&quot;&gt;&lt;span md-inline=&quot;&quot;plain&quot;&quot; class=&quot;&quot;md-plain&quot;&quot;&gt;\u8be5\u7b56\u7565\u4e0b\uff0c\u76f4\u63a5\u4e22\u5f03\u4efb\u52a1\uff0c\u4ec0\u4e48\u90fd\u4e0d\u505a\u3002&lt;\/span&gt;&lt;\/p&gt;<\/p>\n<p>&lt;p cid=&quot;&quot;n187&quot;&quot; mdtype=&quot;&quot;paragraph&quot;&quot; class=&quot;&quot;md-end-block md-p&quot;&quot; style=&quot;&quot;line-height: inherit; orphans: 4; margin: 0.8em 0px; white-space: pre-wrap; position: relative; color: rgb(51, 51, 51); font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;&quot;&quot;&gt;&lt;\/p&gt;<\/p>\n<p>&lt;p cid=&quot;&quot;n188&quot;&quot; mdtype=&quot;&quot;paragraph&quot;&quot; class=&quot;&quot;md-end-block md-p&quot;&quot; style=&quot;&quot;line-height: inherit; orphans: 4; margin: 0.8em 0px; white-space: pre-wrap; position: relative; color: rgb(51, 51, 51); font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;&quot;&quot;&gt;&lt;span md-inline=&quot;&quot;plain&quot;&quot; class=&quot;&quot;md-plain&quot;&quot;&gt;\u2463DiscardOldestPolicy&lt;\/span&gt;&lt;\/p&gt;<\/p>\n<p>&lt;p cid=&quot;&quot;n189&quot;&quot; mdtype=&quot;&quot;paragraph&quot;&quot; class=&quot;&quot;md-end-block md-p&quot;&quot; style=&quot;&quot;line-height: inherit; orphans: 4; margin: 0.8em 0px; white-space: pre-wrap; position: relative; color: rgb(51, 51, 51); font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;&quot;&quot;&gt;&lt;span md-inline=&quot;&quot;plain&quot;&quot; class=&quot;&quot;md-plain md-expand&quot;&quot;&gt;\u8be5\u7b56\u7565\u4e0b\uff0c\u629b\u5f03\u8fdb\u5165\u961f\u5217\u6700\u65e9\u7684\u90a3\u4e2a\u4efb\u52a1\uff0c\u7136\u540e\u5c1d\u8bd5\u628a\u8fd9\u6b21\u62d2\u7edd\u7684\u4efb\u52a1\u653e\u5165\u961f\u5217&lt;\/span&gt;&lt;\/p&gt;<\/p>\n<p>&lt;pre&gt;&lt;code&gt;            &quot;&#8220;`<br \/>\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>&#8220;`&#8221; &lt;p cid=&quot;&quot;n152&quot;&quot;  [&hellip;]<\/p>\n","protected":false},"author":7,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[101],"tags":[],"class_list":["post-39881","post","type-post","status-publish","format-standard","hentry","category-c"],"_links":{"self":[{"href":"http:\/\/wx.kaifamiao.info\/index.php\/wp-json\/wp\/v2\/posts\/39881","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/wx.kaifamiao.info\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/wx.kaifamiao.info\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/wx.kaifamiao.info\/index.php\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"http:\/\/wx.kaifamiao.info\/index.php\/wp-json\/wp\/v2\/comments?post=39881"}],"version-history":[{"count":1,"href":"http:\/\/wx.kaifamiao.info\/index.php\/wp-json\/wp\/v2\/posts\/39881\/revisions"}],"predecessor-version":[{"id":39882,"href":"http:\/\/wx.kaifamiao.info\/index.php\/wp-json\/wp\/v2\/posts\/39881\/revisions\/39882"}],"wp:attachment":[{"href":"http:\/\/wx.kaifamiao.info\/index.php\/wp-json\/wp\/v2\/media?parent=39881"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/wx.kaifamiao.info\/index.php\/wp-json\/wp\/v2\/categories?post=39881"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/wx.kaifamiao.info\/index.php\/wp-json\/wp\/v2\/tags?post=39881"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}