summaryrefslogtreecommitdiff
path: root/TAO/examples/CSD_Strategy/ThreadPool5/README
blob: 29b72f8a861181fe117ae4ab4e3a9c602d964959 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# $Id$

Description:

This test is a combination of other tests and has also added some 
other test cases such as cancel_servant. It uses the command
line options for the number of orb threads, number of servants,
collocated test options, etc.

The client application acts as a server too because of the callback
test. The client application also uses a custom dispatching strategy.

To run the test use the run_test.pl script:

$ ./run_test.pl

        This test is similar to the "ThreadPool" test.

$ ./run_test.pl collocated

        This runs the collocated test. 

        The server application creates one servant, runs one orb 
        thread, runs two custom dispatching threads and one client 
        thread to invoke the operations.

        Running two custom dispatching threads instead of one is 
        required to avoid deadlock.
  
$ ./run_test.pl multiple_servants

        This test is similar to the "ThreadPool2" test.

$ ./run_test.pl multiple_orb_threads

        This test is similar to the "ThreadPool3" test.

$ ./run_test.pl cancel_servant

        This test shows that requests stuck in the request queue are
        cancelled when a servant is deactivated.

        The client invokes multiple two-way operations and catches the
        OBJECT_NOT_EXIST or NO_IMPLEMENTATION exception after the servant 
        is deactivated - this is what it is supposed to do - the exceptions
        are expected.