Akamai interview question

Write a program to simulate OS thrashing