CS 342 - Operating Systems exercise