1. how to add a constructor to initialise the latch.
2. add a constructor to initialise the latch and the lock.
3. add a constructor to initialise the semaphore and lock
Also, how can i inform the Sample A thread that polls from Sample B are finished using the latch in part (1)/(2) and semaphore in part (3).
Thanks