This is code about synchronization using event objects.
I used the code on the site below.
https://docs.microsoft.com/ko-kr/windows/win32/sync/using-event-obje