File tree Expand file tree Collapse file tree 4 files changed +3343
-36
lines changed
Expand file tree Collapse file tree 4 files changed +3343
-36
lines changed Original file line number Diff line number Diff line change @@ -10776,7 +10776,7 @@ CAP 理论指的是在一个分布式系统中,Consistency(一致性)、Av
1077610776CAP 三个基本需求,因为 P 是必须的,因此分布式系统选择就在 CP 或者 AP 中:
1077710777
1077810778* 一致性:指数据在多个副本之间是否能够保持数据一致的特性,当一个系统在数据一致的状态下执行更新操作后,也能保证系统的数据仍然处于一致的状态
10779- * 可用性:指系统提供的服务必须一直处于可用的状态,对于用户的每一个操作请求总是能够在有限的时间内返回结果
10779+ * 可用性:指系统提供的服务必须一直处于可用的状态,即使集群中一部分节点故障, 对于用户的每一个操作请求总是能够在有限的时间内返回结果
1078010780* 分区容错性:分布式系统在遇到任何网络分区故障时,仍然能够保证对外提供服务,不会宕机,除非是整个网络环境都发生了故障
1078110781
1078210782
Original file line number Diff line number Diff line change @@ -430,7 +430,7 @@ public static void main(String[] args) {
430430| 堆内存 | 存储对象或者数组,new 来创建的,都存储在堆内存 |
431431| 方法栈 | 方法运行时使用的内存,比如 main 方法运行,进入方法栈中执行 |
432432
433- ** 内存分配图**: Java 内存分配
433+ 内存分配图:** Java 数组分配在堆内存**
434434
435435* 一个数组内存图
436436
Original file line number Diff line number Diff line change @@ -1505,7 +1505,7 @@ Object 类 API:
15051505```java
15061506public final void notify():唤醒正在等待对象监视器的单个线程。
15071507public final void notifyAll():唤醒正在等待对象监视器的所有线程。
1508- public final void wait():导致当前线程等待,直到另一个线程调用该对象的notify() 方法或 notifyAll()方法。
1508+ public final void wait():导致当前线程等待,直到另一个线程调用该对象的 notify() 方法或 notifyAll()方法。
15091509public final native void wait(long timeout):有时限的等待, 到n毫秒后结束等待,或是被唤醒
15101510```
15111511
You can’t perform that action at this time.
0 commit comments