Simulation is the use of one system to initiate the behaviour of another system. Simulation are often used when it would be too expensive or dangerous to experiment with real systems. There are physical simulations such as wind tunnels used to experiment with designs for car bodies and flight simulators used to train airline pilots. Mathematical simulations are system of equations used to describe some system and computer simulation uses the steps of a program to initiate the behaviour of system under study.
Applications of Queue
- A resource is shared among multiple consumers. Examples CPU scheduling & Disk Scheduling.
- During asynchronously transmitting data (data not necessarily received at same rate as sent) between two processes. Examples IO Buffers, pipes, file IO, etc.
- Printer SPOOLing