The component itself will take about 2 KB of memory. A listening socket
(is a socket in rest) will take about 4 KB (nonpaged) memory. A data
socket (if a client is connected) around 8 KB (nonpaged) because it is
sending and receiving.
As for other recources like CPU load etc, it is depending on amount of
data and network speed, but since data is go/come from a serial device I
should not worry about this.
So I think a thread will be overkill.
Saturday, October 8, 2005, 09:53, Werner wrote:
> I have an application that continueous (every 500ms) have contact
> with a machine by rs232. Main thread.
> I want to send some information by socket when an external program ask this.
> So this program must also listen as a server socket.
> My question:
> when a server socket is in listening mode, does it take a lot of
> resources ?, would it be best to put this in a thread with low
> priority?, but if I do this, will the communication with the rs232 not
> take all the attention, so the thread with low priority will not work.
> Any response on this would be great.
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be