[so] Tema 3 biblioteca dinamica

Octavian Purdila tavi at cs.pub.ro
Sat Nov 25 13:39:33 EET 2006


On Saturday 25 November 2006 13:16, Catalin Iacob wrote:
> Citat din linkul Program Library Howto
>
> "Program libraries can be divided into three types: static libraries,
> shared libraries, and dynamically loaded (DL) libraries.This paper first
> discusses static libraries, which are installed into a program
> executable before the program can be run. It then discusses shared
> libraries, which are loaded at program start-up and shared between
> programs. Finally, it discusses dynamically loaded (DL) libraries, which
> can be loaded and used at any time while a program is running."
>
> In tema se spune in al doilea paragraf
>
> "Implementarea monitorului se va face intr-o biblioteca partajata
> DINAMICA pe care o vor incarca firele de executie care doresc sa
> foloseasca monitorul in scopul sincronizarii."
>
> Pe Linux trebuie sa facem un .so pe care sa-l link edit-am in executabil
> deci practic un shared library in terminologia de mai sus? Bilblioteca
> partajata dinamica ar sugera folosirea dlopen() dlclose() dlsym() deci
> un dynamic library si nu cred ca se cere asta.
>
> Pe scurt: se vrea shared library sau dynamic library?


Pentru formatele folosite azi (ELF, PE), nu exista diferente intre cele doua 
clase. 

tavi


More information about the so mailing list