I was recently in an interview and the tech guy asked me about how to make an application thread-safe.
Well, after explaining the lock()
correctly, he s
He claimed the reason is that static is run at runtime instead of compilation and would make that object slower for threads to lock than if it was non static.
This doesn't really make any sense - I think either the interviewer did not know what he was talking about, or maybe you misunderstood his point.