Dthreads: Efficient Deterministic Multithreading (2011) [pdf]
people.cs.ksu.edu
people.cs.ksu.edu
They seem to be using a processes' copy-on-write memory to keep the dthreads isolated until commit points. At commit points they deterministically merge the pages back.
Algorithmic errors are still possible due to data races, but they present themselves more like logic errors because they're deterministic. They'll fail the same everytime.
Interesting.
"Unsupported Benchmarks: We were unable to evaluate DTHREADS on seven of the PARSEC benchmarks: vips and raytrace would not build as 32-bit executables; bodytrack, facesim, and x264 depend on sharing of stack variables; fluidanimate uses ad-hoc synchronization, so it will not run without modifications."
In your packets example, if we were to feed the external inputs through a record/replay mechanism we could debug the multi-threaded program reliably and deterministically.
>>>
4.1.1 Thread Creation
DTHREADS replaces the pthread_create() function with the clone system call provided by Linux. ...