After Width: | Height: | Size: 114 KiB |
After Width: | Height: | Size: 197 KiB |
After Width: | Height: | Size: 37 KiB |
After Width: | Height: | Size: 47 KiB |
After Width: | Height: | Size: 440 KiB |
After Width: | Height: | Size: 779 KiB |
After Width: | Height: | Size: 394 KiB |
After Width: | Height: | Size: 132 KiB |
After Width: | Height: | Size: 209 KiB |
After Width: | Height: | Size: 310 KiB |
@ -0,0 +1,10 @@
|
|||||||
|
### 饿汉单例
|
||||||
|
>- 先构建
|
||||||
|
>- 通过get方法取得
|
||||||
|
### 懒汉式
|
||||||
|
>- 先判断是否为空,不能多线程
|
||||||
|
|
||||||
|
### DCL双重判断 double check lock
|
||||||
|
>- 防止上锁时候被其他线程操作
|
||||||
|
|
||||||
|
|