maxwills / SeekerDebugger

A Queryable Time-Traveling Debugger for Pharo 9.0, 10 and 11.
9 stars 5 forks source link

About multithreading and synchronization #36

Open maxwills opened 1 year ago

maxwills commented 1 year ago

To step an execution, Executor now should create an extra thread per tcu. So the TCUs are advanced by each thread, however, they synchronize with executor to know which one advances. In theory, the threads themselves can define the execution order, which is closer to the actual scheduling of Pharo. I should record such order, and for replay, no extra threads are required, one the ecu stepping each tcu according to the records, while ignoring waits and signals?