Hi,
[what i thought]
AMI is useful when client want immediately return from "xxx_async". if 2 timer set, one after "xxx_async" call finished, the other after all response received, timer 1 should be small, timer 2 should be related with server. it's very useful if server is IO heavily operations.
that's:
timer 1 = round_trip
timer 2 = server_payload + round_trip
timer 1 + timer 2 may be longer than normal sync call, but we get small timer 1. if timer 2 depends on a blocking operation (such as network, database), AMD + AMI is very useful.
[what the test said]
timer 1 = round_trip + factor * server_payload (where factor is almost equal to 1).
timer 2 = ???
[test result and source code]
attached followed
[and more]
i test "AMD". (modified as manual, with 3 working threads check worker queue), no lucky...........
[and more]
i test under winxp sp2, localhost, ice-2.1.1-precompiled
and i call ::timerBeginPeriod(1) and timerEndPeriod(1)

Reply With Quote
