SlideShare a Scribd company logo
1 of 11
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

Similar to Cse325(OS) amherst candy factory problem

anmol biscuits pvt limited
anmol biscuits pvt limitedanmol biscuits pvt limited
anmol biscuits pvt limitedPranabMishra10
 
Parle Products - Shreyasi Ray
Parle Products - Shreyasi RayParle Products - Shreyasi Ray
Parle Products - Shreyasi RayShreyasiRay
 
Havmor project by Jawid Joya
Havmor project by Jawid JoyaHavmor project by Jawid Joya
Havmor project by Jawid JoyaJawid Joya
 
zero degree1
zero degree1zero degree1
zero degree1cutesidd
 
Cadbury Fuse Case Study
Cadbury Fuse Case StudyCadbury Fuse Case Study
Cadbury Fuse Case StudyVishrant Shah
 
cadbury communication stategy
cadbury communication stategycadbury communication stategy
cadbury communication stategynidhisngh55
 
Marketing SUCHET MAHAJN
Marketing SUCHET MAHAJNMarketing SUCHET MAHAJN
Marketing SUCHET MAHAJNsuchet mahajan
 
Chocolate industry
Chocolate industry  Chocolate industry
Chocolate industry sujith kumar
 
operation research of Igloo Bd
operation research of Igloo Bdoperation research of Igloo Bd
operation research of Igloo BdMd. Yeasin Arafat
 
Business Opportunities in Production of Chocolate and Confectionery (Milk Cho...
Business Opportunities in Production of Chocolate and Confectionery (Milk Cho...Business Opportunities in Production of Chocolate and Confectionery (Milk Cho...
Business Opportunities in Production of Chocolate and Confectionery (Milk Cho...Ajjay Kumar Gupta
 
Correct chocolate file
Correct chocolate fileCorrect chocolate file
Correct chocolate filemayank jain
 
bruegger`s case study ppt
bruegger`s case study pptbruegger`s case study ppt
bruegger`s case study pptAatmiki Singh
 
Cadbury Successful story
Cadbury Successful storyCadbury Successful story
Cadbury Successful storyAmit Kale
 
Hr nd operation 123
Hr nd operation 123Hr nd operation 123
Hr nd operation 123Bilal Ahmad
 
A garment industry whole managment
A garment industry whole managment A garment industry whole managment
A garment industry whole managment khan shamim
 

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

anmol biscuits pvt limited
anmol biscuits pvt limitedanmol biscuits pvt limited
anmol biscuits pvt limited
 
Parle Products - Shreyasi Ray
Parle Products - Shreyasi RayParle Products - Shreyasi Ray
Parle Products - Shreyasi Ray
 
ICE CREAM EDP PROJECT REPORT2
ICE CREAM EDP PROJECT REPORT2ICE CREAM EDP PROJECT REPORT2
ICE CREAM EDP PROJECT REPORT2
 
Havmor project by Jawid Joya
Havmor project by Jawid JoyaHavmor project by Jawid Joya
Havmor project by Jawid Joya
 
zero degree1
zero degree1zero degree1
zero degree1
 
Cadbury Fuse Case Study
Cadbury Fuse Case StudyCadbury Fuse Case Study
Cadbury Fuse Case Study
 
cadbury communication stategy
cadbury communication stategycadbury communication stategy
cadbury communication stategy
 
Marketing SUCHET MAHAJN
Marketing SUCHET MAHAJNMarketing SUCHET MAHAJN
Marketing SUCHET MAHAJN
 
Chocolate industry
Chocolate industry  Chocolate industry
Chocolate industry
 
operation research of Igloo Bd
operation research of Igloo Bdoperation research of Igloo Bd
operation research of Igloo Bd
 
Business Opportunities in Production of Chocolate and Confectionery (Milk Cho...
Business Opportunities in Production of Chocolate and Confectionery (Milk Cho...Business Opportunities in Production of Chocolate and Confectionery (Milk Cho...
Business Opportunities in Production of Chocolate and Confectionery (Milk Cho...
 
CADBOURY.pptx
CADBOURY.pptxCADBOURY.pptx
CADBOURY.pptx
 
Production steps of
Production steps ofProduction steps of
Production steps of
 
Max Sweater (BD)
Max Sweater (BD)Max Sweater (BD)
Max Sweater (BD)
 
Correct chocolate file
Correct chocolate fileCorrect chocolate file
Correct chocolate file
 
bruegger`s case study ppt
bruegger`s case study pptbruegger`s case study ppt
bruegger`s case study ppt
 
Cadbury Successful story
Cadbury Successful storyCadbury Successful story
Cadbury Successful story
 
Hr nd operation 123
Hr nd operation 123Hr nd operation 123
Hr nd operation 123
 
PROJECT PROFILE
PROJECT  PROFILEPROJECT  PROFILE
PROJECT PROFILE
 
A garment industry whole managment
A garment industry whole managment A garment industry whole managment
A garment industry whole managment
 

More from Md. Asad Chowdhury Dipu

Role of e-Governance Against Corruption in Public Administration in Bangladesh
Role of e-Governance Against Corruption in Public Administration in BangladeshRole of e-Governance Against Corruption in Public Administration in Bangladesh
Role of e-Governance Against Corruption in Public Administration in BangladeshMd. Asad Chowdhury Dipu
 
Mat 104 practical use of vector differentiation
Mat 104 practical use of vector differentiationMat 104 practical use of vector differentiation
Mat 104 practical use of vector differentiationMd. Asad Chowdhury Dipu
 
Mini project title prime number generator
Mini project title prime number generatorMini project title prime number generator
Mini project title prime number generatorMd. Asad Chowdhury Dipu
 
Bus 231-term-paper-group-a-report-on-students-perceptions-on-online-classes
Bus 231-term-paper-group-a-report-on-students-perceptions-on-online-classesBus 231-term-paper-group-a-report-on-students-perceptions-on-online-classes
Bus 231-term-paper-group-a-report-on-students-perceptions-on-online-classesMd. Asad Chowdhury Dipu
 
The pursuit of happyness Movie review Bus 231(business communication)
The pursuit of happyness Movie review Bus 231(business communication)The pursuit of happyness Movie review Bus 231(business communication)
The pursuit of happyness Movie review Bus 231(business communication)Md. Asad Chowdhury Dipu
 

More from Md. Asad Chowdhury Dipu (8)

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

Recently uploaded

HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxmarlenawright1
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptxMaritesTamaniVerdade
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibitjbellavia9
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...Nguyen Thanh Tu Collection
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.pptRamjanShidvankar
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxJisc
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxPooja Bhuva
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxJisc
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024Elizabeth Walsh
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...pradhanghanshyam7136
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jisc
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structuredhanjurrannsibayan2
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfNirmal Dwivedi
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...ZurliaSoop
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - Englishneillewis46
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxCeline George
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the ClassroomPooky Knightsmith
 
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxExploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxPooja Bhuva
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxDr. Ravikiran H M Gowda
 

Recently uploaded (20)

HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptx
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptx
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptx
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the Classroom
 
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxExploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.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