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
PPT
Practical presentation
PPT
Practical presentation
ODP
Presentacion moviles
PPT
Operating systems
PDF
Adaptativos (1)
PPTX
Code Igniter Code Sniffer
Practical presentation
About java
Practical presentation
Practical presentation
Presentacion moviles
Operating systems
Adaptativos (1)
Code Igniter Code Sniffer

Similar to Practical presentation (20)

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
DOCX
Was faqs
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
Was faqs
Ad

More from Jonathan Alvarado (10)

ODP
Firma digital
ODP
Android + Bluetooth + Arduino
PPT
Practical presentation
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
Practical presentation
Operating systems
Operating systems
Operating systems
Avance de Proyecto
Avance de Proyecto
Avance de Proyecto
Avance de Proyecto
Ad

Recently uploaded (20)

PDF
DP Operators-handbook-extract for the Mautical Institute
PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
Getting Started with Data Integration: FME Form 101
PDF
NewMind AI Weekly Chronicles - August'25-Week II
PPT
Module 1.ppt Iot fundamentals and Architecture
PDF
WOOl fibre morphology and structure.pdf for textiles
PDF
Microsoft Solutions Partner Drive Digital Transformation with D365.pdf
PPTX
1. Introduction to Computer Programming.pptx
PDF
Univ-Connecticut-ChatGPT-Presentaion.pdf
PDF
Hybrid model detection and classification of lung cancer
PPTX
Chapter 5: Probability Theory and Statistics
PDF
Hindi spoken digit analysis for native and non-native speakers
PPTX
Modernising the Digital Integration Hub
PPTX
Group 1 Presentation -Planning and Decision Making .pptx
PPTX
TLE Review Electricity (Electricity).pptx
PDF
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
PDF
From MVP to Full-Scale Product A Startup’s Software Journey.pdf
PDF
How ambidextrous entrepreneurial leaders react to the artificial intelligence...
PDF
ENT215_Completing-a-large-scale-migration-and-modernization-with-AWS.pdf
PPTX
O2C Customer Invoices to Receipt V15A.pptx
DP Operators-handbook-extract for the Mautical Institute
Programs and apps: productivity, graphics, security and other tools
Getting Started with Data Integration: FME Form 101
NewMind AI Weekly Chronicles - August'25-Week II
Module 1.ppt Iot fundamentals and Architecture
WOOl fibre morphology and structure.pdf for textiles
Microsoft Solutions Partner Drive Digital Transformation with D365.pdf
1. Introduction to Computer Programming.pptx
Univ-Connecticut-ChatGPT-Presentaion.pdf
Hybrid model detection and classification of lung cancer
Chapter 5: Probability Theory and Statistics
Hindi spoken digit analysis for native and non-native speakers
Modernising the Digital Integration Hub
Group 1 Presentation -Planning and Decision Making .pptx
TLE Review Electricity (Electricity).pptx
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
From MVP to Full-Scale Product A Startup’s Software Journey.pdf
How ambidextrous entrepreneurial leaders react to the artificial intelligence...
ENT215_Completing-a-large-scale-migration-and-modernization-with-AWS.pdf
O2C Customer Invoices to Receipt V15A.pptx

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!!