Skip to content

josephShokry/Producer-Consumer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 

Repository files navigation

Producer-Consumer

This project simulates Assembly Machine production

Screenshot Assignment #5: Producer/Consumer Simulation Program (CSED25 Alexandria University)

project objectives

  • Design an object-oriented queueing simulation program.
  • Apply different design patterns such as concurrency DP, snapshot DP, and observer DP.
  • working with multi threads.

Description

An assembly line that produces different products consists of different processing machines Ms that are responsible for processing the product at different stages and queue Qs to handle product movement between different processing stages (see figure below). In this assignment, we will develop a simulation program to simulate this production line as a queuing network. img

System features

  • Users add graphically as many as they want queues and machines.
  • The first queue has a random input rate.
  • Each machine work in a different thread.
  • Each product has a random color when it enters a machine it clones its color to the machine.
  • Resimulate the system after it finishes the simulation.

Implemented Design Patterns

  • Factory design pattern
  • Facade design pattern
  • Observable design pattern
  • Memento design pattern (snapshot)
  • Producer-consumer design pattern

the demo

producer-consumer.demo.mp4

Report

Producer-Consumer.pdf

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 41.7%
  • Java 39.7%
  • CSS 13.6%
  • HTML 5.0%