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.

What is the UI equivalent for PTHREAD_MUTEX_INITALIZER?

equivalent UI
0
Posted

What is the UI equivalent for PTHREAD_MUTEX_INITALIZER?

0

From the man page (man mutex_init): Solaris Initialize The equivalent Solaris API used to initialize a mutex so that it has several different types of behavior is the type argument passed to mutex_init(). No current type uses arg although a future type may specify additional behavior parameters via arg. type may be one of the following: USYNC_THREAD The mutex can synchronize threads only in this process. arg is ignored. The USYNC_THREAD Solaris mutex type for pro- cess scope is equivalent to the POSIX mutex attribute setting PTHREAD_PROCESS_PRIVATE. USYNC_PROCESS The mutex can synchronize threads in this process and other processes. Only one process should initialize the mutex. arg is ignored. The USYNC_PROCESS Solaris mutex type for process scope is equivalent to the POSIX mutex attribute setting PTHREAD_PROCESS_SHARED. The object initialized with this attribute must be allocated in memory shared between processes, i.e. either in Sys V shared memory (see shmop(2)). or in memory mapped

Related Questions

What is your question?

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