Prepare for the Fundamentals of Computing Test. Engage with interactive flashcards and multiple-choice questions, each offering detailed explanations. Ace your exam with confidence!

Multiple Choice

Which statement correctly describes the relationship between a process's address space and threads within that process?

A process gets its own virtual address space, isolated from other processes, and all threads inside that process run in that same address space, sharing code, data, and heap. Each thread has its own stack for its local variables and return addresses, but they all access the same process memory space. This combination—a per-process virtual address space with threads sharing that memory—is what the statement describes. Threads do not have separate address spaces, and saying both share the same memory model is too vague to capture the concrete relationship.

A process gets its own virtual address space, isolated from other processes, and all threads inside that process run in that same address space, sharing code, data, and heap. Each thread has its own stack for its local variables and return addresses, but they all access the same process memory space. This combination—a per-process virtual address space with threads sharing that memory—is what the statement describes. Threads do not have separate address spaces, and saying both share the same memory model is too vague to capture the concrete relationship.