1 / 8

CS170 Discussion – 2009-05-01

This project involves implementing a semaphore server in Minix, adding it to the boot process, and extending the posix library with new functions. It also requires solving a synchronization problem involving students asking questions to a professor.

rantoinette
Download Presentation

CS170 Discussion – 2009-05-01

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. CS170 Discussion – 2009-05-01 Bryce Boe

  2. Outline • Project 4 Overview • Midterm Information • Midterm questions / project 3 questions

  3. Project 4 • 1) Implement a semaphore server in minix • Add server to the boot process • Add functions to posix library • Add message passing permissions • Service needs to automatically restart if killed • 2) Solve a synchronization problem

  4. Semaphore Service API • intsema_init(intsemaphore_number, intstart_value) • intsema_down(intsemaphore_number) • intsema_up(intsemaphore_number) • intsema_release(intsemaphore_number) • Valid semaphore_numbers: 0-9

  5. Hint, hint • Sending a message in minix is blocks until the reply is received • http://www.usenix.org/publications/login/2006-04/openpdfs/herder.pdf -- read it

  6. Synchronization Problem • Many students want to ask a single professor a question • Synchronize the questions so the professor doesn’t go crazy, and the students have their questions answered

  7. Midterm • 5 Questions, each with multiple parts • Covers material up to and including slide 24 of the deadlocks set (cs-170-06.pdf) • Review _all_ slides and projects

  8. Questions, comments or answers?

More Related