experimental code of spinlock & atomic operations