traffic lights implemented at the road where road is acting like a shared resources and if vehicles from every side use shared resources(which is road here) then that might cause to big disaster similarly in our operating system when two or more process are using a same resources simultaneously without any controller than this will create data to get corrupt and we will not get what we are trying to get in actual.