Heh, it's a hard question for a reason. OS analogy like you started:
The brain is hardware. The subconscious is like a Host OS, and the conscious is a preferred guest OS in a VM. When dreaming (or imagining others' reactions, etc) the host-OS spawns extra VMs to run other entities. These entities communicate over a virtual network run by the host. They are different from the preferred guest in that they don't run as much and tend to get reset frequently, and thus have less data stored. Multiple-personality disorder occurs when the host prefers the wrong guest OS, and dramatic personality shifts (say, after an accident) occur when the original guest OS is damaged beyond repair & a new one gets created to run the body.
The brain is hardware. The subconscious is like a Host OS, and the conscious is a preferred guest OS in a VM. When dreaming (or imagining others' reactions, etc) the host-OS spawns extra VMs to run other entities. These entities communicate over a virtual network run by the host. They are different from the preferred guest in that they don't run as much and tend to get reset frequently, and thus have less data stored. Multiple-personality disorder occurs when the host prefers the wrong guest OS, and dramatic personality shifts (say, after an accident) occur when the original guest OS is damaged beyond repair & a new one gets created to run the body.