[ECOS] Re: Are Socket Descriptors Thread Safe?

Nick Garnett nickg@ecoscentric.com
Fri May 21 20:45:00 GMT 2004


Grant Edwards <grante@visi.com> writes:

> On Fri, May 21, 2004 at 04:10:32PM +0100, Nick Garnett wrote:
> 
> >> We have a product that is setup exactly as you describe using
> >> the FreeBSD stack, except it uses TCP instead of UDP.  No
> >> thread problems ...
> 
> Same here.
> 
> > Indeed. In Unix sockets can be used by multiple indpendent
> > processes through fork() so it must work in BSD. We have
> > preserved the multithreading/synchronization model of BSD in
> > the network stack so this should all still work as intended.
> 
> There were a few mutex bugs with the old network stack back in
> the 1.2.1 days, but they were all fixed years ago.

It took a few tries to get it right, but, as you say, it has all
worked pefectly for several years now.

-- 
Nick Garnett                    eCos Kernel Architect
http://www.ecoscentric.com      The eCos and RedBoot experts


-- 
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