Comments on: How Asynchronous Execution Works in RIAs http://gen5.info/q/2008/05/02/how-asynchronous-execution-works-in-rias/ Towards Intelligent Systems Wed, 11 Jul 2012 12:59:08 +0000 hourly 1 http://wordpress.org/?v=3.0.3 By: Generation 5 » Keeping Track Of State In Asynchronous Callbacks http://gen5.info/q/2008/05/02/how-asynchronous-execution-works-in-rias/comment-page-1/#comment-459 Generation 5 » Keeping Track Of State In Asynchronous Callbacks Mon, 02 Jun 2008 17:13:47 +0000 http://gen5.info/q/2008/05/02/how-asynchronous-execution-works-in-rias/#comment-459 [...] Functions (or Methods) are always attached to a class in C# and Java: thus, the state of a callback function can be kept in either static or instance variables of the associated class. I don’t advise using static variables for this, because it’s possible for more than one asynchronous request to be flight at a time: if two request store state in the same variables, you’ll introduce race conditions that will cause a world of pain. (see how race conditions arise in asynchronous communications.) [...] [...] Functions (or Methods) are always attached to a class in C# and Java: thus, the state of a callback function can be kept in either static or instance variables of the associated class. I don’t advise using static variables for this, because it’s possible for more than one asynchronous request to be flight at a time: if two request store state in the same variables, you’ll introduce race conditions that will cause a world of pain. (see how race conditions arise in asynchronous communications.) [...]

]]>

Warning: fsockopen(): php_network_getaddresses: getaddrinfo failed: No address associated with hostname in /hosting/sites/gen5.info/htdocs/q/wp-includes/class-snoopy.php on line 1148

Warning: fsockopen(): unable to connect to :80 (php_network_getaddresses: getaddrinfo failed: No address associated with hostname) in /hosting/sites/gen5.info/htdocs/q/wp-includes/class-snoopy.php on line 1148