bb_threads
bb_threads_stacksize(b)
to set stack size
bb_threads_mutexcreate(i)
to initialize
i
th lock
bb_threads_newthread(f, &arg)
to create
thread running f()
bb_threads_lock(n)
and bb_threads_unlock(n)
bb_threads_cleanup(wait(NULL))
to clean-up after
each thread