Skip to main content

How do volatile & non-volatile storage differ?

The computer system has two types of memories in general; one is called volatile and the other is non-volatile. The word volatile is used for these devices because of their temporary or permanent data storage capacities. Memory means the data storage capacity in a device. Like we have brain a part of it is volatile and a part of it is non-volatile, how? This will be easily understood after reading the characteristics of the two memories of the computer system. Volatile Memory A device or a memory device in the computer that needs current to work and keeps the record or data in it is called volatile memory. As its name suggests it need current or electricity to work and to keep the record in it once the current is cut down the data disappears. The most common example of volatile memory is the RAM (random access memory) of the computer. The operating system loads in it and once the power is off, everything erases form RAM that’s why we need to start our system and wait for loading of the operating system to do our tasks. It is very fast and it allocates time very sharply and for little intervals to every program that is loaded in it. Non-volatile Memory Non volatile memory is the device which keeps the data even when the current is off.  The most common example of non volatile memory is the ROM (read only memory), and the flash memory. The hard disk of the computer is also non-volatile in nature. Either this memory can
be re-written or it is only written once.  Flash drives have the very common use these days. The data is saved in the USB drives and then carried anywhere. They only need to be plugged to the system to retrieve the data. They are generally slow in speed. Volatile vs Non-volatile Memory Volatile memory needs power to work and to keep the data in it. Whereas; non volatile memory do not needs power to keep data in it. Once the power is off, the volatile memory loses the data in it. Volatile memory is very fast in data processing as compared to non volatile memory.  Non volatile memory can be written once or can be re-written

Comments

Popular posts from this blog

Object Oriented Programming

Object Oriented Programming Programming paradigm that represents the concept of "objects" that have data fields (attributes that describe the object) and associated procedures known as methods Programming methodology based on objects, instead of just functions and procedures Focuses on data rather than process As individual objects can be modified without affecting other aspects of the program, it is easier for programmers to structure and organize software programs Easier to update and change programs written in object-oriented languages Simula was the first object oriented programming language Eg: C++, Java, etc. Features of OOPS Objects Referred as instance of class Basic run-time entities in an object-oriented system a person, a place, a bank account, a table of data, etc can be an object They occupy space in memory that keeps its state  Each object contains data and code to manipulate the data  Classes Blue print or prototype  which defi

How structure elements are stored?

  The elements of a structure are always stored in contiguous memory locations. This can be illustrated as void main() {     struct student      {      int roll;      float marks;      char remarks;   };   struct student st={200,60.5,'P'};   printf("\nAddress of roll=%u",&st.roll);   printf("\nAddress of marks=%u",&st.marks);   printf("\nAddress of remarks=%u",&st.remarks);   getch(); } Output: Address of roll=65518 Address of marks=65520 Address of remarks=65524                  st.roll               st.marks                          st.remarks 200 60.5 ‘P’               65518             65520                               65524           

How containership is different than inheritance ?

               Inheritance is the mechanism of deriving properties of one class into another. While containership is mechanism in which one class contain objects of other classes as its member.                     class alpha{_ _ _ _ _ };                     class beta{_ _ _ _ _ };                      class gamma                      {                         alpha a;                         beta b;                       _ _ _ _ _ };            All objects of gamma class will contain the objects a and b, this kind of relationship is called containership or nesting.