3 ms·
Nonsense, multithreaded code can be written as bug free as regular code. No need to fear.
by xwdv 3y ago
Nonsense, multithreaded code can be written as bug free as regular code. No need to fear.
- dboreham 3y agoThis is true. However, the blast radius may be smaller with a process model. Also recovering from a fatal error in one session could possibly be easier. I say this as a 30-year threading proponent.
- preordained 3y agoIt can be. Anything can be. It is far more treacherous, though.
- taeric 3y agoI think the point is that some mistakes in process based code are not realized as the bugs that they will be in threaded code?
- PhilipRoman 3y agoI'm assuming you're referring to formally proven programs. If that's the case, do you have any pointers? Aside from the trivial while(!transactionSucceeded){retry()} loop, I have trouble proving the correctness of my programs when the number of threads is not small and finite.
- ajkjk 3y agoIt is just harder.
- baggy_trough 3y agoIn theory, yes. In practice, no.