Design a logical memory unit that serves page requests, falls back to physical memory on a miss, keeps every entry for each page, and can return the latest or the k latest entries of a page — then make it thread-safe.
Design a logical memory unit that serves page requests, falls back to physical memory on a miss, keeps every entry for each page, and can return the latest or the k latest entries of a page — then make it thread-safe.
Opens with the full question.