4 ms·
> but the state should be fully encapsulated within the thread, except in the case of large shared read-only input buffers Sure. The trick is that the thread d
by jrochkind1 7y ago
> but the state should be fully encapsulated within the thread, except in the case of large shared read-only input buffers
Sure. The trick is that the thread design does not ENFORCE that, threads as an abstraction involve shared memory.
> If reading your stack trace relies on the state of other threads, you've got a very brittle design.
Or a bug. And a bug or a brittle design is exactly when you need a debugger the most, right?