As reported: AMD Senior Software System Designer, Bengaluru (2026), round 2 in person (about 1.5 hours): OS, concurrency and coding. Topics: mutex vs semaphore,
fork()and child processes, user vs kernel mode, process states, threads and synchronization, CPU caches — plus LRU Cache and sorting an array of 0s and 1s.
Explain:
- Mutex vs semaphore — differences and when to use each.
- What
fork()does; what the child inherits; what happens onexec; zombies and orphans. - User mode vs kernel mode; how a system call crosses between them.
- Process states and the transitions between them.
- Threads vs processes; synchronization primitives and common bugs.
- CPU caches: why they matter, and how code layout affects performance.