1 A lock-based implementation prevents race conditions but can lead to poor performance due to thread blocking and lack of progress when threads wait for locks.
“thread 2 says well I'd like to do some work no one else is doing anything why can't I do some work I would like to you know operate on this data structure but I have to wait for the guy who took the lunch nothing's happening right so our algorithm is making no progress It's just sitting there”