Skip to content

Commit

Permalink
Deploy to GitHub pages
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored Sep 15, 2023
0 parents commit e054f34
Show file tree
Hide file tree
Showing 410 changed files with 6,263 additions and 0 deletions.
33 changes: 33 additions & 0 deletions 404.html

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions assets/404.html-f638c3d5.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
import{_ as e,o as c,c as t}from"./app-ddbab3f1.js";const _={};function o(r,n){return c(),t("div")}const a=e(_,[["render",o],["__file","404.html.vue"]]);export{a as default};
1 change: 1 addition & 0 deletions assets/404.html-f9875e7b.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
const t=JSON.parse('{"key":"v-3706649a","path":"/404.html","title":"","lang":"zh-CN","frontmatter":{"layout":"NotFound"},"headers":[],"git":{},"filePathRelative":null}');export{t as data};
Binary file added assets/640-377b252c.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions assets/AI代码插件.html-1763e0ee.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions assets/AI代码插件.html-997ee9ca.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions assets/AQS.html-6a10ccf0.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

42 changes: 42 additions & 0 deletions assets/AQS.html-b22241cf.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
import{_ as n,o as s,c as a,e}from"./app-ddbab3f1.js";const i={},c=e(`<h1 id="aqs" tabindex="-1"><a class="header-anchor" href="#aqs" aria-hidden="true">#</a> AQS</h1><p>AQS 是整个Java JUC的核心。</p><h2 id="lock锁接口" tabindex="-1"><a class="header-anchor" href="#lock锁接口" aria-hidden="true">#</a> Lock锁接口</h2><div class="language-java line-numbers-mode" data-ext="java"><pre class="language-java"><code><span class="token doc-comment comment">/**
* 获取锁:
* 如果当前锁资源空闲可用则获取锁资源返回,
* 如果不可用则阻塞等待,不断竞争锁资源,直至获取到锁返回。
*/</span>
<span class="token keyword">void</span> <span class="token function">lock</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
<span class="token doc-comment comment">/**
* 释放锁:
* 当前线程执行完成业务后将锁资源的状态由占用改为可用并通知阻塞线程。
*/</span>
<span class="token keyword">void</span> <span class="token function">unlock</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
<span class="token doc-comment comment">/**
* 获取锁:(与lock方法不同的在于可响应中断操作,即在获取锁过程中可中断)
* 如果当前锁资源可用则获取锁返回。
* 如果当前锁资源不可用则阻塞直至出现如下两种情况:
* 1.当前线程获取到锁资源。
* 2.接收到中断命令,当前线程中断获取锁操作。
*/</span>
<span class="token keyword">void</span> <span class="token function">lockInterruptibly</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token keyword">throws</span> <span class="token class-name">InterruptedException</span><span class="token punctuation">;</span>
<span class="token doc-comment comment">/**
* 非阻塞式获取锁:
* 尝试非阻塞式获取锁,调用该方法获取锁立即返回获取结果。
* 如果获取到了锁则返回true,反之返回flase。
*/</span>
<span class="token keyword">boolean</span> <span class="token function">tryLock</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
<span class="token doc-comment comment">/**
* 非阻塞式获取锁:
* 根据传入的时间获取锁,如果线程在该时间段内未获取到锁返回flase。
* 如果当前线程在该时间段内获取到了锁并未被中断则返回true。
*/</span>
<span class="token keyword">boolean</span> <span class="token function">tryLock</span><span class="token punctuation">(</span><span class="token keyword">long</span> time<span class="token punctuation">,</span> <span class="token class-name">TimeUnit</span> unit<span class="token punctuation">)</span> <span class="token keyword">throws</span> <span class="token class-name">InterruptedException</span><span class="token punctuation">;</span>
<span class="token doc-comment comment">/**
* 获取等待通知组件(该组件与当前锁资源绑定):
* 当前线程只有获取到了锁资源之后才能调用该组件的wait()方法,
* 当前线程调用await()方法后,当前线程将会释放锁。
*/</span>
<span class="token class-name">Condition</span> <span class="token function">newCondition</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
</code></pre><div class="line-numbers" aria-hidden="true"><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div></div></div><p>对比synchronized:</p><ul><li>获取锁中断操作(synchronized关键字是不支持获取锁中断的);</li><li>非阻塞式获取锁机制;</li><li>超时中断获取锁机制;</li><li>多条件等待唤醒机制Condition等。</li></ul>`,6),l=[c];function t(o,d){return s(),a("div",null,l)}const u=n(i,[["render",t],["__file","AQS.html.vue"]]);export{u as default};
1 change: 1 addition & 0 deletions assets/ApacheCommon.html-2fce0e90.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions assets/ApacheCommon.html-67517e87.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions assets/BeanUtils.html-bf721cca.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit e054f34

Please sign in to comment.