IT lexicon › Programming › Shared object

Shared object

Programming På svenska → Updated: 2026-11-13

Dynamically linked library file (.so on Linux, .dll on Windows) — shared between processes and linked at runtime.

A .so (shared object) is code and data packaged so multiple programs can load the same file into memory. Linux systems are full of them: libc.so (standard C library), libpython.so, libssl.so. A linker can link against shared objects the same way as static libraries, but instead of copying code into the final binary, it stores a reference. At program start the kernel loads the .so into memory; if two processes load the same shared object they share the same memory page (with copy-on-write for data).

Advantages: less disk space, update one library and all programs using it get the fix. Disadvantages: dependency hell, position-independent code required, startup overhead from dynamic linking.

← Back to the lexicon