You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
./philo 200 410 200 200 1 을 실행시켰을 때, 처음 시간이 동기화가 잘 안되는 듯한 이슈가 있었으나, print_status함수에서 get_time()을 호출할때 mutex 외부에서 호출해서 문제가 되었던 것이었다.
print_mtx내부로 get_time()을 호출하니 뮤택스를 획득한 스레드 순서대로 시간이 업데이트 되었다.!!