multithreads sharing Primitives