//
// Written by Mike Feeley, University of BC, 2010-2014
// Do not redistribute any portion of this code without permission.
//
#include
#include
#include “uthread.h”
#ifndef NUM_ITERATIONS
#define NUM_ITERATIONS 10000
#endif
#ifndef NUM_THREADS
#define NUM_THREADS 10
#endif
#ifndef NUM_PROCESSORS
#define NUM_PROCESSORS 2
#endif
void* op (void* str) {
int i;
for (i=0; i