InterviewDigestInterviewDigest

OA Practice Workspace

Technical2026-08-13

Diff b/w Process and Threads, Semaphores

AI-Expanded — inferred from the question title, not from the original candidate report

Explain the fundamental architectural differences between processes and threads, specifically regarding memory space, resource allocation, and context switching overhead. Then, describe the purpose of a semaphore in concurrent programming and provide a scenario where it is used to manage access to a shared resource while preventing race conditions.

Context & Summary

Technical round focusing on OOPS skills, system design, and operating systems

💻 Coding practice works best on desktop.
Code editors are too cramped on mobile screens.