Huawei H14-231_V1.0 Question Answer
In order to put a series of related download tasks into a task group, a developer uses the following code:
String dispatcherName =
"parallelTaskDispatcher";
TaskDispatcher dispatcher =
createParallelTaskDispatcher(dispatcherName,TaskPriority.DEFAULT);
Group group
=dispatcher.createDispatchGroup();
dispatcher.asyncGroupDispatch(group,new
Runnable(){
@Override
public void run(){
HiLog.info(LABEL_LOG,"download taskl is
running ");
}
});
dispatcher.groupDispatchlotify(group,new
Runnable(){
@0verride
public void run(){
HiLog.info(LABEL_L0G,"the close task2 is
running");
}
});
dispatcher.groupDispatchlotify(group,new
Runnable(){
@Override
public void run(){
HiLog.info(LABEL_L0G, "the close task is
running after all tasks in the group are
completed");
}
});
If the developer runs this code, which of the following results might occur?