basic-multithreading This example file, show us when we need to use locks. provide a very basic example, for two threads access the same resource.