[ace-users] ACE_Process_Semaphore vs. ACE_Semaphore(int count, int type = USYNC_PROCESS)

Douglas C. Schmidt schmidt at dre.vanderbilt.edu
Wed Jul 18 16:31:29 CDT 2007


Hi Michael,

> ACE ver. = 5.4

To ensure that we have proper version/platform/compiler information,
please make sure you fill out the appropriate problem report form (PRF),
which is in

$ACE_ROOT/PROBLEM-REPORT-FORM
$TAO_ROOT/PROBLEM-REPORT-FORM

or in

$ACE_ROOT/BUG-REPORT-FORM
$TAO_ROOT/BUG-REPORT-FORM

in older versions of ACE+TAO.  Make sure to include this information
when asking any questions about ACE+TAO since otherwise we have to
"guess" what version/platform/compiler/options you've using, which is
very error-prone and slows down our responsiveness.  If you don't use
the PRF, therefore, it is less likely that someone from the core
ACE+TAO developer team will be able to answer your question.
Naturally, we encourage and appreciate other members of the ACE+TAO
user community who can respond to questions that they have the answers
to.

> I'm trying to provide guidance to several app developers who are brand
> new to ACE on which of these two semaphores to use.  They look
> functionally the same, but clearly (at least on Linux) have very
> different under-the-hood implementations.

I recommend using ACE_Process_Semaphore or ACE_Thread_Semaphore.
ACE_Semaphore is really intended for Solaris, so shouldn't be used
unless you really know what you're doing.

Thanks,

        doug



More information about the Ace-users mailing list