QRT low-latency MCQ

22 multiple-choice questions on C++ low-latency and market-data engineering. Pick an answer to see the explanation.

Question 1 / 22Correct 0
Category 1: Cache Locality & Hardware Interaction

1. Cache Alignment & False Sharing

You are designing a market data feed handler where multiple worker threads continuously update independent statistics inside a shared array of structs. Each struct represents a distinct financial instrument:

struct TickerStats {
    uint64_t total_volume; // 8 bytes
    double vwap;           // 8 bytes
};
TickerStats market_data[4]; // Processed concurrently by 4 separate threads

Assuming a standard x86-64 architecture with a 64-byte cache line, what performance phenomenon is most likely to degrade your throughput, and how do you fix it?