SlideShare a Scribd company logo
Operating System Practical Presentation Jonathan Arturo Alvarado Mata    1441616 Carlos Eduardo Triana Sarmiento 1412573 Obed David Guevara Ibarra           1447478 Blog: http://os-ocj.blogspot.com/
What we did? We made the program of Bounded buffer producer-consumer. Our program use a thread for producer, and other thread for consumer.   What we use? We use 2 kinds of semaphores ...  A two-valued or binary semaphore that implements mutual exclusion And the other kind of semaphore is a multiple-valued or counting semaphores that implements synchronized counts of shared resources
Practical presentation Where is our code? Our code is in the file nachos/code/threads/threadtest.cc   How do we compile our code? We open a terminal and go to /nachos/code Then we type:  make This instruction will compile all our code of nachOS How do we execute our code? In the terminal we go to /nachos/code/threads/  Then we type:  ./nachos This will execute our code
Producer Function semaphore mutex = 1;  semaphore empty = N;  semaphore full = 0;   void producer() {        while (1) {            P(empty);            P(mutex);            Product++;            V(mutex);            V(full);        }   } void consumer() {        while(1) {               P(full);               P(mutex);               V(mutex);               V(empty);               Product--;       }      } Consumer   Function
Bibliography http://www.isi.edu/~faber/cs402/notes/lecture7.html   http://black.goucher.edu/~kelliher/cs42/oct02.html   http://www.mitecnologico.com/Main/Mutex

More Related Content

PDF
Practical presentation
PPT
About java
PPTX
PPT
New Microsoft Power Point Presentation1
PPTX
Acuariomaloka
PPTX
Fibra óptica
PDF
Filatelia Temática Portugal 2010
Practical presentation
About java
New Microsoft Power Point Presentation1
Acuariomaloka
Fibra óptica
Filatelia Temática Portugal 2010

Similar to Practical presentation (20)

PPTX
Code Igniter Code Sniffer
PPTX
Advanced malwareanalysis training session2 botnet analysis part1
PDF
Make your application expressive
PDF
arduino
PPTX
Advanced Malware Analysis Training Session 2 - Botnet Analysis Part 1
PDF
What is arduino
PPTX
Client side exploits
PPTX
Adventures in Asymmetric Warfare
PDF
Python Introduction
PDF
Writing simple buffer_overflow_exploits
PDF
DEFCON 21: EDS: Exploitation Detection System WP
PDF
LIGGGHTS installation-guide
PDF
Ardx eg-spar-web-rev10
PDF
Penetrating Windows 8 with syringe utility
PDF
maXbox starter30 Web of Things
DOCX
Network and Internet Security.docx
PPTX
Pwnstaller
PPTX
Ch_2_8,9,10.pptx
PDF
DEF CON 27 - workshop ANTHONY ROSE - introduction to amsi bypasses and sandbo...
PPT
Introduction to Software Development
Code Igniter Code Sniffer
Advanced malwareanalysis training session2 botnet analysis part1
Make your application expressive
arduino
Advanced Malware Analysis Training Session 2 - Botnet Analysis Part 1
What is arduino
Client side exploits
Adventures in Asymmetric Warfare
Python Introduction
Writing simple buffer_overflow_exploits
DEFCON 21: EDS: Exploitation Detection System WP
LIGGGHTS installation-guide
Ardx eg-spar-web-rev10
Penetrating Windows 8 with syringe utility
maXbox starter30 Web of Things
Network and Internet Security.docx
Pwnstaller
Ch_2_8,9,10.pptx
DEF CON 27 - workshop ANTHONY ROSE - introduction to amsi bypasses and sandbo...
Introduction to Software Development
Ad

More from Jonathan Alvarado (14)

ODP
Firma digital
ODP
Android + Bluetooth + Arduino
ODP
Presentacion moviles
PPT
Practical presentation
PPT
Practical presentation
PPT
Practical presentation
PPT
Operating systems
PPT
Operating systems
PPT
Operating systems
PPT
Operating systems
ODP
Avance de Proyecto
PPTX
Avance de Proyecto
ODP
Avance de Proyecto
ODP
Avance de Proyecto
Firma digital
Android + Bluetooth + Arduino
Presentacion moviles
Practical presentation
Practical presentation
Practical presentation
Operating systems
Operating systems
Operating systems
Operating systems
Avance de Proyecto
Avance de Proyecto
Avance de Proyecto
Avance de Proyecto
Ad

Recently uploaded (20)

PDF
cuic standard and advanced reporting.pdf
PDF
Network Security Unit 5.pdf for BCA BBA.
PPTX
sap open course for s4hana steps from ECC to s4
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
Approach and Philosophy of On baking technology
PDF
Empathic Computing: Creating Shared Understanding
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
Encapsulation theory and applications.pdf
PPTX
Spectroscopy.pptx food analysis technology
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
cuic standard and advanced reporting.pdf
Network Security Unit 5.pdf for BCA BBA.
sap open course for s4hana steps from ECC to s4
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Understanding_Digital_Forensics_Presentation.pptx
Approach and Philosophy of On baking technology
Empathic Computing: Creating Shared Understanding
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
Chapter 3 Spatial Domain Image Processing.pdf
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Encapsulation theory and applications.pdf
Spectroscopy.pptx food analysis technology
NewMind AI Weekly Chronicles - August'25 Week I
MIND Revenue Release Quarter 2 2025 Press Release
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Building Integrated photovoltaic BIPV_UPV.pdf

Practical presentation

  • 1. Operating System Practical Presentation Jonathan Arturo Alvarado Mata    1441616 Carlos Eduardo Triana Sarmiento 1412573 Obed David Guevara Ibarra           1447478 Blog: http://os-ocj.blogspot.com/
  • 2. What we did? We made the program of Bounded buffer producer-consumer. Our program use a thread for producer, and other thread for consumer.   What we use? We use 2 kinds of semaphores ... A two-valued or binary semaphore that implements mutual exclusion And the other kind of semaphore is a multiple-valued or counting semaphores that implements synchronized counts of shared resources
  • 3. Practical presentation Where is our code? Our code is in the file nachos/code/threads/threadtest.cc   How do we compile our code? We open a terminal and go to /nachos/code Then we type: make This instruction will compile all our code of nachOS How do we execute our code? In the terminal we go to /nachos/code/threads/  Then we type: ./nachos This will execute our code
  • 4. Producer Function semaphore mutex = 1;  semaphore empty = N;  semaphore full = 0;   void producer() {        while (1) {            P(empty);            P(mutex);            Product++;            V(mutex);            V(full);        }   } void consumer() {        while(1) {               P(full);               P(mutex);               V(mutex);               V(empty);               Product--;       }      } Consumer Function
  • 5. Bibliography http://www.isi.edu/~faber/cs402/notes/lecture7.html   http://black.goucher.edu/~kelliher/cs42/oct02.html   http://www.mitecnologico.com/Main/Mutex

Editor's Notes

  • #2: eee alguien paseme los pros y contras de lo de ambiente porfas!!
  • #3:   eee alguien paseme los pros y contras de lo de ambiente porfas!!
  • #4: eee alguien paseme los pros y contras de lo de ambiente porfas!! aja cuales pros nomas son objetivos aaa pendejo xD  son relevancias bueno esas madres XD
  • #5:     eee alguien paseme los pros y contras de lo de ambiente porfas!!
  • #6: eee alguien paseme los pros y contras de lo de ambiente porfas!!