InterviewSolution
Saved Bookmarks
| 1. |
What is synchronization in reference to a thread?(a) It’s a process of handling situations when two or more threads need access to a shared resource(b) It’s a process by which many threads are able to access the same shared resource simultaneously(c) It’s a process by which a method is able to access many different threads simultaneously(d) It’s a method that allows too many threads to access any information they require |
|
Answer» The correct answer is (a) It’s a process of handling situations when two or more threads need access to a shared resource The best explanation: When two or more threads need to access the same shared resource, they need some way to ensure that the resource will be used by only one thread at a time, the process by which this is achieved is called synchronization. |
|