Skip to content
Snippets Groups Projects
Commit c5d801c3 authored by WinJ's avatar WinJ
Browse files

changed the terminology grid position -> grid cell

parent e13a1f81
No related branches found
No related tags found
No related merge requests found
......@@ -6,7 +6,7 @@ import java.util.concurrent.RecursiveAction;
/*
1) This class is used by PopulateGridTask to merge two grids in parallel
2) SEQUENTIAL_CUTOFF refers to the maximum number of grid positions that should be processed by a single parallel task
2) SEQUENTIAL_CUTOFF refers to the maximum number of grid cells that should be processed by a single parallel task
*/
public class MergeGridTask extends RecursiveAction {
......
......@@ -7,7 +7,7 @@ import cse332.types.MapCorners;
import java.util.concurrent.ForkJoinPool;
import java.util.concurrent.RecursiveTask;
/*
1) This class is used in version 4 to create the initial grid holding the total population for each grid position
1) This class is used in version 4 to create the initial grid holding the total population for each grid cell
2) SEQUENTIAL_CUTOFF refers to the maximum number of census groups that should be processed by a single parallel task
3) Note that merging the grids from the left and right subtasks should NOT be done in this class.
You will need to implement the merging in parallel using a separate parallel class (MergeGridTask.java)
......
......@@ -7,7 +7,7 @@ import cse332.types.MapCorners;
import java.util.concurrent.locks.Lock;
/*
1) This class is used in version 5 to create the initial grid holding the total population for each grid position
1) This class is used in version 5 to create the initial grid holding the total population for each grid cell
- You should not be using the ForkJoin framework but instead should make use of threads and locks
- Note: the resulting grid after all threads have finished running should be the same as the final grid from
PopulateGridTask.java
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment