Hacker News new | ask | show | jobs
by oceanswave 1542 days ago
Browsers themselves don’t do this for security snd sandboxing reasons. Each tab is another instance.
2 comments

But operating systems are free to map the same read only memory pages (e.g. program code) into different process address spaces. This is an optimization that running processes are generally completely oblivious of. But it only works when e.g. the program code is mapped into memory from the same file. If every program has a private copy of the same library (even if it's bit for bit identical), the operating system doesn't have enough information to pull this off.
Each tab is a partial instance. There are still many resources that are shared globally for performance and memory use reasons.