OpenMP, multithreading or multiprocessing (C)? -
i'm having trouble understanding how openmp works. know executes tasks in parallel , it's multi-processing tool, mean?
it uses 'threads' @ same time it's multi-processing tool? aren't 2 mutually exclusive, use 1 method not other? can explain 1 is?
to clarify, i've worked multi-threading posix pthreads. , that's totally different multiprocessing fork , exec , shared memory.
thank you.
openmp developed allow abstraction layer parallel architectures utlizing multi-threading , shared memory don't have write used parallel code scratch. note, in general threads still have access shared memory (the master thread's memory allocated). takes advantage of multiple processors, uses threads.
mpi counterpart distributed systems. might more of traditional "multi-processing" version thinking of, since "ranks" operate independently of eachother without shared memory, , must communicate through concepts such scatter/map/reduce etc.
Comments
Post a Comment