[so] Tema 3 biblioteca dinamica
Catalin Iacob
iacobcatalin at gmail.com
Sat Nov 25 13:16:04 EET 2006
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?
More information about the so
mailing list