Given the incomplete pseudo-code for a fork/join framework application:
And given the missing methods:
Process, submit, and splitInHalf
Which three insertions properly complete the pseudo-code?
A.
Insert submit at line X.
B.
Insert splitInHalf at line X.
C.
Insert process at line X.
D.
Insert process at line Y.
E.
Insert splitInHalf at line Y.
F.
Insert process at line Z.
G.
Insert submit at line Z.
Explanation:
C: If data is small enough then process it. Line X
E: If data is not small enough then split it half. Line Y
G: After the data has been split (line Y) then recursively submit the splitted data (Line z).
C, E, G