|
|
|
|
|
|
|
|
|
|
|
|
n |
If we share
the same code among different users,
|
|
|
it is
sufficient to keep only one copy in main
|
|
|
memory
|
|
|
n |
Shared code
must be reentrant (ie: non self-
|
|
|
modifying) so
that 2 or more processes can
|
|
|
execute the
same code
|
|
|
n |
If we use
paging, each sharing process will have a
|
|
page table
who’s entry points to the same frames:
|
|
|
only one copy
is in main memory
|
|
|
n |
But each user
needs to have its own private data
|
|
|
pages
|
|