Will lock-contention always leed to heavyweight locks?
I am writing an server-side application which should be as scalable as possible even from its design.
I am a bit concerned about lock-contention, will a contended lock always be turned into a heavyweight one - and is hotspot able to migrate a heavyweight lock back to a lightweight one if appropriate?
Will the lightweight lock spin some time before it gets a heavyweight one?
Does anybody know links with explanations of hotspots heuristics?
Thank you in advance, lg Clemens