Pergunta de entrevista da empresa Apple

Given read and write freq, how to calculate FIFO depth?