Tagged articles
4 articles
Page 1 of 1
Baidu App Technology
Baidu App Technology
Feb 2, 2023 · Fundamentals

Inside iOS: How Mach Virtual Memory and Memory Pressure Work

This article explains the architecture of Mach virtual memory in iOS, details its page‑based management, describes the core data structures and kernel APIs, analyzes the Objective‑C alloc implementation, and walks through the memory‑pressure (Jetsam) mechanism that triggers low‑memory warnings.

MachMemory ManagementVirtual Memory
0 likes · 21 min read
Inside iOS: How Mach Virtual Memory and Memory Pressure Work
Sohu Tech Products
Sohu Tech Products
Sep 7, 2022 · Fundamentals

Understanding Mach Tasks, Threads, Processes and Exception Handling on iOS/macOS

The article explains how iOS/macOS uses the XNU kernel's Mach micro‑kernel to represent processes, tasks and threads, describes the relationship between them, classifies hardware and software exceptions, shows how Mach exceptions are translated into Unix signals, and provides practical code examples for capturing both Mach exceptions and signals in a crash‑reporting framework.

Crash ReportingException HandlingMach
0 likes · 28 min read
Understanding Mach Tasks, Threads, Processes and Exception Handling on iOS/macOS
Sohu Tech Products
Sohu Tech Products
Jun 8, 2022 · Mobile Development

Understanding iOS RunLoop: Architecture, Modes, and Message Handling

This article provides an in‑depth technical overview of iOS RunLoop, explaining its relationship to threads, event loops, RunLoop modes, sources, timers, observers, and the underlying Mach message mechanisms, while including original source code excerpts for reference.

CoreFoundationMachRunLoop
0 likes · 30 min read
Understanding iOS RunLoop: Architecture, Modes, and Message Handling