New game
Download
Get Academic Plan
Share game
Integrate it into your platform

You can integrate the game into an LMS compatible with LTI 1.1 or LTI 1.3 such as Canvas, Moodle, or Blackboard. This way, the scores will be automatically saved into the platform’s gradebook.
Download
You have exceeded the maximum number of games you can integrate into Google Classroom with your current Plan.

To integrate as many games as you want in Google Classroom, you need an Academic Plan or a Commercial Plan.

You have exceeded the maximum number of games you can integrate into Microsoft Teams with your current Plan.

To integrate as many games as you want in Microsoft Teams, you need an Academic Plan or a Commercial Plan.

Downloading games is an exclusive feature for users with an Academic Plan or a Commercial Plan.

Get your Academic Plan or your Commercial Plan now and start integrating your games into your LMS, website or blog.

If you wish, you can download a demo game here and test its integration:

Unidad 3 Hilos TAP

Quiz

Played 0

About this activity

Conoce hilos y concurrencia

Created by

Mexico

Download the paper version to play

Make your own free game from our game creator
Compete against your friends to see who gets the best score in this game

Top Games

%
Anonymous
Anonymous
%
%
%
You have exceeded the maximum number of games you can print with your current Plan.

To print as many games as you want, you need an Academic Plan or a Commercial Plan.

Print your game
Unidad 3 Hilos TAP
 

Unidad 3 Hilos TAPOnline version

Conoce hilos y concurrencia

by Dalia Rosario Hernandez Lopez
1

¿Cuál es la forma básica de crear un hilo extendiendo Thread y sobrescribiendo run()?

2

¿Qué hace thread.start()?

3

¿Qué método puede lanzar InterruptedException?

4

Qué palabra clave garantiza acceso exclusivo a un recurso por un solo hilo?

5

¿Qué significa interrumpir un hilo en Java?

6

¿Cuál es la principal ventaja de utilizar hilos en Java?

7

¿Qué método permite esperar a que un hilo termine?

8

¿Cuál es la diferencia fundamental entre los métodos start() y run()?

9

¿Cuál es la diferencia entre los estados de un hilo sleep() y wait()?

10

Devuelve el valor actual, de tipo cadena, asignado como nombre al hilo mediante setName.

Explicación

Extender Thread y definir run() es la forma clásica de crear un hilo.

start() pone el hilo en estado Runnable y ejecutará run() en un nuevo contexto.

sleep puede lanzar InterruptedException si otro hilo interrumpe al actual.

synchronized crea una región crítica para evitar condiciones de carrera.

La interrupción es una señal para terminar o pausar, que debe manejarse cooperativamente.

join() bloquea el hilo que lo llama hasta que el otro hilo complete.

Are you sure you want to leave the page?

If you leave, you will lose the game in progress.