Lurker News

Comments (47) 14 threads

Show all comments

Showing thread 4 of 14

uvdn71 reply#
Does this type of analysis and deterministic VM help async workloads (e.g. c++ coroutine, fiber, future, etc.)? My understanding is that they don't. I would love to know how to find the critical path for async code. It feels very hard (maybe impossible) to do without changing the framework code (e.g. embedding something like a request context so we know a later task on thread A is actually a continuation for request R).
setheron1 reply#
Yes it does. Everything is deterministic even the thread orderings and all randomness that would decide asyc scheduling in user space.
uvdn71 reply#
I see. I am not familiar with deterministic VMs. I can see how it can intercept all system calls. I guess randomness is deterministic as well because all the inputs to the RNG are deterministic. So everything is a deterministic state machine.

Continue this thread — 2 replies