An open API service indexing awesome lists of open source software.

https://github.com/cassiofb-dev/producer-consumer_problem

Producer-Consumer problem in Java and Python (JDK16 and Python3)
https://github.com/cassiofb-dev/producer-consumer_problem

java jdk16 multithreading parallel-computing parallel-programming python python3

Last synced: 2 months ago
JSON representation

Producer-Consumer problem in Java and Python (JDK16 and Python3)

Awesome Lists containing this project

README

          

# Problema Produtor-Consumidor
![preview](https://i.imgur.com/lO98X0L.gif)
Implementação do problema produtor-consumidor em:

- [X] Java
- [X] Python
- [ ] C

## Executando o código
Clone o repositório
```
git clone https://github.com/cassiofb-dev/producer-consumer_problem
```

Abra a pasta no terminal:
```
cd producer-consumer_problem
```

### Para executar em Java - [OpenJDK16](https://jdk.java.net/16/)
Compile:
```
javac Main.java
```

Execute:
```
java Main
```

### Para executar em Python - [Python3](https://www.python.org/download/releases/3.0/)
Execute o comando
```
py main.py
```