On-demand antivirus works when we run them. These type of antivirus usually used for scanning purpose only. On the other hand real time antivirus examine every activity in the system in real time to stop the malware before they enter in to the system.