OpenMP C program run slower than sequential code
问题 I am a newbie to OpenMP, trying to parallelize Jarvis's algorithm. However it turns out that the parallel program take 2-3 times longer compare to sequential code. Is it that the problem itself cannot be parallelize? Or there is something wrong in how i parallelize it. This is my openMP program for the problem, with 2 parts being parallelize: #include <stdio.h> #include <sys/time.h> #include <omp.h> typedef struct Point { int x, y; } Point; // To find orientation of ordered triplet (p, q, r).