-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Current solution is done by putting #pragma omp barrier directives inside corresponding function of each threads
#pragma omp parallel sections default(none) shared(NowGrainHeight, NowNumDeer)
{
#pragma omp section
{
Grain();
}
#pragma omp section
{
Deer();
}
#pragma omp section
{
Watcher();
}
} // omp parallel sections
When have time, try to solve with semaphores.
CS475 instructor, Matthew Meyn, confirmed that this can be done with semaphores.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels