compartmentalization
Compartmentalization is a psychological defense mechanism that involves separating different aspects of one’s life or thoughts to avoid conflict or anxiety. For example, a person might keep work stress separate from home life, allowing them to function effectively in both areas without interference.
In addition to psychology, compartmentalization is also used in various fields like biology and computer science. In biology, it refers to the division of cells into distinct areas for specific functions. In computer science, it can describe the practice of isolating different processes or data to enhance security and efficiency.