In multi-threading how can we ensure that a resource isn’t used by multiple threads simultaneously?

By ayush goel in 22 Sep 2023 | 11:30 am
ayush goel

ayush goel

Student
Posts: 346
Member since: 21 Sep 2023

In multi-threading how can we ensure that a resource isn’t used by multiple threads simultaneously?

22 Sep 2023 | 11:30 am
0 Likes
divas goyal

divas goyal

Student
Posts: 453
Member since: 22 Sep 2023

   - You can ensure that a resource isn't used by multiple threads simultaneously using synchronization mechanisms like `synchronized` blocks or methods.


23 Sep 2023 | 04:25 pm
0 Likes

Report

Please describe about the report short and clearly.