- 博客(4)
- 收藏
- 关注
原创 volatile
作用JAVA先写个Demopackage demo;public class VolatileDemo { static volatile int value = 0; public static void main(String[] args) { value = 1; System.out.println(value); }}关键就看对value的读写;字节码javap反编译一下0: iconst_1 .
2021-03-07 22:49:08
157
1
原创 hashmap
put // table是保存在全局的数组 // Node是table中的元素,一个key对应一个Node final V putVal(int hash, K key, V value, boolean onlyIfAbsent, boolean evict) { //tab就是数组,n是数组长度 Node<K,V>[] tab; Node<K,V> p; int n, i;
2021-03-05 13:51:47
144
2
原创 Linux Kernel :: Boot Process
bootloader Today Linux kernel has to be booted by bootloaders like GRUB2. They are all designed following boot protocol. header.S The header.S includes legacy boot sector and setup code. Bootloader...
2018-03-19 20:41:03
487
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人