PreviousUpNext

14.4.82  Redirect_Slow_Syscalls_Via_Support_Hostthreads

The standard library Redirect_Slow_Syscalls_Via_Support_Hostthreads api defines the internal interface for doing “slow” system calls such as read() and write() in separate support hostthreads (posix threads) instead of in the main Mythryl hostthread. This ensures that the main Mythryl hostthread is never blocked on a kernel call when there is are still user threads which are ready-to-run. Preventing the main Mythryl hostthread from blocking needlessly results in lower-latency applications which seem "faster" to users.

The Redirect_Slow_Syscalls_Via_Support_Hostthreads api is implemented by the redirect_slow_syscalls_via_support_hostthreads package.

The Redirect_Slow_Syscalls_Via_Support_Hostthreads api source code is in .

This code implements part of the startup and shutdown sequencing logic coordinated by the run_at package. The above information is manually maintained and may contain errors.

api {
    system_calls_are_being_redirected_via_support_hostthreads : Void -> Bool;
    count_of_redirected_system_calls_done : Void -> Int;};


Comments and suggestions to: bugs@mythryl.org

PreviousUpNext