I met two terms and are they the same thing or different thing?
You could look at it as: Avoid: Don't share resources across processes / mulitple threads Prevent: When accsessing shared resources, use a semaphore.
Wikipedia is your friend.