From 4d35231bc4c3819ae96669970761492084246750 Mon Sep 17 00:00:00 2001 From: nsz Date: Fri, 5 Aug 2011 01:55:17 +0200 Subject: [PATCH] pthread bench from libc-bench --- src/thread/bench.c | 106 +++++++++++++++++++++++++++++++++++++++++++++ src/thread/sem.c | 1 - 2 files changed, 106 insertions(+), 1 deletion(-) create mode 100644 src/thread/bench.c diff --git a/src/thread/bench.c b/src/thread/bench.c new file mode 100644 index 0000000..10937aa --- /dev/null +++ b/src/thread/bench.c @@ -0,0 +1,106 @@ +#define _XOPEN_SOURCE 700 +#include +#include +#include +#include +#include +#include "test.h" + +void *emptyfunc(void *dummy) { + return 0; +} + +void bench_pthread_createjoin_serial1(int N) { + int i; + pthread_t td; + void *dummy; + + for (i=0; i