I am working on implementing a simple cache using ArrayList in my application. I would like to synchronize cache update operations, while updating the cache I s
For example: pthread_mutex_lock(); //Do something sleep(1); //causes issues waiting while holding lock pthread_mutex_unlock(); what is the so