Difficulty: Hard
Category: Networking & Systems
Practice quant interview questions from top firms including Jane Street, Citadel, Two Sigma, DE Shaw, and other leading quantitative finance companies.
Topics: cache-coherence, MESI, false-sharing, performance, systems
Consider a high-frequency trading application running on a multi-core processor. Two independent threads, running on separate cores, are frequently updating different variables that happen to reside within the same cache line. This scenario is known as false sharing. Assume a MESI (Modified, Exclusive, Shared, Invalid) cache coherence protocol is in place. Each time one core modifies its variable, the cache line must transition through different states, potentially invalidating the other core's
Practice this hard trader interview question on MyntBit - the all-in-one quant learning platform with 200+ quant interview questions for Jane Street, Citadel, Two Sigma, and other top quantitative finance firms.