Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the difference between routine and process

Tags:

I am studying memory management in operating system and in general context i just want to know is there any difference between routine and process.
Thanks in advance

like image 899
anubhav deshwal Avatar asked Dec 24 '16 14:12

anubhav deshwal


1 Answers

Yes, there is.

A routine usually means a piece of code such as a subroutine, coroutine or function that is called by other other code in some way.

A process is code that is actually in execution. This implies that one routine could actually be part of the codes being executed in two (or more) processes.

like image 105
Bill Bell Avatar answered Sep 23 '22 16:09

Bill Bell