lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lwip-users] tcpip thread


From: Jani Monoses
Subject: Re: [lwip-users] tcpip thread
Date: Thu, 15 Apr 2004 09:54:39 +0300

On Wed, 14 Apr 2004 18:30:36 -0700
address@hidden wrote:

> In general, what is the tcpip thead for? Since the sender is waiting
> for the send to finish by tcpip thread before it returns, why can't
> sender do the send itself? At the receiver side, why use the tcpip
> mbox in the middle? Thanks.

The mboxes are there to serialize access to the tcp and IP layers since
they are not thread safe. Hence everything goes through that
tcpip_thread instead of all app threads  calling ip_input directly.
If/when the lwip core is made thread-safe we can get rid of mboxes and
that thread. I don't know for sure but I assume it would improve
performance. tcpip code will become slighly more complicated because of
the locking.

Jani




reply via email to

[Prev in Thread] Current Thread [Next in Thread]