[tkined] concurrency

Michel Sim (simm@qucis.queensu.ca)
Thu, 30 Apr 1998 14:22:07 -0400 (EDT)

I have a question concerning concurrency.

I implemented an SNMP agent using scotty which receives data
periodically from another entity developed in C via socket.
I'm having doubts about atomicity of operations.
Suppose the agent receives an SNMP request from a manager which called the
command "mib walk" on a MIB subtree (a table). I understood
(I might be wrong) that a series of GetBulk requests are sent until
a response shows that it reached another subtree.
My question is:
What happens if new data is received on the socket while the
agent processes the SNMP request?
Will the agent refresh the values in the MIB?
If so, will the manager receive inconsistent data between
different columnar objects from the polled table?

A binding is associated with the socket (fileevent) and it reassignes new
values to the MIB objects according to the information received.
I'm using scotty-2.1.8 with Tcl 7.6 on Solaris 2.5
I guess I just don't understand the mechanisms behind the event handler
in Tcl.

Thank you for your help, I greatly appreciate.

Michel

--
!! This message is brought to you via the `tkined & scotty' mailing list.
!! Please do not reply to this message to unsubscribe. To subscribe or
!! unsubscribe, send a mail message to <tkined-request@ibr.cs.tu-bs.de>.
!! See http://wwwsnmp.cs.utwente.nl/~schoenw/scotty/ for more information.