noun a section of a program which performs a required function and can be called upon at any time from inside the main program
Electronics
Within a computer program, a small group of instructions which perform a given task. Also spelled subroutine. Also called routine (1), function (3), or procedure (2).