A função CreateThread do Windows inicia um thread paralelo em relação a um thread em execução. Um programa principal roda:
...
CreateThread(...,rotA,...);
CreateThread(...,rotB,...);
CreateThread(...,rotB,...);
CreateThread(...,rotC,...);
CreateThread(...,rotD,...);
...
O thread rotB roda:
...
CreateThread(...,rotC,...);
CreateThread(...,rotD,...);
...
O número total de threads descendentes do programa principal (incluindo ele) é igual a
...
CreateThread(...,rotA,...);
CreateThread(...,rotB,...);
CreateThread(...,rotB,...);
CreateThread(...,rotC,...);
CreateThread(...,rotD,...);
...
O thread rotB roda:
...
CreateThread(...,rotC,...);
CreateThread(...,rotD,...);
...
O número total de threads descendentes do programa principal (incluindo ele) é igual a
- A)5.
- B)10.
- C)8.
- D)4.
- E)7.