[ECOS] Problem with multiple threads

Andrew Lunn andrew@lunn.ch
Tue Mar 31 10:03:00 GMT 2009


On Mon, Mar 30, 2009 at 10:01:09PM +0530, Himanshu Patel wrote:
> Hi Andrew,
> 
> We have selected CYGSEM_LIBC_STDIO_THREAD_SAFE_STREAMS option. So printf
> should thread safe. Right? 

Sure it is thread safe. However to be thread safe it uses mutex's
which are a form of synchronization.

      Andrew

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss



More information about the Ecos-discuss mailing list