TASK PROCESSING METHOD AND APPARATUS
    1.
    发明公开

    公开(公告)号:US20240345879A1

    公开(公告)日:2024-10-17

    申请号:US18752367

    申请日:2024-06-24

    CPC classification number: G06F9/4881 G06F9/485

    Abstract: This application discloses a task processing method. The method is applied to a computer system, and the computer system includes a user mode and a kernel mode. The user mode includes a plurality of tasks, and the tasks are threads or processes. The method includes: detecting, in the kernel mode, a type of a first request of entering a kernel entry; when the type of the first request indicates that a first task is suspended in the user mode, switching at least from a user-mode context of the first task to a user-mode context of a second task, recording a suspended state of the first task and a running time from a moment of starting to run the first task to a moment of suspending the first task, and skipping processing other scheduling statuses of the first task; and running the second task in the user mode.

Patent Agency Ranking