Stacks and Processes

The Process Stack

Question: Can two processes share the same code as they execute?

Can two processes share the same data as they execute?

Can two processes share the same stack as they execute?

Processes can have access to each others stacks, but processes stack defines its state, and therefore there is a one-to-one relationship between stacks and processes (more than anything else a process is defined by the code it executes and the contents of its stack).

What is kept on the stack?

All of these belong to a single process.

1