Whenever you're ready, walk me through how you'd approach this.
Explain the difference between threads and processes. Cover address-space isolation, memory sharing, scheduling, communication mechanisms, failure behavior, and security implications. Explain when an engineer would choose one over the other, including the tradeoff between process isolation and thread-level performance.