TikTok interview question

Implement rate limiter, describe threads vs processes, virtual memory