[ace-users] threads

Matthew Gillen mgillen at bbn.com
Thu Jul 5 09:00:03 CDT 2007


This is where the usual mantra of "Use the PRF" comes in.  But generally if
you've set up ace/config.h correctly, it should already be defined (unless
you're on some whacky platform that doesn't support threads, and therefore
ACE can't support them).

Matt

Albert Sanchez wrote:
> Thanks Matthew,
> 
> Now I realized I have ACE_HAS_THREADS not defined. Is it normal? How can
> i define it?
> 
> Thanks,
> Albert
> 
> On 05/07/07, *Matthew Gillen * <mgillen at bbn.com
> <mailto:mgillen at bbn.com>> wrote:
> 
>     Albert Sanchez wrote:
>     > Hello!
>     >
>     > I am looking the book for some examples of thread management with ACE.
>     > The ones I've found are very complicated.
>     >
>     > I want to make a "Multi Hello World :-)" program that creates some
>     > threads and each thread says "Hello I'm thread i"
>     > Could you indicate me some basic ideas and methods and classes to
>     > accomplish this?
> 
>     This is about the simplest example:
>     https://svn.dre.vanderbilt.edu/viewvc/Middleware/trunk/ACE/examples/Threads/reader_writer.cpp?revision=73737&view=markup
>     <https://svn.dre.vanderbilt.edu/viewvc/Middleware/trunk/ACE/examples/Threads/reader_writer.cpp?revision=73737&view=markup>
> 
>     HTH,
>     Matt
> 
> 
> 
> 
> -- 
> "Computer science is no more about computers than astronomy is about
> telescopes."
> Edsger Dijkstra



More information about the Ace-users mailing list