Quantcast
Channel: Active questions tagged operating-system+scheduling - Stack Overflow
Viewing all articles
Browse latest Browse all 209

How does de OS know which solution to apply to a concurrency problem?

$
0
0

When x1, ..., xN proceses try to access some A resource, how does the OS know the particular solution to use for handling the issue of concurrency?

If A is serially reusable then the solution can be a mutex semaphore, but how does the OS identify A as serially reusable? And what's the logic used for creating and accessing the structures used for handling its concurrent use?

How does it do the same thing for resources that match the other concurrency problems: producer-consumer, readers-writers, and philosophers.


Viewing all articles
Browse latest Browse all 209

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>