Namespaces
Jump to navigation
Jump to search
In programming and computer context, namespaces refer to an environments to put some state in, that is distinct from any other namespace.
This is often done
- to avoid accidental clashes of things with the same name, and/or
- to be forced (yourself or others) to be very specific about name references
and sometimes for other reasons.
Examples:
- C++ namespaces are often used to put variables and classes in a place where they cannot accidentally clash with others.
- A good number of programming languages do something similar.
- XML namespaces means nodes and attribute names can be
- Linux namespaces allows the kernel to show distinct sets of these resources to different sets of processes
- having each process have its own idea of PIDs, hostnames, user IDs, filename, network interfaces, and IPC certainly helps containers be isolated.