Virus Scanning Progress Tracking for Idle System Detection
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Conventional virus scanning methods require re-traversal of the entire hard disk and can be interrupted by system busy states, leading to inefficiencies and user experience issues.
Innovation Solution
A method and apparatus that detect system status to continue or initiate virus scanning only when the system is idle, utilizing a tree structure to track scanning progress and adjust scanning speed or stop scanning during busy periods, allowing for resumed scanning from previous progress.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Reliability
If virus scanning is performed by re-traversing the entire hard disk at each scanning time, then virus detection completeness is improved, but scanning time and system resource consumption increase significantly
Solution Approach 1:
The system performs preliminary actions by recording the traversal progress and scanning results in a database before interruption occurs. When scanning is resumed, the system retrieves the previously recorded progress information, avoiding the need to re-traverse already scanned directories and files. This preliminary recording of state information enables the system to skip redundant scanning operations while maintaining detection completeness.
Solution Approach 2:
The system creates a copy of the hard disk directory structure information and stores it in a database during the scanning process. Instead of directly scanning the actual hard disk files each time, the system works with this copied directory information, which can be quickly loaded and processed. This copying approach allows the system to resume scanning from the last saved state without re-accessing the physical disk structure, significantly reducing scanning time.
2Productivity
If virus scanning continues during system busy status, then scanning productivity is improved, but system stability and user experience deteriorate
Solution Approach 1:
The system continuously monitors system resource usage and user input status as feedback signals. When the system detects that the computer is in a busy state (high CPU usage, memory pressure, or active user input), it automatically adjusts or pauses the virus scanning operation. This feedback mechanism ensures that scanning productivity is optimized during idle periods while system stability is maintained during busy periods, preventing resource conflicts and poor user experience.
3Reliability
If virus scanning is interrupted and re-traversal is required, then scanning thoroughness is maintained, but loss of time and scanning efficiency worsen
Solution Approach 1:
The system performs preliminary recording of the scanning progress, including the current directory being scanned, the state of file traversal, and any detected viruses, before an interruption occurs. This preliminary saving of state information allows the system to resume scanning exactly where it left off without re-traversing already scanned areas, maintaining scanning thoroughness while dramatically improving efficiency upon resumption.
Solution Approach 2:
The system discards the need to re-traverse already scanned directories and files by recovering the previously saved scanning progress from the database. Instead of starting a new complete traversal, the system recovers the midpoint state and continues from there, effectively discarding redundant scanning operations while maintaining the thoroughness of virus detection across the entire file system.
Data Source
AI summary
Method and apparatus for virus scanning, and a non-transitory computer-readable medium that stores instructions for performing virus scanning. The method includes detecting a status of a system; and when the status of the system is idle, if current virus scanning has begun, continuing the current virus scanning, and if the current virus scanning has not begun, acquiring a scanning progress of previous virus scanning, beginning the current virus scanning according to the acquired scanning progress, and recording a scanning progress of the current virus scanning.


