What is resource allocation in operating system

A resource can be either a printer, hard drive, scanner or keyboard. The operating system (OS) allocates resources to the computer processes. A process is any program in execution. The program needs resources to complete the task. Suppose the MS Word program is running and it needs a printer to print the document. If the printer is free then OS assigns that printer resource to the MS Word [...]