Skip to content

Commit

Permalink
Actualización de README
Browse files Browse the repository at this point in the history
  • Loading branch information
Aliere06 committed Apr 23, 2024
1 parent f5c820c commit 2be53fe
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 21 deletions.
20 changes: 2 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,2 @@
## Getting Started

Welcome to the VS Code Java world. Here is a guideline to help you get started to write Java code in Visual Studio Code.

## Folder Structure

The workspace contains two folders by default, where:

- `src`: the folder to maintain sources
- `lib`: the folder to maintain dependencies

Meanwhile, the compiled output files will be generated in the `bin` folder by default.

> If you want to customize the folder structure, open `.vscode/settings.json` and update the related settings there.
## Dependency Management

The `JAVA PROJECTS` view allows you to manage your dependencies. More details can be found [here](https://github.com/microsoft/vscode-java-dependency#manage-dependencies).
## Programa "Semáforo Sincronizado"
Programa de práctica en java para explorar el uso de hilos y programación concurrente.
Binary file modified bin/ControladorSemaforos.class
Binary file not shown.
Binary file modified bin/Semaforo.class
Binary file not shown.
4 changes: 2 additions & 2 deletions src/ControladorSemaforos.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ public class ControladorSemaforos {
return disponible;
}

public synchronized void liberar(boolean disponible) {
this.disponible = disponible;
public synchronized void liberar() {
disponible = true;
}

public synchronized boolean solicitarDisponible() {
Expand Down
2 changes: 1 addition & 1 deletion src/Semaforo.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public void run() {
System.out.println("Rojo");
//sleep(500); // Dormir por .5 segundos
System.err.println(getName() + " Finalizado.");
controladorCompartido.liberar(true);
controladorCompartido.liberar();
break;
}
}
Expand Down

0 comments on commit 2be53fe

Please sign in to comment.