Are SOAP Remote Procedure Calls atomic blocking calls?
Using VB Express 2008, if the code makes 开发者_运维百科a Remote Procedure call to a SOAP function on another machine is the CPU blocked until the call returns?
If you are asking about
- calls to a web service from a client
- The client proxy classes are created using "Add Service Reference", or
- The client proxy classes are created using "Add Web Reference"
then the answer is that they do, by default, block the thread that makes the call. They don't block the "CPU". Only the thread that makes the call.
You can also call the same methods asynchronously, if you need to.
精彩评论