Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

solaris mutexes?

mutexes Solaris
0
Posted

solaris mutexes?

0

Roy Gordon wrote: > Is the following true: Solaris mutexes only exist in the user address > space (including any shared memory space); they have no associated > kernel data structure. True. For non-shared-memory mutexes. Ditto CVs & unnamed semaphores. > > If true, this would be opposed to system V semaphores. Yup. > > > Also, if true, then a given mutex could be moved to a different > address (suitably aligned) and as long as all threads (or processes, as > the case may be) reference it at that address, then it would continue > functioning as if it hadn’t been moved. > > Is this correct too (if the initial assumption is correct, that is)? You mean like a compacting garbage collector? Yeah. ‘Matter of fact, I believe that’s what Java does on some platforms.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.