The following diagram shows you how a barrier works with the two processes: Process management with a barrier