krafton-jungle

PintOS

Project 1 : synch 코드리뷰 - BeAPro

synch.h /* A counting semaphore. */ struct semaphore { unsigned value; /* Current value. */ struct list waiters; /* List of waiting threads. */ }; /* Lock. */ struct lock { struct thread *holder; /* Thread holding lock (for debugging). */ struct semaphore semaphore; /* Binary semaphore controlling access. */ }; /* Condition variable. */ struct condition { struct list waiters; /* List of waiting ..

BeAPro
'krafton-jungle' 태그의 글 목록