Quant Interview Practice Questions
题目详情
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