1 / 10

Basic Synchronization Principles

Operating Systems. Basic Synchronization Principles. © Dr. Aiman Hanna Department of Computer Science Concordia University Montreal, Canada. Critical Sections (CSs). What are they? Examples of what may happen if CSs are not handled with care Examples of cooperating processes around CSs.

tristessa
Download Presentation

Basic Synchronization Principles

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Operating Systems Basic Synchronization Principles © Dr. Aiman Hanna Department of Computer Science Concordia University Montreal, Canada

  2. Critical Sections (CSs) • What are they? • Examples of what may happen if CSs are not handled with care • Examples of cooperating processes around CSs

  3. Enabling/Disabling Interrupts • Will they provide a solution to the CS problem? • If yes, why cannot we depend on this solution then!

  4. Other Solutions to the CS Problem • Acquiring a lock for example • How can the lock be obtained and released correctly? • Examining different solutions and see why they may fail/work.

  5. Protecting Different CSs • Should one lock be used to protect different CSs? • Why/Why not?

  6. Deadlock • What is it? • Why is it deadly?

  7. Evolving the CS solution • Use of FORK/JOIN • Synchronization

  8. Concurrent Processes • Synchronization between concurrent processes to achieve proper behavior

  9. Semaphores • What is a semaphore? • How can they be used to achieve: • Protection of CSs - Mutual Execution • Proper synchronization/communication between concurrent processes

  10. Where is this week coverage in the textbook? • Chapter 8: • Sections 8.1, 8.2 & 8.3 (until page 310), with the following exceptions: • Skip: Figure 8.1 and Figure 8.2. This material however will be covered as part of the programming assignment.

More Related