⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 pruebaestados.java

📁 example in C using threads
💻 JAVA
字号:
import java.io.*;

public class PruebaEstados {

	static PrintWriter salida = new PrintWriter(System.out, true);

	public static void main(String args[]) {
		PrimerThread primer = new PrimerThread();
		SegundoThread segundo = new SegundoThread();
		primer.start();
		segundo.start();
		try {
			salida.println("Esperando el fin de ejecucion del primer Thread...");
			primer.join();
			salida.println("Demasiada espera!");
			salida.println("Levantando el segundo Thread...");
			synchronized (segundo) {
				segundo.notify();
			}
			salida.println("Esperando el fin de ejecuci髇 del segundo Thread...");
			segundo.join();
		} catch (InterruptedException e) {
		}
		salida.println("Termin

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -