In fact if it happens I shouldn’t use it this way.
People have the belief that putting new threads everything gets fast, but often gets slower. See It’s always guaranteed that a multi-threaded application runs faster than using a single thread?.
If the thread to be stuck waiting for another most of the time then there will only be waste of time, never gain. If this wait is possible may still have some gain, even if it is not so great, so you have to think carefully if it is worth the complexity of doing this, because environment multithreaded is harder to program and a lot can go wrong.
There’s only this problem if at least two threads compete for the same resource during processing. No threads in this scenario the competition will not exist but the speed would be limited. When you put another thread can decrease well the time to finish while they are not competing for the feature and the wait only happens in a few moments, if it happens in fact. In many cases the locking of a thread is very short so the wait is not long. It does not mean that this is good, but if it is eventual is not a big problem.
Where real competition is expected in many cases not worth using this type of strategy. There are data structures that do not need synchronization and allow better competition. Of course they have other disadvantages, so it cannot be used in any case. And most situations the solution is to have a same serialized processing.
Think of a database. Many work like this, it crashes the record that is working because it is unlikely that another operation is accessing the same data, but if this happens then there will be a wait and this is not good, but it is better that this operation access the data that is already being accessed. Some databases use a system called MVCC in which everything changed is copied so access does not create problems.
If the accesses will be read-only the synchronization is not necessary.
https://answall.com/questions/95233/o-que-%C3%A9-a-thread-how-it-works, I believe this question has the answer you want
– Arthur Abitante