@@ -0,0 +1,266 @@
+#!/usr/bin/env python%0A%0Afrom multiprocessing import Process, Lock%0A%0A%0Adef f(l, i):%0A    l.acquire()%0A    print('hello world', i)%0A    l.release()%0A%0A%0Aif __name__ == '__main__':%0A    lock = Lock()%0A%0A    for num in range(10):%0A        Process(target=f, args=(lock, num)).start()%0A

add test_lock