Implement a thread monitor for OS161 by the uses of lock and thread structure.