PE ownership and cleanup

A PE has an address space relationship used to define when PEs are automatically deallocated by the system. When a PE is originally allocated, it is owned by the home address space at the time of the call. When an authorized caller pauses a task or SRB, the ownership of the PE moves to the home address space of the task or SRB that is being paused. This change in ownership occurs even if the PE has been prereleased. When the highest level task in an address space terminates, the system automatically deallocates all of the PEs the address space owned.

Because PEs allocated by unauthorized callers cannot move between address spaces, the ownership defined at allocation time remains unchanged for the life of the PE.