#include <stdio.h>
#include <stdlib.h>
#include <omp.h>
#include <pthread.h>
Go to the source code of this file.
◆ LOOPCOUNT
#define LOOPCOUNT 1000 /* Number of iterations to slit amongst threads */ |
◆ MAX_TASKS_PER_THREAD
#define MAX_TASKS_PER_THREAD 5 |
◆ NUM_TASKS
◆ REPETITIONS
#define REPETITIONS 10 /* Number of times to run each test */ |
◆ SLEEPTIME
◆ get_exit_value()
static int get_exit_value |
( |
| ) |
|
|
inlinestatic |
◆ go_parallel()
static void go_parallel |
( |
| ) |
|
|
static |
◆ go_parallel_close()
static void go_parallel_close |
( |
| ) |
|
|
static |
◆ go_parallel_master()
static void go_parallel_master |
( |
| ) |
|
|
static |
◆ go_parallel_nthreads()
static void go_parallel_nthreads |
( |
int |
nthreads | ) |
|
|
static |
◆ go_parallel_spread()
static void go_parallel_spread |
( |
| ) |
|
|
static |
◆ g_counter__