Author Archives: linhbui

[pthread] RWlock

Reader-writer problem Suppose we have a shared memory area with the basic constraints detailed above. It is possible to protect the shared data behind a mutual exclusion mutex, in… Read more »

[pthread] Spinlock Nhanh chóng chiếm được lock as soon as lock được nhả ra. Tiến trình đợi không ngủ liên tục chờ đợi. Nên dùng spinlock với trường hợp cần nhanh… Read more »

10 question c++ [Question #1 – Smart Pointer – Standard library] [Question #2 – Rule of Five – RAII] [Question #3 – Finding bugs – Basics] [Question #4 – Automatic objects –… Read more »