Implementation method of novel multi-application intelligent card operating system
Through graph partitioning algorithm, load balancing, software pipeline technology and earliest deadline priority algorithm, the task processing and resource management of the smart card operating system are optimized, solving the problems of insufficient efficiency of traditional systems and difficulty in identifying task priorities, and achieving high efficiency. Multi-application parallel processing and real-time response.
Patent Information
- Application Number
- CN202410623861.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-20
- Publication Date
- 2024-08-23
AI Technical Summary
Traditional smart card operating systems are inefficient in large-scale task processing and multi-application support, and resource allocation is fixed, resulting in core resources being overloaded or idle, making it difficult to cope with high-performance demand scenarios, and lacking effective task priority identification and scheduling mechanisms, which affects system performance.
Use graph partitioning algorithm to subdivide large tasks into multiple independently executed subtasks, match multi-core processing characteristics for parallel preprocessing, dynamically adjust resource allocation and task queues based on load balancing strategies, use software pipeline technology to optimize instruction execution order, and adopt the earliest deadline The time priority algorithm is used to pre-schedule key tasks, combined with the MapReduce framework for parallel processing and data consistency checking, and multiple regression analysis is used to optimize system performance.
It improves the task processing efficiency and resource management of smart cards, reduces processing delays and resource idleness, optimizes the instruction execution sequence, ensures rapid response to key tasks, and improves the real-time performance and reliability of the system, making it more effective in high-demand scenarios. competitiveness.
Smart Images

Figure CN118535330A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of smart card operating systems, and in particular to a method for realizing a novel multi-application smart card operating system. Background Art
[0002] A smart card is usually an integrated circuit card (IC card) that can process information and support a variety of applications such as electronic payment, identity authentication, and data storage. The smart card operating system is the software foundation that enables these cards to run these applications. This operating system must be highly secure and reliable, and be able to efficiently manage the isolation between resources and applications to prevent data leakage or application conflicts.
[0003] The purpose of the smart card operating system is to provide a stable platform that enables the smart card to support the operation of multiple applications at the same time while ensuring secure isolation between applications. The goal is to enhance the functionality and security of smart cards so that they can be more widely used in different scenarios, such as in finance, transportation, and identity authentication.
[0004] However, traditional smart card operating systems are inefficient in large-scale task processing and multi-application support. When executing multiple tasks, resource allocation is fixed and cannot be dynamically optimized according to task performance requirements, resulting in core resources sometimes being overloaded and sometimes being idle, making the overall system inefficient. In addition, when smart cards handle emergency tasks, due to the lack of effective task priority identification and scheduling mechanisms, it is difficult to ensure rapid response to critical tasks, affecting the timeliness of task processing. Inadequate optimization of instruction dependency processing can easily lead to delays and blockages in task execution, further affecting the performance of smart cards. These technical limitations make it difficult for smart cards to cope with high-performance demand scenarios such as rapidly developing electronic payments and security authentication, limiting their widespread application and development. Summary of the invention
[0005] The purpose of the present invention is to solve the shortcomings in the prior art and to propose a novel implementation method of a multi-application smart card operating system.
[0006] In order to achieve the above object, the present invention adopts the following technical solution, a method for implementing a novel multi-application smart card operating system, comprising the following steps:
[0007] S1, uses a graph partitioning algorithm to subdivide large and complex tasks into multiple independently executed subtasks according to functional requirements, matches the multi-core processing characteristics of smart cards, and performs parallel preprocessing to generate task subsets;
[0008] S2, based on task subsets, adopts load balancing strategy to allocate tasks to multiple cores of the smart card, dynamically adjusts resource allocation and task queues according to core performance and task priority, and performs core load balancing to obtain optimized task flow;
[0009] S3, based on the optimization of task flow, uses software pipeline technology to analyze and reorganize the dependencies of smart card instructions, optimize the instruction execution sequence and perform execution path optimization to obtain efficient instruction sequences;
[0010] S4, based on efficient instruction sequences, uses the earliest deadline first algorithm to analyze and adjust the priorities of key tasks, applies the earliest deadline first algorithm to reduce the processing and startup delays of key tasks, preloads tasks that need to be executed in the near future into fast access memory, performs task pre-scheduling, and establishes a real-time response task queue;
[0011] S5, based on the real-time response task queue, uses the MapReduce framework to merge the parallel processing results and check the data consistency, and then verifies the results to generate comprehensive task output;
[0012] S6, based on the comprehensive task output, adopts the multivariate regression analysis method to conduct real-time monitoring and analysis of system performance indicators, obtain the processing speed and resource utilization of the smart card operating system, adjust the task scheduling strategy and configuration according to the processing speed and resource utilization, and obtain the optimized performance results.
[0013] Preferably, the task subset is specifically a plurality of small tasks after subdivision, the optimized task flow includes the processing order of tasks, the resource allocation ratio and the distribution of each task on the multi-core of the smart card, the efficient instruction sequence specifically refers to the reorganized smart card operation instruction set, the real-time response task queue includes a task list preloaded into the fast access memory, the comprehensive task output is specifically a merged output of parallel processing results, including data consistency verification results, final data status after merging and integrity results of processing tasks, and the optimized performance results specifically refer to performance indicators of the smart card operating system obtained based on multivariate regression analysis, including the improvement ratio of processing speed, optimized data of resource utilization and adjusted task scheduling strategy and configuration details.
[0014] Preferably, a graph partitioning algorithm is used to divide large and complex tasks into multiple independently executed subtasks according to functional requirements, matching the multi-core processing characteristics of the smart card, and performing parallel preprocessing. The steps for generating task subsets are as follows:
[0015] S101, based on large and complex task requirements, sort out the function points, identify the key functions that need to be handled independently, decompose them according to the independence of each function, and obtain a list of function requirements;
[0016] S102, using the function requirement list, dividing each function into independent tasks, adjusting the computing resource requirements of each task, allocating expected processing time and memory space to each task, and obtaining an independent task group;
[0017] S103, setting the parallel processing parameters of each task on the multi-core processor through the independent task group, adjusting the task load of each core to balance the processing capabilities among the cores, and generating a task subset.
[0018] Preferably, based on the task subset, a load balancing strategy is adopted to allocate tasks to multiple cores of the smart card, dynamically adjust resource allocation and task queues according to core performance and task priority, and perform core load balancing to obtain the steps of optimizing the task flow as follows:
[0019] S201, based on the task subset, perform an initial core performance evaluation, use a performance monitoring tool to collect current performance data of each processing core, including processing speed and current load, record the processing capacity and idle resource status of each core, and generate a core performance overview;
[0020] S202, based on the core performance overview, sorting the tasks by priority, sorting the tasks according to the resource requirements and urgency of the tasks, using a sorting tool to arrange the tasks by priority, forming a task queue organized by priority, and generating a task priority queue;
[0021] S203, based on the task priority queue, load balancing task allocation is performed, and the distribution of tasks between cores is dynamically adjusted according to the current load of each core and the priority of the task, and the load of each core is balanced by using the allocation strategy to obtain an optimized task flow.
[0022] Preferably, based on optimizing the task flow, using software pipeline technology, performing dependency analysis and reorganization of smart card instructions, optimizing the instruction execution sequence and performing execution path optimization, the steps of obtaining an efficient instruction sequence are as follows:
[0023] S301, firstly, identifying and recording all available instructions in the smart card operating system, capturing data of all available instructions, determining the usage and dependency data of each instruction, and constructing a structure diagram of instruction dependency through data arrangement to obtain a dependency diagram;
[0024] S302, based on the dependency graph, grouping and sorting all available instructions, rearranging the instruction order according to the data input and output relationship, eliminating execution conflicts by reordering nodes, and obtaining an optimized instruction order;
[0025] S303, based on the optimized instruction sequence, set the instruction execution path, reduce invalid jumps and waiting time through path planning technology, improve the continuity of the instruction stream, and obtain an efficient instruction sequence.
[0026] Preferably, based on efficient instruction sequences, the earliest deadline priority algorithm is used to analyze and adjust the priority of key tasks, and the earliest deadline priority algorithm is applied to reduce the processing and startup delay of key tasks, preload tasks that need to be executed in the near future into fast access memory, and perform task pre-scheduling. The specific steps of establishing a real-time response task queue are as follows:
[0027] S401, based on the efficient instruction sequence, classify the tasks in the sequence, identify which tasks need to be processed first due to time sensitivity, mark the expected execution time and resource allocation of the tasks, calibrate the task attributes, and obtain the urgent task feature set;
[0028] S402, using the urgent task feature set, sorting the tasks, assigning a priority to each task according to the expected execution time and resource requirements of the task, manually adjusting the order of the tasks in the queue to match their urgency, setting the position of the tasks in the processing queue, and establishing a priority sorting task queue;
[0029] S403, sorting the task queue by priority, selecting the top tasks for preloading, loading the tasks into a cache or a fast access memory, and establishing a real-time response task queue.
[0030] Preferably, based on the real-time response task queue, the MapReduce framework is used to merge the parallel processing results and check the data consistency, and verify the results. The steps for generating the comprehensive task output are as follows:
[0031] S501, based on the real-time response task queue, a separate processing thread is used to configure the execution environment for each task, each task is configured with independent resources to avoid data cross-influence, and time stamping is performed at the same time, the start and completion time of each task is recorded, and a parallel processing record is generated;
[0032] S502, based on the parallel processing records, using a unified data interface to collect the results of each thread into a central data pool, perform data format standardization and field alignment, unify the data format output by each thread, and generate a merged data set;
[0033] S503, based on the merged data set, use a data integrity verification tool to check the merged data, and then perform a final verification on the result data to verify that the output meets the preset standards and obtain the comprehensive task output.
[0034] Preferably, based on the comprehensive task output, a multivariate regression analysis method is used to perform real-time monitoring and analysis of system performance indicators, obtain the processing speed and resource utilization of the smart card operating system, and adjust the task scheduling strategy and configuration according to the processing speed and resource utilization. The specific steps for obtaining the optimized performance results are as follows:
[0035] S601, based on the comprehensive task output, using real-time monitoring equipment to collect performance indicator data of the smart card system, collect data on processing speed and resource utilization, and continuously track changes in indicators through a data recording device to obtain real-time performance data;
[0036] S602, based on the real-time performance data, the collected data is screened and classified, the processing speed and resource utilization data are classified and processed, and the system performance bottlenecks and optimization points are identified through the classification processing to obtain the performance analysis results;
[0037] S603, based on the performance analysis results, reallocate system resources and adjust the priority of task execution, adjust resource allocation to optimize processing speed, and adjust the configuration of the dynamic scheduling system to obtain optimized performance results.
[0038] Compared with the prior art, the advantages and positive effects of the present invention are:
[0039] The present invention optimizes the task processing and resource management of smart cards, and improves the efficiency of parallel processing of multiple applications. The graph partitioning algorithm is used to accurately divide tasks, so that the multi-core resources of the smart card are fully utilized and the processing delay is reduced. The load balancing strategy ensures that the load of each core is balanced, avoiding idle or overloaded resources, and dynamic resource allocation improves the processing speed and system response. The software pipeline technology optimizes the execution order of instructions, reduces execution conflicts and blockages, and improves the efficiency of instruction processing. By adopting the earliest deadline priority scheduling, critical tasks are processed quickly and the startup and operation delays are reduced. Overall, the present invention improves real-time performance and reliability, making smart cards more competitive in high-demand application scenarios. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] Figure 1 It is a schematic diagram of the steps of the present invention. DETAILED DESCRIPTION
[0041] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.
[0042] In the description of the present invention, it should be understood that the terms length, width, up, down, front, back, left, right, vertical, horizontal, top, bottom, inside, outside, etc. indicate positions or positional relationships based on the positions or positional relationships shown in the drawings, which are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific position, be constructed and operated in a specific position, and therefore cannot be understood as limiting the present invention. In addition, in the description of the present invention, the meaning of multiple is two or more, unless otherwise clearly and specifically defined.
[0043] Embodiment 1
[0044] See also Figure 1 The present invention provides a technical solution, a method for implementing a novel multi-application smart card operating system, comprising the following steps:
[0045] S1, uses a graph partitioning algorithm to subdivide large and complex tasks into multiple independently executed subtasks according to functional requirements, matches the multi-core processing characteristics of smart cards, and performs parallel preprocessing to generate task subsets;
[0046] In step S1, a large and complex task is broken down into multiple independently executable subtasks based on functional requirements through a graph partitioning algorithm. This algorithm first analyzes the overall data structure of the task and identifies the data dependencies of different functional modules. Then, based on the multi-core processing characteristics of the smart card, the task is distributed to different cores to achieve optimal resource utilization. The graph is partitioned based on the core processing power and task load, optimizing the workload of each core and the response time of the task. The generated task subset contains each independent task and its execution path.
[0047] S2, based on task subsets, adopts load balancing strategy to allocate tasks to multiple cores of the smart card, dynamically adjusts resource allocation and task queues according to core performance and task priority, and performs core load balancing to obtain optimized task flow;
[0048] In step S2, based on the task subset, a load balancing strategy is adopted to achieve effective distribution of tasks on the smart card. This strategy evaluates the performance indicators and current load of each core in detail, dynamically adjusts resource allocation, ensures balanced workloads of each core, and avoids overloading of a single core. Specific operations include monitoring the real-time load of each core and adjusting the distribution of tasks among cores according to the priority and resource requirements of the tasks. The optimized task flow improves processing efficiency and system stability, ensuring that high-priority tasks can be processed quickly.
[0049] S3, based on the optimization of task flow, uses software pipeline technology to analyze and reorganize the dependencies of smart card instructions, optimize the instruction execution sequence and perform execution path optimization to obtain efficient instruction sequences;
[0050] In step S3, based on the optimization of task flow, software pipeline technology is used to analyze and reorganize the dependencies of smart card instructions. This not only optimizes the instruction flow, but also greatly improves the execution efficiency by reducing CPU idle and waiting time. The generated efficient instruction sequence makes the operation of the entire system smoother.
[0051] S4, based on efficient instruction sequences, uses the earliest deadline first algorithm to analyze and adjust the priorities of key tasks, applies the earliest deadline first algorithm to reduce the processing and startup delays of key tasks, preloads tasks that need to be executed in the near future into fast access memory, performs task pre-scheduling, and establishes a real-time response task queue;
[0052] In step S4, based on efficient instruction sequences, the earliest deadline first algorithm is used to analyze and adjust the priorities of critical tasks. The operation includes evaluating the completion time and resource requirements of each task, setting deadlines and priority tags for each task, and dynamically adjusting the queue of tasks being executed. In this way, the processing and startup delays of critical tasks can be significantly reduced, ensuring the system's rapid response to time-sensitive tasks.
[0053] S5, based on the real-time response task queue, uses the MapReduce framework to merge the parallel processing results and check the data consistency, and then verifies the results to generate comprehensive task output;
[0054] In step S5, based on the real-time response task queue, the MapReduce framework is used to merge the parallel processing results and check the data consistency. The MapReduce framework breaks down large-scale data processing tasks into multiple small tasks, distributes them to multiple nodes for parallel processing, and then merges the results. The operation includes assigning map tasks to handle the data generation of a single subtask, and reduce tasks are responsible for summarizing the results of each map, checking data consistency, and verifying the results. This method not only improves the speed of data processing, but also improves the reliability of data processing through distributed processing. The generated comprehensive task output ensures high data accuracy and integrity.
[0055] S6, based on the comprehensive task output, adopts the multivariate regression analysis method to conduct real-time monitoring and analysis of system performance indicators, obtain the processing speed and resource utilization of the smart card operating system, adjust the task scheduling strategy and configuration according to the processing speed and resource utilization, and obtain the optimized performance results;
[0056] In step S6, based on the comprehensive task output, the multivariate regression analysis method is used to monitor and analyze the system performance indicators in real time. The operation includes collecting key performance indicators such as processing speed and resource utilization, using statistical models to analyze the relationship between indicators and system configuration, and dynamically adjusting system settings to optimize performance based on the analysis results. This method can ensure that the smart card operating system can maintain optimal performance under various workloads.
[0057] The task subset is specifically a plurality of small tasks after subdivision. The optimized task flow includes the processing order of tasks, the resource allocation ratio and the distribution of each task on the multi-core of the smart card. The efficient instruction sequence specifically refers to the reorganized smart card operation instruction set. The real-time response task queue includes the task list preloaded into the fast access memory. The comprehensive task output is specifically the merged output of the parallel processing results, including the consistency check result of the data, the final data state after the merger and the integrity result of the processing task. The optimized performance result specifically refers to the performance index of the smart card operating system obtained after multivariate regression analysis, including the improvement ratio of the processing speed, the optimized data of the resource utilization and the adjusted task scheduling strategy and configuration details.
[0058] Specifically, a graph partitioning algorithm is used to divide large and complex tasks into multiple independently executed subtasks according to functional requirements, matching the multi-core processing characteristics of smart cards, and performing parallel preprocessing. The steps for generating task subsets are as follows:
[0059] S101, based on large and complex task requirements, sort out the function points, identify the key functions that need to be handled independently, decompose them according to the independence of each function, and obtain a list of function requirements;
[0060] In sub-step S101, through in-depth analysis of large and complex task requirements, detailed sorting of functional points is carried out. First, a comprehensive description of the task requirements is collected and sorted out, and data analysis methods such as hierarchical analysis and functional decomposition are used to identify and classify the key functional points that need to be processed in detail. For example, for a complex task that includes data verification, user identity authentication, and transaction processing, this step will identify the specific requirements and operation steps of each function respectively. Then, a logical decomposition is performed based on the independence of each function. Through such operations, a functional requirement list is formed, which reflects the detailed information of each independent functional module in detail, including the required data input and expected output.
[0061] S102, using the function requirement list, dividing each function into independent tasks, adjusting the computing resource requirements of each task, allocating expected processing time and memory space to each task, and obtaining an independent task group;
[0062] In sub-step S102, each function is accurately divided into independent tasks through the function requirement list. Using the task division strategy, first determine the corresponding resource requirements, including the required processing time and memory space, based on each function definition in the list. For example, for data encryption tasks that require a lot of computing and data storage, higher memory and processor time will be allocated. Through the task management system, resources are configured for each independent task. In addition, the execution priority of each task will also be set to ensure that critical tasks can obtain resources first. After completing the settings, an independent task group is obtained, in which each task is equipped with all the resources required for execution. This strategy significantly improves the efficiency of resource utilization and the response speed of task execution.
[0063] S103, setting the parallel processing parameters of each task on the multi-core processor through the independent task group, adjusting the task load of each core to balance the processing capacity among the cores, and generating a task subset;
[0064] In sub-step S103, the parallel processing parameters on the multi-core processor are set through independent task groups. First, the actual demand for processor resources of each task is evaluated through task load analysis. Use load balancing technology to adjust the distribution of each task on the multi-core processor according to the performance characteristics and current load of each core. Core affinity scheduling is used in the operation, which is a technology that ensures the best match between tasks and processor cores. By optimizing the task loading between cores, resource conflicts and frequent task migration between cores are effectively avoided. The generated task subset ensures that the workload of each core is balanced, thereby optimizing the overall processing power and reducing processing delays, and improving the overall operating efficiency of the system.
[0065] Specifically, based on the task subset, a load balancing strategy is adopted to allocate tasks to multiple cores of the smart card, dynamically adjust resource allocation and task queues according to core performance and task priority, and perform core load balancing. The steps to optimize the task flow are as follows:
[0066] S201, based on the task subset, perform an initial core performance evaluation, use a performance monitoring tool to collect current performance data of each processing core, including processing speed and current load, record the processing capacity and idle resource status of each core, and generate a core performance overview;
[0067] In sub-step S201, a special performance monitoring tool is used to collect real-time operating data of the processing core, including the processing speed and current load of the core. The data is mainly in the key-value pair format, where the key represents the data type (such as CPU usage, memory usage, etc.), and the value is the numerical value collected in real time. The performance monitoring tool obtains the status information of the core in real time through the system call interface, and then summarizes the data at each moment through the data aggregation algorithm to form time series data. This data aggregation not only provides a snapshot of a single point in time, but also shows the trend of performance changes. Through the data, a detailed core performance overview report can be generated, which lists in detail the maximum, minimum, and average processing speeds of each processing core, as well as the load change curve.
[0068] S202, based on the core performance overview, sorting the tasks by priority, sorting the tasks according to the resource requirements and urgency of the tasks, using a sorting tool to arrange the tasks by priority, forming a task queue organized by priority, and generating a task priority queue;
[0069] In sub-step S202, based on the core performance overview report, a sorting algorithm is used to prioritize the tasks to be processed according to resource requirements and urgency. The data format of the task includes task identification, required CPU cycles, memory requirements, etc. Each task is assigned a priority score, which is calculated by an evaluation algorithm that takes into account the timeliness and resource intensity of the task. The tasks are dynamically sorted through the priority queue algorithm, and the tasks in the queue are arranged from high to low according to priority. The generated task priority queue is saved in a tabular form, with each row representing a task and its priority, which not only facilitates task scheduling, but also can quickly respond to the insertion and adjustment of sudden high-priority tasks.
[0070] S203, based on the task priority queue, load balancing task allocation is performed, and the distribution of tasks between cores is dynamically adjusted according to the current load of each core and the priority of the task, and the load of each core is balanced by using the allocation strategy to obtain an optimized task flow.
[0071] In sub-step S203, tasks are allocated using a dynamic load balancing strategy based on the task priority queue. Task allocation uses an iterative balancing algorithm that continuously adjusts the cores to which tasks are allocated to minimize processing delays and maximize resource utilization. The current load of each core is used as an input parameter, and the best task allocation scheme is dynamically selected by calculating the idle resources of the current core and the resource requirements of the tasks to be allocated. The generated optimized task flow is stored in the form of a data table, which records the core to which each task is allocated and its estimated completion time.
[0072] Specifically, based on the optimization of task flow, software pipeline technology is used to analyze and reorganize the dependencies of smart card instructions, optimize the instruction execution order and optimize the execution path. The steps to obtain an efficient instruction sequence are as follows:
[0073] S301, firstly, identifying and recording all available instructions in the smart card operating system, capturing data of all available instructions, determining the usage and dependency data of each instruction, and constructing a structure diagram of instruction dependency through data arrangement to obtain a dependency diagram;
[0074] In sub-step S301, all available instructions in the smart card operating system are identified and recorded through the data acquisition module. The collected data mainly includes the type of instructions, frequency and the dependencies between them. The data format is JSON, which is convenient for subsequent processing and analysis. After completing the data capture, the system uses graph analysis methods to organize the data. The specific operation includes representing the instructions and their dependencies as nodes and edges of the graph. The nodes represent the instructions and the edges represent the dependencies. Through the construction of the graph, the dependency hierarchy and structure between the instructions can be clearly displayed. The process uses a combination of adjacency matrix and linked list to store the graph to optimize data processing speed and access efficiency. Finally, the constructed dependency graph will be saved as a structured graph database file. The file provides the necessary data support for the subsequent instruction reorganization and optimization. The generation of the dependency graph effectively supports the precise execution and conflict resolution of subsequent steps.
[0075] S302, based on the dependency graph, grouping and sorting all available instructions, rearranging the instruction order according to the data input and output relationship, eliminating execution conflicts by reordering nodes, and obtaining an optimized instruction order;
[0076] In sub-step S302, based on the generated dependency graph, the system further uses a topological sorting algorithm to group and reorder all available instructions. In this process, each instruction is assigned an in-degree value, that is, the number of other instructions that depend on the instruction. By reducing the in-degree values one by one, the system can determine the execution order to ensure that all dependent data has been processed before the data is processed. In order to eliminate conflicts in execution, the system adjusts the execution time and resource allocation of instructions with the same or similar functions to ensure that instructions executed in parallel do not interfere with each other. The new instruction sequence generated by the reordering process is saved in XML format, which is convenient for the operating system to parse and execute. The optimized instruction sequence significantly improves the system processing efficiency and reduces time delays and resource waste in execution.
[0077] S303, based on the optimized instruction sequence, setting the instruction execution path, reducing invalid jumps and waiting time through path planning technology, improving the coherence of the instruction stream, and obtaining an efficient instruction sequence;
[0078] In sub-step S303, based on the optimized instruction sequence, the system uses dynamic path planning technology to set the execution path. In this way, the system can adjust the instruction flow according to the real-time situation during operation to ensure the efficiency of data processing. The results of path planning are saved as configuration files, which directly affect the real-time execution performance of the smart card operating system. The efficient instruction sequence obtained by optimizing the execution path makes the system run more smoothly and improves the overall performance.
[0079] Specifically, based on efficient instruction sequences, the earliest deadline first algorithm is used to analyze and adjust the priorities of key tasks, and the earliest deadline first algorithm is applied to reduce the processing and startup delays of key tasks, preload tasks that need to be executed in the near future into fast access memory, and perform task pre-scheduling. The specific steps for establishing a real-time response task queue are as follows:
[0080] S401, based on the efficient instruction sequence, classify the tasks in the sequence, identify which tasks need to be processed first due to time sensitivity, mark the expected execution time and resource allocation of the tasks, calibrate the task attributes, and obtain the urgent task feature set;
[0081] In sub-step S401, the urgency and resource requirements of the task are determined through efficient instruction sequence analysis. First, the system extracts relevant information of each task from the efficient instruction sequence, including the estimated execution time, the required computing resources, and the size of the input and output data. The data is analyzed by a specific classification algorithm, which divides the tasks into multiple levels by evaluating the urgency of task execution. For example, using a decision tree classification algorithm, tasks are classified according to the proximity of their execution time and the level of resource requirements. Subsequently, a unique identifier is generated for each task, which contains the execution time, resource configuration, and priority information of the task, forming a structured feature set of urgent tasks. The feature set not only provides the necessary data support for the next step of task scheduling, but also optimizes the accuracy of resource allocation, ensures that critical tasks can obtain processing resources first, and improves the system's response speed to high-priority tasks.
[0082] S402, using the urgent task feature set, sorting the tasks, assigning a priority to each task according to the expected execution time and resource requirements of the task, manually adjusting the order of the tasks in the queue to match their urgency, setting the position of the tasks in the processing queue, and establishing a priority sorting task queue;
[0083] In sub-step S402, the tasks are prioritized by the urgent task feature set, and a priority-sorted task queue is established. First, the priority queue algorithm is used to sort the tasks according to the estimated execution time and resource requirements of each task in the task feature set. A manual adjustment mechanism is also introduced to deal with emergencies, allowing system administrators to adjust task priorities according to real-time conditions. This sorting mechanism not only ensures the fairness and efficiency of task processing, but also enables urgent tasks to be processed quickly, reduces the waiting time of tasks, and improves the execution efficiency of the overall system.
[0084] S403, sorting the task queue by priority, selecting the top tasks for preloading, loading the tasks into a cache or a fast access memory, and establishing a real-time response task queue.
[0085] In sub-step S403, the task queue is prioritized, the task preloading process is executed, and a real-time response task queue is constructed. The system first identifies the high-priority tasks at the front of the queue, and then loads the tasks into the cache or fast access memory. During the preloading process, the data and execution instructions of each task are moved closer to the processor in advance, which greatly reduces the time for task startup and execution. This fast response mechanism significantly improves the system's ability to handle urgent tasks, ensures that tasks can be quickly processed at high loads or critical moments, and establishes an efficient and responsive task execution environment.
[0086] Specifically, based on the real-time response task queue, the MapReduce framework is used to merge the parallel processing results, check the data consistency, and verify the results. The steps to generate the comprehensive task output are as follows:
[0087] S501, based on the real-time response task queue, a separate processing thread is used to configure the execution environment for each task, each task is configured with independent resources to avoid data cross-influence, and time stamping is performed at the same time, the start and completion time of each task is recorded, and a parallel processing record is generated;
[0088] In sub-step S501, a separate processing thread is created through the thread management tool provided by the operating system to configure the execution environment for each task. The specific operation includes allocating an independent thread to each task, and allocating independent memory and processing resources to each thread to prevent data cross-influence and resource contention. At the same time, the thread management tool is used to perform time stamping and record the start and completion time of each task in real time. The parallel processing record generated in this way records in detail the processing thread, start time, end time and consumed resources of each task.
[0089] S502, based on the parallel processing records, using a unified data interface to collect the results of each thread into a central data pool, perform data format standardization and field alignment, unify the data format output by each thread, and generate a merged data set;
[0090] In sub-step S502, the results of each thread are collected into a central data pool through a developed unified data interface. This data interface uses a standardized method to read the data output by each thread, and performs data format standardization and field alignment operations. In the specific implementation process, the format of the data output by each thread is first identified, and then a data conversion script is used to unify all data formats into a predefined standard format, such as JSON or CSV format, to ensure that each data item has the same position and meaning in all data sets. Next, field alignment is performed to ensure that the data fields output by all threads can correspond correctly in the central data pool. The generated merged data set contains the output of all tasks.
[0091] S503, based on the merged data set, using a data integrity verification tool to check the merged data, and then finally verifying the result data to verify that the output meets the preset standards, and obtaining the comprehensive task output;
[0092] In sub-step S503, the merged data is thoroughly checked using a data integrity check tool. The tool checks the integrity of each data item, including the data integrity check code, data size, and verification of necessary fields. In specific implementations, each data item is compared with the original data and the merged data for consistency through a verification algorithm to ensure that no damage or changes have occurred during data transmission and processing. Next, the result data is finally verified, which includes comparing the preset output standard with the actual output data. During the verification process, an automated script is used to detect the correctness and logical rationality of the data value.
[0093] Specifically, based on the comprehensive task output, the multivariate regression analysis method is used to conduct real-time monitoring and analysis of system performance indicators, obtain the processing speed and resource utilization of the smart card operating system, and adjust the task scheduling strategy and configuration according to the processing speed and resource utilization. The specific steps to obtain the optimized performance results are as follows:
[0094] S601, based on the comprehensive task output, using real-time monitoring equipment to collect performance indicator data of the smart card system, collect data on processing speed and resource utilization, and continuously track changes in indicators through a data recording device to obtain real-time performance data;
[0095] In sub-step S601, the performance indicator data of the smart card system is collected through real-time monitoring equipment. The real-time monitoring equipment regularly captures data from the core hardware and software levels of the system. The collected data is mainly stored in the form of time series in the format of CSV, which is convenient for real-time analysis and tracking. The data includes processing speed and resource utilization indicators at each time point. The data is recorded in real time through high-frequency sampling sensors and sent to the central monitoring system. The central system uses stream processing technology to process real-time data streams and update the performance indicator database in real time to continuously monitor the system status. The database update operation ensures data consistency and recoverability through transaction logs. In this way, real-time performance data can provide accurate basic data for system performance evaluation, and also provide support for problem diagnosis and early warning.
[0096] S602, based on the real-time performance data, the collected data is screened and classified, the processing speed and resource utilization data are classified and processed, and the system performance bottlenecks and optimization points are identified through the classification processing to obtain the performance analysis results;
[0097] In sub-step S602, based on real-time performance data, the system uses a data processing engine to screen and grade the collected data. First, the data processing engine preliminarily screens the data according to the preset performance indicator thresholds to exclude outliers and irrelevant data. Next, the processing speed and resource utilization data are divided into multiple levels through clustering analysis methods. The process relies on clustering algorithms in statistical analysis software packages, such as K-means, which can cluster data points together based on the distance between them, thereby identifying different performance levels. The classified data is further analyzed to determine the bottlenecks and optimization points of system performance. The analysis results are saved as a performance analysis report, which details the current status and improvement suggestions of each performance indicator, providing decision support for system optimization.
[0098] S603, based on the performance analysis results, reallocate system resources and adjust the priority of task execution, adjust resource allocation to optimize processing speed, and adjust the configuration of the dynamic scheduling system to obtain optimized performance results;
[0099] In sub-step S603, based on the performance analysis results, the system resource manager reallocates system resources and adjusts the priority of task execution. The resource manager uses a dynamic scheduling algorithm to dynamically adjust resource allocation according to the current system load and task priority, including optimization of CPU time slices, memory allocation, and input / output bandwidth. By analyzing the bottleneck information predicted by the module, the scheduling system can adjust resources in real time and optimize the processing speed and efficiency of tasks. The implementation of scheduling is completed by modifying the system configuration file and the queue management strategy of the task scheduler. The optimized configuration is immediately fed back to the operating system to improve the overall processing performance. This dynamic resource allocation and task priority adjustment significantly improves the system's response speed and resource utilization efficiency. The generated optimized performance results directly affect the operating efficiency of the smart card and ensure the optimal performance of the system under various loads.
[0100] In this embodiment, the graph partitioning algorithm is used to accurately divide tasks, so as to fully utilize the multi-core resources of the smart card and reduce processing delays. The load balancing strategy ensures that the load of each core is balanced, avoiding idle or overloaded resources, and dynamic resource allocation improves processing speed and system response. Software pipeline technology optimizes the execution order of instructions, reduces execution conflicts and blocking, and improves instruction processing efficiency. The earliest deadline priority scheduling is adopted, so that critical tasks are processed quickly and startup and operation delays are reduced.
[0101] The above are only preferred embodiments of the present invention and are not intended to limit the present invention in other forms. Any technician familiar with the profession may use the technical contents disclosed above to change or modify them into equivalent embodiments with equivalent changes and apply them to other fields. However, any simple modification, equivalent change and modification made to the above embodiments based on the technical essence of the present invention without departing from the technical solution of the present invention still falls within the protection scope of the technical solution of the present invention.
Claims
1. A method for implementing a novel multi-application smart card operating system, characterized in that: The following steps are involved: Using graph partitioning algorithm, large and complex tasks are divided into multiple independently executed subtasks according to functional requirements, matching the multi-core processing characteristics of smart cards, and performing parallel preprocessing to generate task subsets; Based on the task subset, a load balancing strategy is adopted to allocate tasks to multiple cores of the smart card, resource allocation and task queues are dynamically adjusted according to core performance and task priority, and core load balancing is performed to obtain an optimized task flow; Based on the optimized task flow, software pipeline technology is used to analyze and reorganize the dependency of smart card instructions, optimize the instruction execution sequence and perform execution path optimization to obtain an efficient instruction sequence; Based on the efficient instruction sequence, the earliest deadline first algorithm is adopted to analyze and adjust the priority of key tasks, and the earliest deadline first algorithm is applied to reduce the processing and startup delay of key tasks, preload tasks that need to be executed in the near future into fast access memory, perform task pre-scheduling, and establish a real-time response task queue; Based on the real-time response task queue, the MapReduce framework is used to merge the parallel processing results and check the data consistency, and the results are verified to generate a comprehensive task output; Based on the comprehensive task output, a multivariate regression analysis method is used to perform real-time monitoring and analysis of system performance indicators, obtain the processing speed and resource utilization of the smart card operating system, adjust the task scheduling strategy and configuration according to the processing speed and resource utilization, and obtain optimized performance results.
2. The method for implementing the novel multi-application smart card operating system according to claim 1, characterized in that: The task subset is specifically a plurality of small tasks after subdivision, the optimized task flow includes the processing order of tasks, the resource allocation ratio and the distribution of each task on the smart card multi-core, the efficient instruction sequence specifically refers to the reorganized smart card operation instruction set, the real-time response task queue includes a task list preloaded into the fast access memory, the comprehensive task output is specifically the merged output of the parallel processing results, including the consistency check result of the data, the final data state after the merger and the integrity result of the processing task, and the optimized performance result specifically refers to the performance index of the smart card operating system obtained after multivariate regression analysis, including the improvement ratio of the processing speed, the optimized data of the resource utilization and the adjusted task scheduling strategy and configuration details.
3. The method for implementing the novel multi-application smart card operating system according to claim 1, characterized in that: Using the graph partitioning algorithm, large and complex tasks are divided into multiple independently executed subtasks according to functional requirements, matching the multi-core processing characteristics of smart cards, and performing parallel preprocessing. The steps to generate task subsets are as follows: Based on the large and complex task requirements, sort out the function points, identify the key functions that need to be processed independently, and decompose them according to the independence of each function to obtain a list of function requirements; Using the functional requirement list, each function is divided into independent tasks, the requirements of each task for computing resources are adjusted, the expected processing time and memory space are allocated to each task, and an independent task group is obtained; Through the independent task group, the parallel processing parameters of each task on the multi-core processor are set, the task load of each core is adjusted to balance the processing capabilities between the cores, and the task subset is generated.
4. The method for implementing the novel multi-application smart card operating system according to claim 1, characterized in that: Based on the task subset, a load balancing strategy is adopted to allocate tasks to multiple cores of the smart card, dynamically adjust resource allocation and task queues according to core performance and task priority, and perform core load balancing to obtain the steps of optimizing task flow as follows: Based on the task subset, an initial core performance evaluation is performed, and a performance monitoring tool is used to collect current performance data of each processing core, including processing speed and current load, and the processing capacity and idle resource status of each core are recorded to generate a core performance overview; Based on the core performance overview, prioritize tasks, sort tasks according to their resource requirements and urgency, use a sorting tool to arrange tasks according to their priorities, form a task queue organized according to priority, and generate a task priority queue; Based on the task priority queue, load balancing task allocation is performed, and the distribution of tasks between cores is dynamically adjusted according to the current load of each core and the priority of the task. The load of each core is balanced using an allocation strategy to obtain an optimized task flow.
5. The method for implementing the novel multi-application smart card operating system according to claim 1, characterized in that: Based on the optimized task flow, software pipeline technology is used to analyze and reorganize the dependency of smart card instructions, optimize the instruction execution sequence and optimize the execution path. The specific steps of obtaining an efficient instruction sequence are as follows: Firstly, all available instructions in the smart card operating system are identified and recorded, data of all available instructions are captured, the usage and dependency data of each instruction are determined, and a structure diagram of instruction dependency is constructed through data sorting to obtain a dependency diagram; Based on the dependency graph, all available instructions are grouped and sorted, the instruction order is rearranged according to the data input and output relationship, and the execution conflict is eliminated by reordering the nodes to obtain an optimized instruction order; Based on the optimized instruction sequence, an instruction execution path is set, and invalid jumps and waiting time are reduced through path planning technology, thereby improving the continuity of the instruction stream and obtaining an efficient instruction sequence.
6. The method for implementing the novel multi-application smart card operating system according to claim 1, characterized in that: Based on the efficient instruction sequence, the earliest deadline priority algorithm is adopted to analyze and adjust the priority of key tasks, and the earliest deadline priority algorithm is applied to reduce the processing and startup delay of key tasks, preload tasks that need to be executed in the near future into the fast access memory, and perform task pre-scheduling. The specific steps of establishing a real-time response task queue are as follows: Based on the efficient instruction sequence, the tasks in the sequence are classified, which tasks need to be processed first due to time sensitivity are identified, the expected execution time and resource allocation of the tasks are marked, and the task attributes are calibrated to obtain an urgent task feature set; Using the urgent task feature set, sort the tasks, assign a priority to each task based on the expected execution time and resource requirements of the task, manually adjust the order of the tasks in the queue to match their urgency, set the position of the tasks in the processing queue, and establish a priority-sorted task queue; By sorting the task queue by priority, the tasks in the front row are selected for preloading, and the tasks are loaded into a cache or a fast access memory to establish a real-time response task queue.
7. The method for implementing the novel multi-application smart card operating system according to claim 1, characterized in that: Based on the real-time response task queue, the MapReduce framework is used to merge the parallel processing results, check the data consistency, and verify the results. The steps of generating the comprehensive task output are as follows: Based on the real-time response task queue, a separate processing thread is used to configure an execution environment for each task, each task is configured with independent resources to avoid data cross-influence, and time stamping is performed to record the start and completion time of each task, and a parallel processing record is generated; Based on the parallel processing records, a unified data interface is used to collect the results of each thread into a central data pool, and data format standardization and field alignment are performed to unify the data format output by each thread and generate a merged data set; Based on the merged data set, a data integrity verification tool is used to check the merged data, and then the result data is finally verified to verify that the output meets the preset standards to obtain a comprehensive task output.
8. The method for implementing the novel multi-application smart card operating system according to claim 1, characterized in that: Based on the comprehensive task output, a multivariate regression analysis method is used to perform real-time monitoring and analysis of system performance indicators, obtain the processing speed and resource utilization of the smart card operating system, adjust the task scheduling strategy and configuration according to the processing speed and resource utilization, and obtain the optimized performance results in the following steps: Based on the comprehensive task output, real-time monitoring equipment is used to collect performance indicator data of the smart card system, collect data on processing speed and resource utilization, and the changes of indicators are continuously tracked through a data recording device to obtain real-time performance data; Based on the real-time performance data, the collected data is screened and classified, the processing speed and resource utilization data are classified and processed, and the system performance bottlenecks and optimization points are identified through classification processing to obtain performance analysis results; Based on the performance analysis results, system resources are reallocated and the priority of task execution is adjusted to adjust resource allocation to optimize processing speed. The configuration is adjusted through dynamic scheduling system implementation to obtain optimized performance results.
Citation Information
Cited By
Intelligent analysis and management method and system for enterprise data
CN120087690A
Intelligent matrix architecture method, system, equipment and medium
CN120336003A
Data processing method, system and equipment and storage medium
CN120610787A
