加锁

加鎖
jiāsuǒ
verb

Meanings

  1. 1 to acquire a lock (concurrency)
  2. 2 to lock

Examples

HSK 5
Fǎngwèn gòngxiǎng zīyuán qián bìxū xiān jiāsuǒ.
You must acquire a lock before accessing shared resources.
HSK 7-9
Tā wàng le gěi zhè duàn dàimǎ jiāsuǒ.
He forgot to add a lock around this piece of code.

Tips

usage
'add / apply' + 'lock'. Opposite: 解锁 (release the lock). Also usable outside programming for physically locking something.

Stroke Order

jiā
suǒ