[AGENT++] Asynchronous interface in SNMP++
Frank Fock
fock at agentpp.com
Mon Mar 1 22:33:04 CET 2004
Hi Marek,
Marek Malowidzki wrote:
>> > [ sync/async performance tests]
>>
>>Did you test using one Snmp object or did each thread use its own Snmp
>>object?
>>
>>
>
>Good question. All threads share the same, single Snmp object.
>
>
>
Please use a Snmp object for each thread. This should improve performance.
because requests can be processed in parallel then.
>
>I just want to add that what brings the real complexity is the fact that
>SNMP++ supports various operating systems, so much testing is needed. Under
>Windows, for example, I think it would be quite easy to do this (e.g., as
>described above), as the event structures could be augmented with some wait
>object, which would be signaled to the waiting thread (no need to poll the
>event queue).
>
>
>
The event queue was designed for single-threaded application.
It should be efficient for multi-threading too. But as Jochen pointed
out, mixing both (as done in the current version of SNMP++) is
probably not the cleanest approach.
Best regards,
Frank
More information about the AGENTPP
mailing list