Multithreading design method
A design method and multi-threading technology, applied in the directions of multi-program device, program start/switch, concurrent instruction execution, etc., can solve complex problems and achieve the effect of ensuring correctness and simple structure
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Examples
Embodiment Construction
[0012] The multi-thread service library of the present invention is realized through the standard uEFI protocol established after the EFI driver is loaded in the DXE stage. Since the standard EDK [5] There is no driver for creating these service programs, so the EFI driver for building multi-threaded services must first be developed. The bottom layer is the real hardware platform, which is the physical multi-core CPU. It is a real physical device, not abstracted by any software. Based on the uEFI protocol, the scheduling, creation, cancellation, and synchronization of thread services are realized.
[0013] The multi-thread design method of the present invention comprises the following steps:
[0014] Step 1, the state machine design of the thread, the thread can work normally under the coordination of the scheduler, the state switching of the thread is as follows: after the thread is created, the thread becomes the default state; then it will be inserted by the function of ...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More