summaryrefslogtreecommitdiff
path: root/ACE/performance-tests/Synch-Benchmarks/context.c
diff options
context:
space:
mode:
authorAbdullah Sowayan <sowayan@users.noreply.github.com>2007-08-15 15:58:44 +0000
committerAbdullah Sowayan <sowayan@users.noreply.github.com>2007-08-15 15:58:44 +0000
commita27b85477326c51c075cab79b5a3aa498072f1fd (patch)
tree44899a41fdcd37807b58c9ac937381e5feb33bf0 /ACE/performance-tests/Synch-Benchmarks/context.c
parent963e29b79351de47ac0b963bee4b8fc9843ea38a (diff)
downloadATCD-a27b85477326c51c075cab79b5a3aa498072f1fd.tar.gz
Wed Aug 15 15:56:12 UTC 2007 Abdullah Sowayan <abdullah.sowayan@lmco.com>
Diffstat (limited to 'ACE/performance-tests/Synch-Benchmarks/context.c')
-rw-r--r--ACE/performance-tests/Synch-Benchmarks/context.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/ACE/performance-tests/Synch-Benchmarks/context.c b/ACE/performance-tests/Synch-Benchmarks/context.c
index a2ce1c580e9..00850fda8e9 100644
--- a/ACE/performance-tests/Synch-Benchmarks/context.c
+++ b/ACE/performance-tests/Synch-Benchmarks/context.c
@@ -1,6 +1,6 @@
/* $Id$ */
#include <stdio.h>
-// @(#)context.c 1.1 10/18/96
+// @(#)context.c 1.1 10/18/96
#include <stdlib.h>
#include <thread.h>
@@ -59,15 +59,15 @@ main (int argc, char *argv[])
rate = (count[0] + count[1]) / ((float) NSLEEP);
printf ("\n------------------------------------------------------------------------\n");
printf ("t0arg 0x%x (%s, %s, %s)\nt1arg 0x%x (%s, %s, %s)\ncount[0] %d count[1] %d\n\
-ncorr_orig %d ncorr_set %d ncorr_end %d rate %.3f per_cxt %.2f usec\n",
- t0arg,
- (t0arg & THR_DETACHED) ? "THR_DETACHED" : "Not Detached",
- (t0arg & THR_BOUND) ? "THR_BOUND" : "Not Bound",
- (t0arg & THR_NEW_LWP) ? "THR_NEW_LWP" : "No New_LWP",
- t1arg,
- (t1arg & THR_DETACHED) ? "THR_DETACHED" : "Not Detached",
- (t1arg & THR_BOUND) ? "THR_BOUND" : "Not Bound",
- (t1arg & THR_NEW_LWP) ? "THR_NEW_LWP" : "No New_LWP",
- count[0], count[1],
- orig_ncorr, ncorr, thr_getconcurrency (), rate, 1.0e6 / rate);
+ ncorr_orig %d ncorr_set %d ncorr_end %d rate %.3f per_cxt %.2f usec\n",
+ t0arg,
+ (t0arg & THR_DETACHED) ? "THR_DETACHED" : "Not Detached",
+ (t0arg & THR_BOUND) ? "THR_BOUND" : "Not Bound",
+ (t0arg & THR_NEW_LWP) ? "THR_NEW_LWP" : "No New_LWP",
+ t1arg,
+ (t1arg & THR_DETACHED) ? "THR_DETACHED" : "Not Detached",
+ (t1arg & THR_BOUND) ? "THR_BOUND" : "Not Bound",
+ (t1arg & THR_NEW_LWP) ? "THR_NEW_LWP" : "No New_LWP",
+ count[0], count[1],
+ orig_ncorr, ncorr, thr_getconcurrency (), rate, 1.0e6 / rate);
}