Locking

Peterson-algoritmus