<s> from vt_manager . controller . SlotAllocator import SlotAllocator , SlotAllocatorLocker <EOL> from vt_manager . models import Slot <EOL> from threading import Thread <EOL> import sys <EOL> def func1 ( ) : <EOL> c = SlotAllocatorLocker ( ) <EOL> a = c . acquire ( "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" ) <EOL> def func2 ( ) : <EOL> l = SlotAllocator ( ) <EOL> b = l . acquire ( "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" ) <EOL> t1 = Thread ( target = func1 ) <EOL> t2 = Thread ( target = func2 ) <EOL> t1 . start ( ) <EOL> t2 . start ( ) </s>
