part1 final version

two threads: one main thread, one extra thread
fix mutex problems
lab02 create

read from chip / to chip