Main Memory
The main working principle of digital computer is Von-Neumann stored program principle. First of all we have to keep all the information in some storage, mainly known as main memory, and CPU interacts with the main memory only. Therefore, memory management is an important issue while designing a computer system. On the otherhand, everything cannot be implemented in hardware, otherwise the cost of system will be very high. Therefore some of the tasks are performed by software program. Collection of such software programs are basically known as operating systems. So operating system is viewed as extended machine. Many more functions or instructions are implemented through software routine. The operating system is mainly memory resistant, i.e., the operating system is loaded into main memory. Due to that, the main memory of a computer is divided into two parts. One part is reserved for operating system. The other part is for user program. The program currently being executed by the CPU is loaded into the user part of the memory. In a uni-programming system, the program currently being executed is loaded into the user part of the memory. In a multiprogramming system, the user part of memory is subdivided to accomodate multiple process. The task of subdivision is carried out dynamically by opearting system and is known as memory management.
Efficient memory management is vital in a multiprogramming system. If only a few process are in memory, then for
much of the time all of the process will be waiting for I/O and the processor will idle. Thus memory needs to be
allocated efficiently to pack as many processes into main memory as possible.
When memory holds multiple processes, then the process can move from one process to another process when one
process is waiting. But the processor is so much faster then I/O that it will be common for all the processes in
memory to be waiting for I/O. Thus, even with multiprogramming, a processor could be idle most of the time.
Due to the speed mismatch of the
processor and I/O device, the
status at any point in time is
reffered to as a state.
There are five defined state of a
process as shown in the figure.
When we start to execute a
process, it is placed in the process
queue and it is in the new state. As
resources become available, then
the process is placed in the ready
queue.
No comments
Post a Comment