Service as a subsroutine
Any Service Except Those Invoked by Hardware Interrupts Which IS Called Explicitly by An Application Can Be Handled this Way.
Service as a process
The process providing the service is reffered to as a server while the calling process termed a client. Through this client-server approach requires the OS to maintain a number of permanent server processes that listen and respond to various requests, it has important benifits such as Suitable for a Distributed System, Convenient for Different Types of Services, Greater Degree Of Fault Tolerance and Enforces A Strict Segment OF Enforces A Strict Segment OF FunctionAlities.
In summary, services which maintain a global view of resources and must be constantly avaiable are uauslly implemented as autonomous concurrent processes (e.g. UNIX scheduler), while others are constructed as subroutines which called as part of existing processes.