logo

Crowdly

Browser

Add to Chrome

Programación concurrente y avanzada

Looking for Programación concurrente y avanzada test answers and solutions? Browse our comprehensive collection of verified answers for Programación concurrente y avanzada at moodle.upm.es.

Get instant access to accurate answers and detailed explanations for your course questions. Our community-driven platform helps students succeed!

Seleccione la respuesta incorrecta referida a la sincronía de los canales de comunicación:

0%
0%
0%
0%
View this question

Seleccione la respuesta incorrecta referida al direccionamiento en la comunicación por mensajes:

View this question

 Seleccione la respuesta incorrecta referida a mensajes:

View this question
 Seleccione la respuesta incorrecta referida a la sincronía de los canales de comunicación:
View this question
Sean un productor y un consumidor de enteros que se comunican a través de un canal síncrono de comunicación ch. Una salida imposible será :

  

Channel of integer ch

producer

consumer                 

integer x ← 0

p1: while x < 2 

p2:    ch <= x 

p3:    print(“a”) 

p4:    x ← x + 1

integer y ← 0

q1: while y < 2 

q2:    ch => y 

q3:    print(“b”)

View this question
Sea un canal ch de capacidad finita, indique qué afirmación es FALSA:
View this question

El siguiente código es erróneo ya que (seleccione la opción correcta):

CompletableFuture<?> prevCS = new CompletableFuture<>();

prevCS.supplyAsync(() -> {

    List<Integer> list = List.of(1,2,3,4,5);

    for(Integer element:list){ System.out.println(Math.pow(element,2));}

});

0%
0%
0%
View this question

Seleccione la respuesta correcta: Para asegurar que una nueva tarea se empezará a ejecutar cuando 12 tareas previas hayan terminado...

0%
0%
0%
0%
View this question

Teniendo el siguiente código incluido en una función main, al ejecutarlo resultará (seleccione la respuesta correcta):

CompletableFuture<List<Integer>> prevCS = new CompletableFuture<>();

        prevCS.supplyAsync(() -> {

                    List<Integer> list = List.of(1,2,3,4,5);

                    List<Integer> squared = new ArrayList<>();

                    for(Integer element:list){ squared.add((int) Math.pow(element,2));}

                    return squared;

        })

                .thenAccept(()->{

                    System.out.println(squared);

                });

0%
0%
0%
View this question

Seleccione la respuesta correcta acerca de recoger resultados cuando una etapa se completa.

0%
0%
0%
0%
View this question

Want instant access to all verified answers on moodle.upm.es?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome