Originally Posted by TigerLinux
Let's say I log in as X, open firefox.
Then switch to Y, open firefox also.
Does linux launch firefox twice in memory, or does it know how to open once for both users?
the two users may have totally different access rights, and so has firefox when they start it. You have one instance of firefox running with the privileges of user X, the other with privileges of user Y.
So in terms of task management, they have to be
two separate instances.
In terms of memory management, however, the kernel may decide to share the code segments among multiple instances of the same process in order to reduce the amount of memory needed.
[X] Doc CPU