Just adding threads won’t make your code run fast.
You need to understand the kind of workload, the capability of the language, and the data access pattern of objects in the shared memory.
If done irresponsibly, adding threads will affect the correctness of your business logic.