Believe it or not. Lots of similarities exist between a computer system and a hospital. In fact, a computer system may be viewed in analogy with a hospital. The following analogy exists between hospital and a computer system:->
DOCTOR < ------ > OPERATING SYSTEM
PATIENTS <----- > PROCESSES
ROOMS AND EQUIPMENTS< ----- > RESOURCES OF THE OPERATING SYSTEM
=>Whenever a patient goes to the hospital, he is first attended to by the receptionist at the reception of the hospital. Here patient is made a slip containing his name, his patient number etc. This is similar to the creation of a new process in the computer. When a new process is created, a PCB( Process Cotrol Block) containing the Process_ID, Process_name is made.
=> After this, the patient is handled by a compounder and is taken care of. He is asked of his problems and treated accordingly. His temperature is checked by a thermometer. His BP is also monitored. And the patient is made to wait until the doctor is free. This is similar to allotting resources to a process by the operating system's routines. Similarly, after the allocation of resources, the process is made to wait in the ready queue until the processor gets time to handle it.
=> Then after when the doctor gets free, he attends to the patient. And if he thinks the necessity of some tests, sends the patient to the hospital laboratory(Resource allocation) for tests. And himself gets ready to see another patient.
similarly, the processor processes the process until it is blocked an instead of waiting for it to be resumed, shifts over to another process.
Thus we see how closely a computer systems resembles to a hospital. In fact, computer can be thought of as analogous to any other system. The only thing you need is imagination.
Friday, September 11, 2009
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment