Rico's Nerd Cluster

「离开世界之前 一切都是过程」

C++ - [Concurrency 2] Conditional Variables

Conditional Variables

Conditional Variables

C++ - [Concurrency 8] `std::this_thread::yield()`

Introduction std::this_thread::yield() is used in a case where you are busy waiting and fighting for CPU time slices. It will give the scheduler a hint that other threads could come in and finsih ...

Threading Motivation: Why C++ Concurrency Matters Standardized concurrency arrived with C++11, replacing the ad-hoc C / compiler-specific APIs used before C++98 with a formal memory model. Key l...

Docker Compose Profile

Multi-Container Workflow

Simple Example On Docker Profile Profiles help you adjust your Compose application for different environments or use cases by selectively activating services. Services can be assigned to one or mo...

Docker Ignore

A .dockerignore file lives next to your Dockerfile and controls which files are excluded from the Docker build context. Why use .dockerignore? ✅ Faster builds: smaller context → quic...

Docker Workflow And Networking

VSCode Devcontainer

Pulling Containers & Networking When you run a container for the first time, Docker pulls the image and sets up networking based on defaults or your configuration. Bridge Networks (docker0) ...

Docker Image Building

Dockerfile, Image Management

Construct Of An Docker Image And Its Building Process A Docker image is like a box of Oreo. Its final image is like multiple Oreos (layer) stacked on top of each other. A layer could be built from...

Virtual Network Computing (VNC)

Graphical Desktop Environment

What is vncviewer vncviewer (virtual network computing) client allows one to interact with a remote computer’s graphical desktop environment. It’s run inside the docker. vncviewer Setup File Dir...

Things About Leetcode Before That Coding Interview

Leetcode IDE Tips, Common Leetcode Problems, C++ Commands, String

Introduction At the bare minimum, it’s good to have a solid understanding of 2 Pointers, sliding window, BFS/DFS, Trees, Graphs, Stacks, Queus, Hash Maps. Leetcode IDE Tips No Global Variables ...

Foundamental Structure of Programs

Callstack

Callstack A callstack is a stack of frames, where a frame represents an active call. Each frame has: return address (where the function returns after it completes), local variables. E.g., if func...