Mathematic Fomulars

Mathematic Fomulars The mathematical typesetting is based on LaTeX, so if you need to search for the way to make a particular symbol, include latex in your search. But note: Not all LaTeX macros are available without using additional packages, and those packages likely will only work if you are creating a PDF. On the plus side, if you are working in PDF, you can use additional packages that give much better control and/or easier syntax.

Operating System

1. Overview 什么是操作系统? 硬件角度: 管理硬件:将复杂的,具备不同功能的硬件资源纳入统一管理。 对硬件进行抽象:抽象成不依赖具体硬件特性的资源。 将有限

Kubernetes

Kubernetes 场景:管理容器化的工作负载和服务,可促进声明式配置和自动化 功能:服务发现和负载均衡、存储编排、自动部署和回滚、自动完成装箱计算、自我修复、

Redis Data Structure

Redis Data Structure 0. Redis Object 1 2 3 4 5 6 7 struct RedisObject { int4 type; // 4bits \ int4 enconding; // 4bits = 4bytes int24 lru; // 24bits / int32 refcount; // 4bytes void* ptr; // 8bytes (64bit-system) } robj; RedisObject对于不通对象都是相同的,对于这样

Go(6) Network

Part6. Network 1. IO/Polling select 操作的不足之处: 监听能力有限 — 最多只能监听 1024 个文件描述符; 内存拷贝开销大 — 需要维护一个较大的数据结构存储文件描述符,该结构需要拷贝

Go(5) Concurrency

Part5. Concurrency 1. Channel 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 type hchan struct { qcount uint // total data in the queue dataqsiz uint // size of the circular queue buf unsafe.Pointer // points to an array of dataqsiz elements elemsize uint16 closed

Go(4) Runtime

Part4. Runtime 1. GMP 1.1. Implement 1.1.1. Data Structure 创建、销毁、调度 G 都需要每个 M 获取锁,这就形成了激烈的锁竞争。 M 转移 G 会造成延迟和额外的系统负载。比如当 G 中包含创建新协程

Go(3) Common Keywords

Part3. Common Keyword 1. For And Range 对于所有的 range 循环,Go 语言都会在编译期将原切片或者数组赋值给一个新变量 ha,在赋值的过程中就发生了拷贝,而我们又通过 len 关键字预