What is a program file that contains a collection of subroutines used by other programs?

On a PC it is a file with an extension of DLL (Dynamic Link Library).