Start Discovering Solved Questions and Your Course Assignments
TextBooks Included
Solved Assignments
Asked Questions
Answered Questions
in multiprocessing several processors require to communicate with one another so synchronisation is needed between them the correctness and
q illustration of parallel programming environmentslets discuss illustrations of parallel programming environments of intel paragaon xps and cray
q why we need parallel programming languagesthe parallel programming languages are created for parallel computer environments these are developed
q explain about parallel programming environmentthe parallel programming environment comprises of a debugger an editor performance evaluator
q explain use of parallel sections constructthis illustration explains use of parallel sections construct three functions fun1 fun2 and fun3 all can
q using library methods returns number of threadsinclude lt omph gtvoid subdomainfloat x int istart int ipointsint ifor i 0 i lt ipoints ixistarti
q determine what part of global array to work on thread numberinclude lt omph gtvoid subdomainfloat x int istart int ipointsint ifor i 0 i lt
q use of parallel construct with private clausein this example we would see use of parallel construct with private and firstprivate clauses at end of
q show the programmes for parallel systemsadding elements of an array using two processor int sum a n shared
q write a pseudo code to find sum of two functionslets write a pseudo code to find sum of two functions fa fb in first algorithm we will not use
q example of shared programming using library routinesthink about subsequent set of statements process
q show the shared programming using library routinesthe mainly well-liked of them is use of combo function known as fork and join fork function is
q what is ordered directivethis directive is used in combination with for and parallel for directives to cause an iteration to be executed in order
q define atomic directive in fortanatomic directive guarantees a specific storage location is updated atomically rather than exposing it to odds of
q define syntax of barrier directivebarrier directive the syntax of barrier directive is pragma omp barrierwhen a thread attains barrier it
q describe critical directive in fortanthe critical directive permits one thread executes associated structured block when one or more threads attain
q define master construct in fortanthe master directive has following general form pragma omp masterstructuredblock it causes master thread to
what is parallel sections constructthe parallel sections construct is a shortcut for specifying a parallel construct comprising one sections
q what is parallel loop constructparallel loop construct is a shortcut for specifying parallel construct comprising one loop construct and no other
q combined parallel work-sharing constructscombined parallel work sharing constructs are shortcuts for specifying a work sharing construct nested
q what do you mean by single construct in fortansingle construct specifies the associated structured block is executed by just one thread in team not
q explain about for loop constructthe loop build causes the for loop to be splitted into portions and portions shared amongst threads in team the
q describe about reduction clausereduction clause specifies an operator as well as one or more list items for every list item a private copy is
q describe the lastprivate clausethe lastprivate clause declares one or more list items to be private to a thread in additin causes corresponding
q sections construct in fortanthe sections construct is a no iterative work sharing construct which causes structured blocks to be shared among