/** * * **/ #include #include #include bool isPrime( long num ) { bool flag=false; return flag; } /** * Find the numbers **/ void doWork( int worker ) { } int main( int cantidad, char ** parametros ) { long valor, worker, workers, limite, encontrados; double inicio, fin; limite = 100; if ( cantidad > 1 ) { limite = atol( parametros[ 1 ] ); } workers = 8; if ( cantidad > 2 ) { workers = atol( parametros[ 2 ] ); } inicio = omp_get_wtime(); encontrados = 0; for ( worker = 0; worker < workers; ++worker ) { doWork( worker ); } fin = omp_get_wtime(); printf( "Sumas de pares encontradas %d, tiempo %gms\n", (int) encontrados, (fin - inicio)/1000 ); }