Skip to content

mocadev1/python_producer-consumer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

This was developed using a Python virtual environment, I would strongly recommend to do the same if you want to clone this repository.


How to run this script

  1. Clone the repository

  2. Create a virtual environment inside the cloned repository folder

    cd python_producer-consumer/

    python3 -m venv venv

  3. Activate it

    On Windows, run:
    venv\Scripts\activate.bat

    On Unix or MacOS, run:
    source venv/bin/activate

  4. Install the necessary modules pip install requirements.txt

  5. Run it

    On Windows, run:
    py producer_consumer.py

    On Unix or MacOS, run:
    sudo venv/bin/python producer_consumer.py

About

The producer-consumer problem implemented with threads in Python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages