LLD - Advanced LLD Concepts
Consider this pseudocode for a shared counter increment:
lock.acquire() counter = counter + 1 lock.release() print(counter)If two threads run this code simultaneously starting with counter = 0, what is the possible output?
