- add barrier implementation (refer 'Modern operating system' by tanenbaum)