Skip to content
hector@hcmc:~/blog

Blog

$ ls -t ~/blog

Notes and posts by Hector, newest first. 4 posts

  1. How Java Runs: JDK, JRE, JVM, JIT and GCWhat happens between writing a .java file and running it: JDK vs JRE vs JVM, bytecode, the JIT compiler, the five JVM memory areas and the garbage collectors.
  2. Designing a Unique ID Generator for Distributed SystemsFour ways to generate unique IDs across many servers: multi-master replication, UUID, ticket server and Snowflake. What each costs, and why Snowflake fits.
  3. HashMap vs ConcurrentHashMap in JavaThe difference between HashMap and ConcurrentHashMap in Java: how each works inside, thread safety, nulls, and when to use which.
  4. How Computers Store and Manage Time