About

You can’t connect the dots looking forward; you can only connect them looking backwards. So you have to trust that the dots will somehow connect in your future. The pain you feel when you write is actually the pain of clarifying your thinking.(David Perell)

Ipc Signal

signal 什么是 signal Signals are various notifications sent to a process in order to notify it of various “important” events. 信号是发送给进程的各种通知,以便通知它发生了各种“重要”的事件。 有哪些信号?默认怎么处理? Signal Name Default

Asm How Java Byte Code Execute

jvm jvm 是一个栈式(stack-based)虚拟计算机。啥意思,就是 opcode 的操作数在 operand stack 上,执行的结果也放在 oprand stack 上。 分析的代码 package stardustman.github.io; public class BoxingUnboxingExample { public static void main(String[] args)

Java Jdk Proxy

分析环境: jdk8 dynamic proxy 是啥? A dynamic proxy class is a class that implements a list of interfaces1 specified at runtime such that a method invocation through one of the interfaces on an instance of the class will be encoded and dispatched to another object through a uniform interface2. 动态代理类生成调用方法如下: Proxy.newProxyInstance(handler.getClass().getClassLoader(),

Algorithm Snowflake

分布式 ID snowflake 算法使用一个 64bits 的正整数作为 ID。64bits 正整数 layout 如下: package stardustman.github.io; public class SnowFlake { // 起始的时间戳 private final static long START_STAMP = 1480166465631L; // sequence number private final static long SEQUENCE_BIT = 12; // machine id bits private final