Skip to main content

Posts

Showing posts from May 7, 2017

Story of a Program

H i, I'm a program. I have seen two worlds. People call then "Main Memory" and "Secondary Memory". Secondary Memory is my home, this is where I spend most of the time. It is my Home. Main memory(aka Primary Memory) is my work place, this is the place from where I turn into Action using processor. I enter the Primary Memory aka Main memory. I have to take a toke and wait in the lounge. This is called as ready state. Some times the lounge gets crowded and few programs from here will be sent to another big lounge, it is called "Ready Suspended". So once we get the chance to enter the processor we move from ready state to "Running" state. While we are running inside processor we may need some resources and we get have to wait for those resources to be available. Then we are sent to another state from the "Running" state. This state is similar to "Ready Suspended ", which we went when we were waiting in the lounge