diff options
author | sergio <sergio@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-04-23 16:20:09 +0000 |
---|---|---|
committer | sergio <sergio@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-04-23 16:20:09 +0000 |
commit | 2edea8b0972b777b1e281c9ec1d53dab6875c11f (patch) | |
tree | 7d92b57def29486f3bbaab94eee2f8e8b4cb0de5 /TAO/performance-tests | |
parent | 74b29caee9ee55490dc8810c7085013e7f001a7a (diff) | |
download | ATCD-2edea8b0972b777b1e281c9ec1d53dab6875c11f.tar.gz |
*** empty log message ***
Diffstat (limited to 'TAO/performance-tests')
-rw-r--r-- | TAO/performance-tests/Cubit/TAO/MT_Cubit/client.cpp | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/TAO/performance-tests/Cubit/TAO/MT_Cubit/client.cpp b/TAO/performance-tests/Cubit/TAO/MT_Cubit/client.cpp index 8c2a7085086..5195eee812b 100644 --- a/TAO/performance-tests/Cubit/TAO/MT_Cubit/client.cpp +++ b/TAO/performance-tests/Cubit/TAO/MT_Cubit/client.cpp @@ -102,7 +102,7 @@ do_priority_inversion_test (Task_State &ts) // First activate the Utilization thread. It will wait until all // threads have finished binding. - util_thread.activate (THR_BOUND, + util_thread.activate (THR_BOUND | ACE_SCHED_FIFO, 1, 0, priority); @@ -140,7 +140,7 @@ do_priority_inversion_test (Task_State &ts) { // The first thread starts at the lowest priority of all the low // priority clients. - if (low_priority_client.activate (THR_BOUND, + if (low_priority_client.activate (THR_BOUND | ACE_SCHED_FIFO, 1, 1, priority) == -1) @@ -193,8 +193,11 @@ do_priority_inversion_test (Task_State &ts) usage.ru_nivcsw); #endif /* ACE_HAS_GETRUSAGE */ - - csw = context_switch_time (); +#if 0 // Disable the calculation of context switch time. It seems to + // hang the machine, when running on single-processor machines. + // Instead, to find the context switch time, run $ACE/performance-tests/Misc/context_switch_time + csw = context_switch_time (); +#endif #if defined (VXWORKS) ACE_OS::printf ("Test done.\n" @@ -317,7 +320,7 @@ do_thread_per_rate_test (Task_State &ts) ACE_DEBUG ((LM_DEBUG, "Creating 40 Hz client with priority %d\n", priority)); - if (CB_40Hz_client.activate (THR_BOUND, 1, 0, priority) == -1) + if (CB_40Hz_client.activate (THR_BOUND | ACE_SCHED_FIFO, 1, 0, priority) == -1) ACE_ERROR ((LM_ERROR, "%p\n", "activate failed")); @@ -328,7 +331,7 @@ do_thread_per_rate_test (Task_State &ts) ACE_DEBUG ((LM_DEBUG, "Creating 20 Hz client with priority %d\n", priority)); - if (CB_20Hz_client.activate (THR_BOUND, 1, 0, priority) == -1) + if (CB_20Hz_client.activate (THR_BOUND | ACE_SCHED_FIFO, 1, 0, priority) == -1) ACE_ERROR ((LM_ERROR, "%p\n", "activate failed")); @@ -339,7 +342,7 @@ do_thread_per_rate_test (Task_State &ts) ACE_DEBUG ((LM_DEBUG, "Creating 10 Hz client with priority %d\n", priority)); - if (CB_10Hz_client.activate (THR_BOUND, 1, 0, priority) == -1) + if (CB_10Hz_client.activate (THR_BOUND | ACE_SCHED_FIFO, 1, 0, priority) == -1) ACE_ERROR ((LM_ERROR, "%p\n", "activate failed")); @@ -350,7 +353,7 @@ do_thread_per_rate_test (Task_State &ts) ACE_DEBUG ((LM_DEBUG, "Creating 5 Hz client with priority %d\n", priority)); - if (CB_5Hz_client.activate (THR_BOUND, 1, 0, priority) == -1) + if (CB_5Hz_client.activate (THR_BOUND | ACE_SCHED_FIFO, 1, 0, priority) == -1) ACE_ERROR ((LM_ERROR, "%p\n", "activate failed")); @@ -361,7 +364,7 @@ do_thread_per_rate_test (Task_State &ts) ACE_DEBUG ((LM_DEBUG, "Creating 1 Hz client with priority %d\n", priority)); - if (CB_1Hz_client.activate (THR_BOUND, 1, 0, priority) == -1) + if (CB_1Hz_client.activate (THR_BOUND | ACE_SCHED_FIFO, 1, 0, priority) == -1) ACE_ERROR ((LM_ERROR, "%p\n", "activate failed")); |