|
|
|
|||||
|
Could you write a example that show all proxy in their own self thread?
.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 . |
|
|||||
|
I have already set Ice.ThreadPool.Server.Size =10
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? |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Abort thread in C# | acbell | Help Center | 1 | 01-03-2006 05:05 PM |
| Is a proxy can be called in different thread at the same time? | rano | Help Center | 1 | 06-01-2005 11:54 PM |
| a thread problem | fw_csha | Help Center | 2 | 05-15-2005 06:41 AM |
| Ice::Thread and GUI with Qt | catalin | Help Center | 5 | 09-08-2004 11:20 AM |
| Bug in IceUtil::Thread | kssreeram | Help Center | 1 | 04-22-2004 12:30 AM |