One proxy one thread?

in Help Center
All proxy that maked by the same adapter in the server side does share the same thread?
How can I make the proxy with a thread not the only same thread?
Once call once a thread?
How can I make the proxy with a thread not the only same thread?
Once call once a thread?
0
Comments
.ice like
#ifndef HELLO_ICE
#define HELLO_ICE
class Hello
{
nonmutating void sayHello(long i);
idempotent void shutdown();
};
class MyServer
{
Hello* Create(string one);
};
#endif
the HelloI 's sayHello like
void
HelloI::sayHello(::Ice::Long i,
const Ice::Current& current) const
{
if(i==0)
{
Sleep(5000);
cout << "Sleep(5000);" << endl;
return ;
}
cout << "Hello World!" << endl;
}
That is , run two clients ,one call sayHello(0) first ,then one call sayHello(1) ,why the consol could not show one proxy one thread .
Take care,
- Mark
but they run like in order? not parallel!
the example like this attach file,
Could you help me ?
You should run two client ,one type key "t" that run long ,one type key "o" that run soon,I want to the tow client run paralle.
Coule you test?