主权项 |
1. A method, comprising:
establishing, by a processor, an application-level thread dispatcher that operates in a main full-weight thread allocated to an application; initializing, by the application-level thread dispatcher, a plurality of application-level pseudo threads that operate as application-controlled threads within the main full-weight thread allocated to the application; determining, by the application-level thread dispatcher, that at least one application-level pseudo thread meets configuration requirements to operate within a separate operating system-level thread in parallel with the main full-weight thread; and dispatching, from the main full-weight thread by the application-level thread dispatcher in response to determining that the at least one application-level pseudo thread meets the configuration requirements to operate within the separate operating system-level thread in parallel with the main full-weight thread, the at least one application-level pseudo thread to the separate operating system-level thread. |