For two processes A and B, the both use the library libc.so, libc.so is loaded into memory only once. This is a normal situation when A and B both run on the same host and the same rootfs.
When it comes to container, if A and B are running in different containers, are A and B sharing same memory area?
for example
imageA
--libc.so
--programA
imageB
--libc.so
--programB
we use chroot to run A and B in different rootfs. The two libc.so are same. Will libc.so be loaded into memory twice?