In
computer science,
message passing sends a message to a process (which may be an
actor or
object) and relies on the process and the supporting infrastructure to select and invoke the actual code to run. Message passing differs from conventional programming where a process, subroutine, or function is directly invoked by name. Message passing is key to some models of concurrency and
object-oriented programming.