Subroutine


Written By: Ehsan Jahandarpour

In computer programming, a subroutine is a sequence of program instructions that performs a specific task, packaged as a unit. This unit can then be used in programs wherever that particular task should be performed. In the compiling method called threaded code, the executable program is basically a sequence of subroutine calls.