12 2020 档案

摘要:synchronize 原理 一 使用场景 1 synchronized应用于对象实例与对象方法 2 synchronized应用于类与静态方法 二 对象的内存布局- JOL - java object layout 三 特性: 原子性: 可见性: 有序性: 可重入性: 参考文章: https:// 阅读全文
posted @ 2020-12-11 17:53 墨狮 阅读(128) 评论(0) 推荐(0)
摘要:一 概述 HTTPS作用: 防窃听 - 数据传输阶段对称加密, 证书认证(交换密钥)阶段非对称加密 防篡改 - Hash算法加密,实现 防冒充 - 证书认证身份信息 HTTPS过程: TCP三次握手: ClientHello: client的加密套件+random1+ssl信息 ServerHell 阅读全文
posted @ 2020-12-08 17:39 墨狮 阅读(175) 评论(0) 推荐(0)
摘要:线索二叉树 二叉链表存储结构的规律: 1 2n个指针域中只有n-1个指针域是用来指向结点的孩子,另外的n+1个指针域存放的是空值NULL。 2 根据遍历方法,可以分为:前、中、后序线索二叉树。 阅读全文
posted @ 2020-12-07 10:50 墨狮 阅读(95) 评论(0) 推荐(0)
摘要:decltype 与 typeid的用法 #include <iostream> using namespace std; int main() { int a = 0; decltype(a) c = a; decltype((a)) d = a; cout << typeid(a).name() 阅读全文
posted @ 2020-12-06 16:44 墨狮 阅读(87) 评论(0) 推荐(0)