Go Back   ZeroC Forums > Help Center

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 09-29-2006
rc_hz rc_hz is offline
Registered User
 
Name: Eric RC
Organization: www.genband.com
Project: No project yet
 
Join Date: Jul 2004
Location: Hangzhou, China
Posts: 189
Send a message via MSN to rc_hz
-->
Help about one usage of AMD

Ice 3.1.0 Manual(Page 849) says:
Code:
An alternate use case for AMD is an operation that requires further processing 
after completing the client’s request. In order to minimize the client’s delay, 
the operation returns the results while still in the dispatch thread, and then 
continues using the dispatch thread for additional work.
It seems that this use case has no relationship with AMD. Can you explain a little more ? Thank you very much!
__________________
Eric RC
www.genband.com (telecommunication)
I like ICE (Ice for C++/Java/Python)

Last edited by rc_hz : 09-29-2006 at 11:44 PM.
Reply With Quote
  #2 (permalink)  
Old 09-30-2006
mes's Avatar
mes mes is offline
ZeroC Staff
 
Name: Mark Spruiell
Organization: ZeroC, Inc.
Project: Ice Developer
 
Join Date: Feb 2003
Location: California
Posts: 976
Hi,

The only way a servant can complete a request and then continue using the dispatch thread is with an AMD operation:
Code:
void doWork_async(AMD_I_doWorkPtr cb, const Ice::Current&)
{
    // Execute the operation...
    cb->ice_response(...); // Complete the request
    // Continue using the dispatch thread without delaying the client...
}
Clearly this is not the typical use case of AMD, but it might be useful in special cases.

Take care,
- Mark
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
the usage of cpu goes to 100% when the network is disconnect zhoubin Help Center 10 01-24-2007 10:21 AM
About Usage of freeze in ICE Grid Application AravindBabu Help Center 4 12-05-2006 08:54 AM
Icepatch2 checksum memory usage Ric Bug Reports 5 01-27-2006 08:10 AM
slice2cpp - DLL usage timp Help Center 2 01-12-2006 01:03 PM
Is it all right for a ICE hello demo with such size of memory usage? OrNot Help Center 12 09-15-2005 09:57 AM


All times are GMT -4. The time now is 11:17 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0
(c) 2008 ZeroC, Inc.