<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://debianws.lexgopc.com/wiki1463/index.php?action=history&amp;feed=atom&amp;title=Shared_library</id>
	<title>Shared library - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://debianws.lexgopc.com/wiki1463/index.php?action=history&amp;feed=atom&amp;title=Shared_library"/>
	<link rel="alternate" type="text/html" href="http://debianws.lexgopc.com/wiki1463/index.php?title=Shared_library&amp;action=history"/>
	<updated>2026-12-04T07:36:47Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.46.3</generator>
	<entry>
		<id>http://debianws.lexgopc.com/wiki1463/index.php?title=Shared_library&amp;diff=43443&amp;oldid=prev</id>
		<title>imported&gt;InternetArchiveBot: Rescuing 1 sources and tagging 0 as dead.) #IABot (v2.0.9.5</title>
		<link rel="alternate" type="text/html" href="http://debianws.lexgopc.com/wiki1463/index.php?title=Shared_library&amp;diff=43443&amp;oldid=prev"/>
		<updated>2026-02-27T19:41:13Z</updated>

		<summary type="html">&lt;p&gt;Rescuing 1 sources and tagging 0 as dead.) #IABot (v2.0.9.5&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Short description |Software library in memory that multiple executables can use at runtime}}&lt;br /&gt;
{{redirect|Shared object|the synchronization mechanism|Monitor (synchronization)}}&lt;br /&gt;
&lt;br /&gt;
A &amp;#039;&amp;#039;&amp;#039;shared library&amp;#039;&amp;#039;&amp;#039; is a [[library (computing)|library]] of [[executable code]] that is loaded in [[computer memory |memory]] such that multiple executables ([[computer program |programs]] and other libraries) can use it at [[Runtime (program lifecycle phase)|runtime]].&amp;lt;ref&amp;gt;{{cite book |title=Linkers and Loaders |last=Levine |first=John R. |chapter=9. Shared Libraries |isbn=1-55860-496-0 |date=2000}}&amp;lt;/ref&amp;gt;&amp;lt;ref&amp;gt;{{cite book |title=UNIX System V/386 Release 3.2 Programmers Guide, Vol. 1 |url=http://www.bitsavers.org/pdf/att/unix/System_V_386_Release_3.2/UNIX_System_V_386_Release_3.2_Programmers_Guide_Vol1_1989.pdf |page=8{{hyp}}2 |isbn=0-13-944877-2 |date=1989 |url-status=live |archive-url=https://web.archive.org/web/20250731000943/http://www.bitsavers.org/pdf/att/unix/System_V_386_Release_3.2/UNIX_System_V_386_Release_3.2_Programmers_Guide_Vol1_1989.pdf |archive-date=2025-07-31}}&amp;lt;/ref&amp;gt;&amp;lt;ref&amp;gt;{{cite web |url=https://www.cs.cornell.edu/courses/cs414/2001FA/sharedlib.pdf |title=Shared Libraries in SunOS |pages=1,3 |url-status=live |archive-url=https://web.archive.org/web/20260110233315/https://www.cs.cornell.edu/courses/cs414/2001FA/sharedlib.pdf |archive-date=2026-01-10}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In contrast, a [[static library]] is [[Static linking |copied]] into an executable. A static library can be [[software reuse |re-used]] (a form of sharing) in multiple executables, but each executable contains a copy of the library code instead of &lt;br /&gt;
sharing a copy in memory with other executables. Although not true today, historically, all libraries were static.&amp;lt;ref&amp;gt;{{Cite web |date=2018-10-25 |title=Difference between Static and Shared libraries |url=https://www.geeksforgeeks.org/difference-between-static-and-shared-libraries/ |access-date=2025-02-02 |website=GeeksforGeeks |language=en-US}}&amp;lt;/ref&amp;gt; Although a shared library can have static linkage, such a library is not classified as a static library.&lt;br /&gt;
&lt;br /&gt;
Often, a shared library is also a [[dynamic library]] loaded by a [[dynamic linker]], which generally makes use of the library easier for the [[programmer]] than if it instead it had static linkage. A dynamic library need not be accessible to multiple executables (shared library) and a shared library need not be loaded at consumer runtime (dynamic library).&lt;br /&gt;
&lt;br /&gt;
==Memory sharing==&lt;br /&gt;
{{main|Shared memory}}&lt;br /&gt;
&lt;br /&gt;
Library code may be shared in memory by multiple [[Process (computing)|process]]es and on disk. If virtual memory is used, processes would execute the same physical page of RAM mapped into the processes&amp;#039; different address spaces. This has advantages. For instance, on the [[OpenStep]] system, applications were often only a few hundred kilobytes in size and loaded quickly; most of their code was located in libraries already loaded for other purposes by the operating system.{{Citation needed|date=December 2008}}&lt;br /&gt;
&lt;br /&gt;
Programs can accomplish RAM sharing by using [[position-independent code]], as in [[Unix]], which leads to a complex but flexible architecture, or by using common virtual addresses, as in Windows and [[OS/2]]. These systems ensure that code has a high probability of being shared by various means, like pre-mapping the address space and reserving slots for each shared library. A third alternative is a [[single-level store]] with a [[single address space operating system|single address space]], as used by the [[IBM System/38]] and its successors. This allows position-dependent code, with programs and libraries assigned a permanent address in that address space.&lt;br /&gt;
&lt;br /&gt;
In some cases, different versions of shared libraries can cause problems, especially when libraries of different versions have the same file name and various applications are installed on a system, each requiring a specific version. This scenario is known as [[DLL hell]], named after the Windows and OS/2 [[DLL file|DLL files]]. Most modern operating systems after 2001 have clean-up methods to eliminate such situations or use application-specific &amp;quot;private&amp;quot; libraries.&amp;lt;ref name=&amp;quot;endofdllhell&amp;quot;&amp;gt;{{cite web&lt;br /&gt;
| url=http://msdn.microsoft.com/library/techart/dlldanger1.htm&lt;br /&gt;
| title=The End of DLL Hell&lt;br /&gt;
| date=2000-01-11&lt;br /&gt;
| last=Anderson&lt;br /&gt;
| first=Rick&lt;br /&gt;
| publisher=microsoft.com&lt;br /&gt;
| archive-url=https://web.archive.org/web/20010605023737/http://msdn.microsoft.com/library/techart/dlldanger1.htm&lt;br /&gt;
| archive-date=2001-06-05&lt;br /&gt;
| access-date=2012-01-15&lt;br /&gt;
| quote=Private DLLs are DLLs that are installed with a specific application and used only by that application.&lt;br /&gt;
}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
The following commonly-used library technologies are both shared and dynamic in nature.&lt;br /&gt;
&lt;br /&gt;
; DLL: [[Windows]] uses the [[Portable Executable]] (PE) format for its [[dynamic-link library]] (DLL) technology.&lt;br /&gt;
&lt;br /&gt;
; SO: [[Oracle Solaris |Solaris]] and other [[System V Release 4]]-based systems, [[Linux]], and current [[BSD]] systems use the [[Executable and Linkable Format]] (ELF) for the [[shared object]] (SO) technology, sometimes and more accurately called dynamic shared object (DSO).&lt;br /&gt;
&lt;br /&gt;
; DYLIB: [[Darwin (operating system)|Darwin]]-based operating systems, such as [[macOS]] and [[iOS]], use the [[Mach-O]] format for [[.dylib]] files.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
* {{Annotated link |Loadable kernel module}}&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
{{reflist}}&lt;br /&gt;
[[Category:Computer libraries]]&lt;br /&gt;
[[Category:Operating system technology]]&lt;br /&gt;
&lt;br /&gt;
==Sources==&lt;br /&gt;
* {{cite book|last=Levine|first=J.R.|title=Linkers and Loaders|publisher=Elsevier Science|series=Operating Systems Series|year=2000|isbn=978-1-55860-496-4|url=https://books.google.com/books?id=Id9cYsIdjIwC|access-date=2025-02-02}}&lt;br /&gt;
&lt;br /&gt;
==External links==&lt;br /&gt;
* [http://people.redhat.com/drepper/dsohowto.pdf How To Write Shared Libraries] {{Webarchive|url=https://web.archive.org/web/20070616175733/http://people.redhat.com/drepper/dsohowto.pdf |date=2007-06-16 }} by Ulrich Drepper&lt;/div&gt;</summary>
		<author><name>imported&gt;InternetArchiveBot</name></author>
	</entry>
</feed>