Skip to content

MostafaAhmed660/Producer-Consumer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

Producer-Consumer

Producer Consumer web application to show how Producer Consumer works 

Concurrency

Producer/Consumer Simulation Program

Assignment-5

By :

Mostafa Ahmed Abd-El Hamed

 18011774 es-mostafahmed22@alexu.edu.eg**

mohamed gomaa

 18011425 es-mohamed.gomaa2019@alexu.edu.eg**

mohamed radwan

 18011596 Es-mohamed.radwan2000@alexu.edu.eg

Mohamed Ibrahim El sayed

 18011333 Es-mohamed.shaker2019@alexu.edu.eg

Design patterns used

  1.Producer Consumer : the machine contains a producer part and a consumer part where the product is passed between them.

  2.Snapshot : we save a snapshot of the machines every sec and save this to an array List then if we need to replay, we rerun it again

  3.Observer : when a machine producer produces roducts, it notifies the machine consumer to consume it and vice versa



UML diagram



image

Videos link :



https://drive.google.com/drive/u/1/folders/1f96pwhqpoD3DgM_A2ce4AMrxZUf0pTqD

How to Run code



  1.run backend at local host 8080

  2.run frontend at local host 8081**



Sample runs Screenshots**




First sample


image


*Second sample*
![image1](https://user-images.githubusercontent.com/59110598/126704885-bdda57fb-629f-4dee-ba3b-5d3066e28050.png)
*Third sample*
![image2](https://user-images.githubusercontent.com/59110598/126704909-58c827cd-e1e7-4881-81d8-5cdc8b727961.png)

About

Producer Consumer web application to show how Producer Consumer works

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published