Skip to content

Instantly share code, notes, and snippets.

@Anshuman-02905
Created September 24, 2025 04:18
Show Gist options
  • Select an option

  • Save Anshuman-02905/a2f1a3f031a0c8f28bdf1a0a8e13e06d to your computer and use it in GitHub Desktop.

Select an option

Save Anshuman-02905/a2f1a3f031a0c8f28bdf1a0a8e13e06d to your computer and use it in GitHub Desktop.
Component Description
G (goroutine) Represents a single goroutine with its own stack and execution context.
P (logical processor) Executes goroutines, holds a local cache (mcache) for fast memory allocation.
M (OS thread) Maps P to an actual OS thread, interacts with the OS for scheduling and system calls.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment