thread base
 thread examples with lock