diff options
author | yfzhang <yfzhang@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2004-05-06 16:44:14 +0000 |
---|---|---|
committer | yfzhang <yfzhang@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2004-05-06 16:44:14 +0000 |
commit | 05b2d356bc541c47d6497679619e626b7b01f042 (patch) | |
tree | 0739228c1969f4a0521e76837e791043c06e1234 | |
parent | 74c4a36bae8e2b0ecf11a678ec00ea7ee88af181 (diff) | |
download | ATCD-05b2d356bc541c47d6497679619e626b7b01f042.tar.gz |
*** empty log message ***
6 files changed, 20 insertions, 18 deletions
diff --git a/TAO/examples/Kokyu_dsrt_schedulers/chain_example/threeway_client.cpp b/TAO/examples/Kokyu_dsrt_schedulers/chain_example/threeway_client.cpp index 1e6c24db51c..c972c77bd25 100644 --- a/TAO/examples/Kokyu_dsrt_schedulers/chain_example/threeway_client.cpp +++ b/TAO/examples/Kokyu_dsrt_schedulers/chain_example/threeway_client.cpp @@ -244,7 +244,7 @@ main (int argc, char *argv[]) ACE_DEBUG ((LM_DEBUG, "(%t|%T): main thread prio is %d\n", prio)); - CPULoad::calibrate(10); + CPULoad::calibrate(5); //print out the start time of the program. ACE_Time_Value start_time=ACE_OS::gettimeofday(); diff --git a/TAO/examples/Kokyu_dsrt_schedulers/chain_example/threeway_client_and_server.cpp b/TAO/examples/Kokyu_dsrt_schedulers/chain_example/threeway_client_and_server.cpp index bfd17554e2a..a52cdab72f9 100644 --- a/TAO/examples/Kokyu_dsrt_schedulers/chain_example/threeway_client_and_server.cpp +++ b/TAO/examples/Kokyu_dsrt_schedulers/chain_example/threeway_client_and_server.cpp @@ -222,7 +222,7 @@ main (int argc, char *argv[]) ACE_OS::printf ( ACE_TEXT ("The Client_and_Server has generated %s\n"),ior_output_file); - CPULoad::calibrate(10); + CPULoad::calibrate(5); //print out the start time of the program. ACE_Time_Value start_time=ACE_OS::gettimeofday(); diff --git a/TAO/examples/Kokyu_dsrt_schedulers/chain_example/threeway_server.cpp b/TAO/examples/Kokyu_dsrt_schedulers/chain_example/threeway_server.cpp index d7ab98a044a..ea47b140493 100644 --- a/TAO/examples/Kokyu_dsrt_schedulers/chain_example/threeway_server.cpp +++ b/TAO/examples/Kokyu_dsrt_schedulers/chain_example/threeway_server.cpp @@ -201,7 +201,7 @@ main (int argc, char *argv[]) } ACE_OS::printf ( ACE_TEXT ("The Server has generated %s\n"),ior_output_file); - CPULoad::calibrate(10); + CPULoad::calibrate(5); //print out the start time of the program. ACE_Time_Value start_time=ACE_OS::gettimeofday(); diff --git a/TAO/examples/Kokyu_dsrt_schedulers/fan_example/threeway_client.cpp b/TAO/examples/Kokyu_dsrt_schedulers/fan_example/threeway_client.cpp index a377bb726c9..ad3e9d8365d 100644 --- a/TAO/examples/Kokyu_dsrt_schedulers/fan_example/threeway_client.cpp +++ b/TAO/examples/Kokyu_dsrt_schedulers/fan_example/threeway_client.cpp @@ -248,7 +248,7 @@ main (int argc, char *argv[]) ACE_DEBUG ((LM_DEBUG, "(%t|%T): main thread prio is %d\n", prio)); - CPULoad::calibrate(10); + CPULoad::calibrate(5); Object_ID oid = ACE_OBJECT_COUNTER->increment(); //print out the start time of the program. diff --git a/TAO/examples/Kokyu_dsrt_schedulers/fan_example/threeway_server.cpp b/TAO/examples/Kokyu_dsrt_schedulers/fan_example/threeway_server.cpp index 7a1f530fa26..fa83bb0ad46 100644 --- a/TAO/examples/Kokyu_dsrt_schedulers/fan_example/threeway_server.cpp +++ b/TAO/examples/Kokyu_dsrt_schedulers/fan_example/threeway_server.cpp @@ -109,16 +109,9 @@ main (int argc, char *argv[]) task_stats.init (100000); // TAO_debug_level = 1; - CPULoad::calibrate(10); Object_ID oid = ACE_OBJECT_COUNTER->increment(); -//print out the start time of the program. - ACE_Time_Value start_time=ACE_OS::gettimeofday(); - ACE_OS::printf ( ACE_TEXT ("The Start time: %u (sec), %u (usec)\n"), start_time.sec(), start_time.usec()); - DSTRM_EVENT(MAIN_GROUP_FAM, START,0,sizeof(Object_ID), (char*)&oid); - - ACE_TRY_NEW_ENV { CORBA::ORB_var orb = @@ -213,6 +206,14 @@ main (int argc, char *argv[]) ACE_OS::fprintf (output_file, "%s", ior.in ()); ACE_OS::fclose (output_file); } + ACE_OS::printf ( ACE_TEXT ("The Server has generated %s\n"),ior_output_file); + + CPULoad::calibrate(10); + +//print out the start time of the program. + ACE_Time_Value start_time=ACE_OS::gettimeofday(); + ACE_OS::printf ( ACE_TEXT ("The Start time: %u (sec), %u (usec)\n"), start_time.sec(), start_time.usec()); + DSTRM_EVENT(MAIN_GROUP_FAM, START,0,sizeof(Object_ID), (char*)&oid); poa_manager->activate (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_TRY_CHECK; diff --git a/TAO/examples/Kokyu_dsrt_schedulers/fan_example/threeway_server2.cpp b/TAO/examples/Kokyu_dsrt_schedulers/fan_example/threeway_server2.cpp index d12d3c7e7e0..a44f3c943b2 100644 --- a/TAO/examples/Kokyu_dsrt_schedulers/fan_example/threeway_server2.cpp +++ b/TAO/examples/Kokyu_dsrt_schedulers/fan_example/threeway_server2.cpp @@ -110,15 +110,8 @@ main (int argc, char *argv[]) // TAO_debug_level = 1; - CPULoad::calibrate(10); - Object_ID oid = ACE_OBJECT_COUNTER->increment(); -//print out the start time of the program. - ACE_Time_Value start_time=ACE_OS::gettimeofday(); - ACE_OS::printf ( ACE_TEXT ("The Start time: %u (sec), %u (usec)\n"), start_time.sec(), start_time.usec()); - DSTRM_EVENT(MAIN_GROUP_FAM, START,0,sizeof(Object_ID), (char*)&oid); - ACE_TRY_NEW_ENV { CORBA::ORB_var orb = @@ -214,6 +207,14 @@ main (int argc, char *argv[]) ACE_OS::fclose (output_file); } + ACE_OS::printf ( ACE_TEXT ("The Server has generated %s\n"),ior_output_file); + CPULoad::calibrate(10); + +//print out the start time of the program. + ACE_Time_Value start_time=ACE_OS::gettimeofday(); + ACE_OS::printf ( ACE_TEXT ("The Start time: %u (sec), %u (usec)\n"), start_time.sec(), start_time.usec()); + DSTRM_EVENT(MAIN_GROUP_FAM, START,0,sizeof(Object_ID), (char*)&oid); + poa_manager->activate (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_TRY_CHECK; |