Computer Science, asked by TbiaSamishta, 11 months ago

Which is the mechanism to enforce limits on the access of a resource when multiple threads are executed?

Answers

Answered by playerPN
0

Answer:

The mechanism in question here is known as a Semaphore. The purpose of a Semaphore is to limit the access of threads concurrently to the shared resources.

It is great for non-inclusive locking implementation. This essentially enables concurrency limiting. It is different from a Mutex because Mutex allows for synchronization across processes. Therefore it allows multiple threads to access the resource.

Answered by Arslankincsem
0

Answer:

In computer science programming, when multiple threads are executing simultaneously,then there is a need to limit the access to resources for multiple threads. The reason for this is that the resources are limitted and if a resource is being used by one thread the another thread can not use it at the same time. to ensure this arrangement locking system is being implemented. when a resource is assigned to a thread then it is locked untill the \thread holding it releases it.

Similar questions