Removed semaphores and added resource attribute to PCB.

Changed functions accordingly.