Welcome
Kazi Mostaq Hridoy
Id: 2019-1-60-098
Md. Asad Chowdhury Dipu
Id: 2019-1-60-093
Md. Mizanur Rahman Riad Khan
Id: 2019-1-60-108
Presented By
Amherst Candy
Factory Problem
Problem Description
 Amherst candy factory implements an assembly line using bounded buffer
 Producer thread produces a certain type of candy, while each consumer creates boxes
of assorted candies using ones produced by producers.
After producing each candy, the producer deposits them into the bounded buffer until
the buffer gets full.
A consumer fills up a box of assorted candy when i candy items have been extracted.
Producer thread produces a candy; consumer creates boxes of candies using produced
candies
NECESSARY FUNCTIONS
NECESSARY FUNCTIONS
NECESSARY FUNCTIONS
OUTPUT
Conclusion
In this project, we have showed the scenario of a producer consumer
management of a candy factory. We showed a list of list candies that
are to be produced. Producer produces several types of candies and
consumers are consuming the candies after a minimum number of
candies getting packed. We have used semaphores in order to maintain
synchronization.
Real Life Examples
• Producer-Consumer
Audio-Video player: network and display threads; shared buffer.
Web server: master thread and slave thread
thank you
any questions?

More Related Content

PDF
Generative Adversarial Networks (GANs)
PPTX
Image Classification And Support Vector Machine
PPTX
PPTX
Art network
PDF
Sta by usha_mehta
PPTX
Graph coloring using backtracking
PPT
Counterpropagation NETWORK
PDF
Semantic Segmentation - Fully Convolutional Networks for Semantic Segmentation
Generative Adversarial Networks (GANs)
Image Classification And Support Vector Machine
Art network
Sta by usha_mehta
Graph coloring using backtracking
Counterpropagation NETWORK
Semantic Segmentation - Fully Convolutional Networks for Semantic Segmentation

What's hot (20)

PPTX
Filtering and masking
PDF
Lenses - Real-time Rendering of Physically Based Optical Effect in Theory an...
PPT
PPT
Design challenges in physical design
PPTX
Ensemble learning Techniques
PPTX
Hair in Tomb Raider
PDF
Region Splitting and Merging Technique For Image segmentation.
PDF
Centernet
PPT
Chapter10 image segmentation
PPTX
Hable John Uncharted2 Hdr Lighting
PPTX
Wallace tree multiplier.pptx1
PPTX
Vlsi physical design
PPT
PerfectVIPs Uvm tlm slides format
PDF
Computer Vision: Correlation, Convolution, and Gradient
PDF
Intro To Convolutional Neural Networks
PPTX
Introduction to Deep face detection and recognition
PPTX
Bit plane slicing
PPTX
boosting algorithm
PDF
RNN and its applications
Filtering and masking
Lenses - Real-time Rendering of Physically Based Optical Effect in Theory an...
Design challenges in physical design
Ensemble learning Techniques
Hair in Tomb Raider
Region Splitting and Merging Technique For Image segmentation.
Centernet
Chapter10 image segmentation
Hable John Uncharted2 Hdr Lighting
Wallace tree multiplier.pptx1
Vlsi physical design
PerfectVIPs Uvm tlm slides format
Computer Vision: Correlation, Convolution, and Gradient
Intro To Convolutional Neural Networks
Introduction to Deep face detection and recognition
Bit plane slicing
boosting algorithm
RNN and its applications
Ad

Similar to Cse325(OS) amherst candy factory problem (13)

PDF
producer consumer problem example in java.pdf
PPTX
Concurrent Programming Patterns
DOCX
Producer consumer.docx
PPTX
Consumer Producer Problem in Java using Queue and get put methods
PPT
Operating System
PPTX
15- Bakery-Algorithm.pptx
DOCX
UNIT III Process Synchronization.docx
PPTX
Interprocess Communication important topic in iOS .pptx
PPT
OS Unit 3 ProcessSyncronization in operation g system
DOCX
Implementing of classical synchronization problem by using semaphores
PDF
Inter Process Communication in operating system
PPTX
Producer Consumer Problem
DOCX
Adsa u4 ver 1.0
producer consumer problem example in java.pdf
Concurrent Programming Patterns
Producer consumer.docx
Consumer Producer Problem in Java using Queue and get put methods
Operating System
15- Bakery-Algorithm.pptx
UNIT III Process Synchronization.docx
Interprocess Communication important topic in iOS .pptx
OS Unit 3 ProcessSyncronization in operation g system
Implementing of classical synchronization problem by using semaphores
Inter Process Communication in operating system
Producer Consumer Problem
Adsa u4 ver 1.0
Ad

More from Md. Asad Chowdhury Dipu (8)

PPTX
East West University Annex Building
PPTX
Role of e-Governance Against Corruption in Public Administration in Bangladesh
PPTX
Phy109 Kinetic and Potential Energy
PPTX
Mat 104 practical use of vector differentiation
PPTX
Practical use of vector differentiation
PPTX
Mini project title prime number generator
PPTX
Bus 231-term-paper-group-a-report-on-students-perceptions-on-online-classes
PPTX
The pursuit of happyness Movie review Bus 231(business communication)
East West University Annex Building
Role of e-Governance Against Corruption in Public Administration in Bangladesh
Phy109 Kinetic and Potential Energy
Mat 104 practical use of vector differentiation
Practical use of vector differentiation
Mini project title prime number generator
Bus 231-term-paper-group-a-report-on-students-perceptions-on-online-classes
The pursuit of happyness Movie review Bus 231(business communication)

Recently uploaded (20)

PPTX
B.Sc. DS Unit 2 Software Engineering.pptx
PDF
Vision Prelims GS PYQ Analysis 2011-2022 www.upscpdf.com.pdf
PDF
HVAC Specification 2024 according to central public works department
PPTX
What’s under the hood: Parsing standardized learning content for AI
PDF
Complications of Minimal Access-Surgery.pdf
PDF
Paper A Mock Exam 9_ Attempt review.pdf.
PDF
ChatGPT for Dummies - Pam Baker Ccesa007.pdf
PPTX
Module on health assessment of CHN. pptx
PDF
FOISHS ANNUAL IMPLEMENTATION PLAN 2025.pdf
PDF
medical_surgical_nursing_10th_edition_ignatavicius_TEST_BANK_pdf.pdf
PPTX
ELIAS-SEZIURE AND EPilepsy semmioan session.pptx
PDF
David L Page_DCI Research Study Journey_how Methodology can inform one's prac...
PDF
Journal of Dental Science - UDMY (2021).pdf
PDF
LEARNERS WITH ADDITIONAL NEEDS ProfEd Topic
PDF
My India Quiz Book_20210205121199924.pdf
PPTX
Education and Perspectives of Education.pptx
PDF
MICROENCAPSULATION_NDDS_BPHARMACY__SEM VII_PCI .pdf
PDF
English Textual Question & Ans (12th Class).pdf
DOCX
Cambridge-Practice-Tests-for-IELTS-12.docx
PPTX
Computer Architecture Input Output Memory.pptx
B.Sc. DS Unit 2 Software Engineering.pptx
Vision Prelims GS PYQ Analysis 2011-2022 www.upscpdf.com.pdf
HVAC Specification 2024 according to central public works department
What’s under the hood: Parsing standardized learning content for AI
Complications of Minimal Access-Surgery.pdf
Paper A Mock Exam 9_ Attempt review.pdf.
ChatGPT for Dummies - Pam Baker Ccesa007.pdf
Module on health assessment of CHN. pptx
FOISHS ANNUAL IMPLEMENTATION PLAN 2025.pdf
medical_surgical_nursing_10th_edition_ignatavicius_TEST_BANK_pdf.pdf
ELIAS-SEZIURE AND EPilepsy semmioan session.pptx
David L Page_DCI Research Study Journey_how Methodology can inform one's prac...
Journal of Dental Science - UDMY (2021).pdf
LEARNERS WITH ADDITIONAL NEEDS ProfEd Topic
My India Quiz Book_20210205121199924.pdf
Education and Perspectives of Education.pptx
MICROENCAPSULATION_NDDS_BPHARMACY__SEM VII_PCI .pdf
English Textual Question & Ans (12th Class).pdf
Cambridge-Practice-Tests-for-IELTS-12.docx
Computer Architecture Input Output Memory.pptx

Cse325(OS) amherst candy factory problem

  • 2. Kazi Mostaq Hridoy Id: 2019-1-60-098 Md. Asad Chowdhury Dipu Id: 2019-1-60-093 Md. Mizanur Rahman Riad Khan Id: 2019-1-60-108 Presented By
  • 4. Problem Description  Amherst candy factory implements an assembly line using bounded buffer  Producer thread produces a certain type of candy, while each consumer creates boxes of assorted candies using ones produced by producers. After producing each candy, the producer deposits them into the bounded buffer until the buffer gets full. A consumer fills up a box of assorted candy when i candy items have been extracted. Producer thread produces a candy; consumer creates boxes of candies using produced candies
  • 9. Conclusion In this project, we have showed the scenario of a producer consumer management of a candy factory. We showed a list of list candies that are to be produced. Producer produces several types of candies and consumers are consuming the candies after a minimum number of candies getting packed. We have used semaphores in order to maintain synchronization.
  • 10. Real Life Examples • Producer-Consumer Audio-Video player: network and display threads; shared buffer. Web server: master thread and slave thread