SlideShare ist ein Scribd-Unternehmen logo
1 von 48
Downloaden Sie, um offline zu lesen
Dept. of Computer Science – FITA – HUA




          Van Hoang Nguyen
          Mail: startnewday85@gmail.com
          Department of Computer Science – FITA – HUA



Advanced Operating System Course ---------------------------------- Fall 2012
Advanced Operating System – Fall 2012




                   http://en.wikipedia.org/wiki/EDVAC
Van Hoang Nguyen
Advanced Operating System – Fall 2012




Van Hoang Nguyen
Advanced Operating System – Fall 2012




Van Hoang Nguyen
Advanced Operating System – Fall 2012




Van Hoang Nguyen
Advanced Operating System – Fall 2012




Van Hoang Nguyen
Advanced Operating System – Fall 2012




                                Registers
                                 Stack




                            R      R        R
                            S      S        S




Van Hoang Nguyen
Advanced Operating System – Fall 2012




Van Hoang Nguyen
Advanced Operating System – Fall 2012




                   batch, interactive, real-time




Van Hoang Nguyen
Advanced Operating System – Fall 2012




                             throughput, turnaround time, CPU
                   utilization
                               response time, proportionality
                               meeting deadlines, predictability


Van Hoang Nguyen
Advanced Operating System – Fall 2012




                   › Shortest Remaining Time Next



Van Hoang Nguyen
Advanced Operating System – Fall 2012




                   › Shortest Process Next
                   › Guaranteed Scheduling
                   › Lottery
                   › Fair share
Van Hoang Nguyen
Advanced Operating System – Fall 2012




Van Hoang Nguyen
Advanced Operating System – Fall 2012




                                                                      › Barrier
                   Strict alternation    Semaphores
                   Peterson’s solution   Mutexes
                   TSL/XCHG




Van Hoang Nguyen
Advanced Operating System – Fall 2012




               memory hierarchy




Van Hoang Nguyen
Advanced Operating System – Fall 2012




                   Base and Limit Register
                   Swap
                   Virtual Memory

Van Hoang Nguyen
Advanced Operating System – Fall 2012




                   long-term information storage




Van Hoang Nguyen
Advanced Operating System – Fall 2012




Van Hoang Nguyen
Advanced Operating System – Fall 2012




Van Hoang Nguyen
Advanced Operating System – Fall 2012




                   File A        File B       File C




                        File    File          File         File
                       block   block         block        block
                         0       1             2            3



Van Hoang Nguyen
Advanced Operating System – Fall 2012



                                     File A
                   0   1   2     3     4   5   6    7

                           6           7       -1   2




Van Hoang Nguyen
Advanced Operating System – Fall 2012




               File’s Name   Attributes   File’s Name

               File’s Name   Attributes   File’s Name

               File’s Name   Attributes   File’s Name

               File’s Name   Attributes   File’s Name



Van Hoang Nguyen
Advanced Operating System – Fall 2012




Van Hoang Nguyen
Advanced Operating System – Fall 2012




Van Hoang Nguyen
Advanced Operating System – Fall 2012




Van Hoang Nguyen
Advanced Operating System – Fall 2012




Van Hoang Nguyen
Advanced Operating System – Fall 2012




Van Hoang Nguyen
Advanced Operating System – Fall 2012




                   Sourced by: Machine learning overview – Ho T.B
Van Hoang Nguyen
Advanced Operating System – Fall 2012




                   (diversity of mobile devices)




Van Hoang Nguyen
Advanced Operating System – Fall 2012




Van Hoang Nguyen
Advanced Operating System – Fall 2012




          Lecture                    Reference

          Introduction               [3] Chapter 1 - 13

          Parallel and Distributed   [1]. Chapter 8

          Real-Time                  [1]. Chapter 7 and [2]

          WebOS

          Kernel Architecture

          Big Storage

          Protection and Security    [1]. Chapter 9




Van Hoang Nguyen
Advanced Operating System – Fall 2012




Van Hoang Nguyen
Advanced Operating System – Fall 2012




                   Regular attention   10%
                   Mid                 30%
                   Final               60%
                   Total               100%




Van Hoang Nguyen
Advanced Operating System – Fall 2012




Van Hoang Nguyen
Advanced Operating System – Fall 2012




Van Hoang Nguyen
Advanced Operating System – Fall 2012




Van Hoang Nguyen
Advanced Operating System – Fall 2012




  while (turn!=0) /*loop*/;   while (turn!=1) /*loop*/;
  critical_region();          critical_region();
  turn=1;                     turn=0;
  noncritical_region();       noncritical_region();




Van Hoang Nguyen
Advanced Operating System – Fall 2012




  void enter_region(int process)    void leave_region(int process)
  {                                 {
        int other;                        interested[process]=0;
        other = 1-process;          }
        interested[process]=1;
        turn=process;
        while (turn==process
        && interested[other]==1);
  }

Van Hoang Nguyen
Advanced Operating System – Fall 2012




  enter_region:             enter_region:
        TSL REGISTER,LOCK         MOVE REGISTER,#1
        CMP REGISTER,#0           XCHG REGISTER,LOCK
        JNE enter_region          CMP REGISTER,#0
        RET                       JNE enter_region
  leave_region                    RET
        MOVE LOCK,#0        leave_region
        RET                       MOVE LOCK,#0
                                  RET

Van Hoang Nguyen
Advanced Operating System – Fall 2012




  void producer(){                   void consumer(){
        int item;                          int item;
        while(true){                       while(true){
              item=produce_item();               item=produce_item();
              down(&empty);                      down(&full);
              down(&mutex);                      down(&mutex);
              insert_item(item);                 item=remove_item();
              up(&mutex);                        up(&mutex);
              up(&full);                         up(&empty);
        }                                        consume_item(item);
  }                                        }
                                     }

Van Hoang Nguyen
Advanced Operating System – Fall 2012




  mutex_lock:                mutex_unlock:
        TSL REGISTER,MUTEX         MOVE MUTEX,#0
        CMP REGISTER,#0            RET
        JZE ok
        CALL thread_yield
        JMP mutex_lock
  ok:   RET


Van Hoang Nguyen
Advanced Operating System – Fall 2012




Van Hoang Nguyen
Advanced Operating System – Fall 2012




Van Hoang Nguyen
Advanced Operating System – Fall 2012




                   a simplest version of dynamic relocation




Van Hoang Nguyen
Advanced Operating System – Fall 2012




                   not enough to hold all process in physical memory




             C          C            C           C               C

             B          B            B
                                                                 A
             A
                                     D           D               D
             OS         OS          OS           OS              OS

Van Hoang Nguyen
Advanced Operating System – Fall 2012




                    ==> some issues                                Stack
           › Fixed size while data segment can grow
               › allocate an extra memory                                       Room for
               › arrange stack and heap segment                                  grow

           › Big process can not run
                                                                    Data
           › Fragmentation problem
               › External Fragmentation                            Code
               › Internal Fragmentation                               OS
               › memory compact ==> waste CPU time



Van Hoang Nguyen
Advanced Operating System – Fall 2012




                     ==> some issues
           › How to manage free memory
               › bitmaps: unit size, difficult to allocate
               › free lists
           › How to allocate
               › first fit
               › next fit
               › best fit
               › worst fit
               › quick fit



Van Hoang Nguyen
Advanced Operating System – Fall 2012




                   Page

                                                     Page
                                                     frame




                          PageTable
Van Hoang Nguyen

Weitere ähnliche Inhalte

Mehr von Hoang Nguyen

Information, Data and Decision Making
Information, Data and Decision MakingInformation, Data and Decision Making
Information, Data and Decision MakingHoang Nguyen
 
Multiple processor systems
Multiple processor systemsMultiple processor systems
Multiple processor systemsHoang Nguyen
 
Multiprocessor Systems
Multiprocessor SystemsMultiprocessor Systems
Multiprocessor SystemsHoang Nguyen
 
Background Knowledge
Background KnowledgeBackground Knowledge
Background KnowledgeHoang Nguyen
 
Introduction to Information Security Course
Introduction to Information Security CourseIntroduction to Information Security Course
Introduction to Information Security CourseHoang Nguyen
 
Introduction to CNS Course
Introduction to CNS CourseIntroduction to CNS Course
Introduction to CNS CourseHoang Nguyen
 
Testing in the lifecycle
Testing in the lifecycleTesting in the lifecycle
Testing in the lifecycleHoang Nguyen
 
Fundamentals of Testing 2
Fundamentals of Testing 2Fundamentals of Testing 2
Fundamentals of Testing 2Hoang Nguyen
 
Fundamentals of testing 1
Fundamentals of testing 1Fundamentals of testing 1
Fundamentals of testing 1Hoang Nguyen
 
Why the Semantic Web will nerver work
Why the Semantic Web will nerver workWhy the Semantic Web will nerver work
Why the Semantic Web will nerver workHoang Nguyen
 

Mehr von Hoang Nguyen (20)

Stream ciphers
Stream ciphersStream ciphers
Stream ciphers
 
Classical ciphers
Classical ciphersClassical ciphers
Classical ciphers
 
Confidentiality
ConfidentialityConfidentiality
Confidentiality
 
Information, Data and Decision Making
Information, Data and Decision MakingInformation, Data and Decision Making
Information, Data and Decision Making
 
Multiple processor systems
Multiple processor systemsMultiple processor systems
Multiple processor systems
 
Multiprocessor Systems
Multiprocessor SystemsMultiprocessor Systems
Multiprocessor Systems
 
Background Knowledge
Background KnowledgeBackground Knowledge
Background Knowledge
 
Introduction to Information Security Course
Introduction to Information Security CourseIntroduction to Information Security Course
Introduction to Information Security Course
 
Introduction to CNS Course
Introduction to CNS CourseIntroduction to CNS Course
Introduction to CNS Course
 
Dynamic Testing
Dynamic TestingDynamic Testing
Dynamic Testing
 
Nosql intro
Nosql introNosql intro
Nosql intro
 
Static Testing
Static TestingStatic Testing
Static Testing
 
Testing in the lifecycle
Testing in the lifecycleTesting in the lifecycle
Testing in the lifecycle
 
Fundamentals of Testing 2
Fundamentals of Testing 2Fundamentals of Testing 2
Fundamentals of Testing 2
 
Fundamentals of testing 1
Fundamentals of testing 1Fundamentals of testing 1
Fundamentals of testing 1
 
Why the Semantic Web will nerver work
Why the Semantic Web will nerver workWhy the Semantic Web will nerver work
Why the Semantic Web will nerver work
 
IS sum up 2011
IS sum up 2011IS sum up 2011
IS sum up 2011
 
XSLT
XSLTXSLT
XSLT
 
XPath
XPathXPath
XPath
 
XML DOM
XML DOMXML DOM
XML DOM
 

Kürzlich hochgeladen

Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteDianaGray10
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfRankYa
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxLoriGlavin3
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubKalema Edgar
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionDilum Bandara
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024Lonnie McRorey
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Manik S Magar
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLScyllaDB
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsMiki Katsuragi
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Commit University
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii SoldatenkoFwdays
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenHervé Boutemy
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsSergiu Bodiu
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc
 

Kürzlich hochgeladen (20)

Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test Suite
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdf
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An Introduction
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQL
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering Tips
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptxE-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache Maven
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
 

Introduction to AOS course