Ing. Tarin Gamberini

Citazione

Counter

Counter

Standards

Valid XHTML 1.0!

Valid CSS!

Level A conformance icon, W3C-WAI Web Content Accessibility Guidelines 1.0

Campagne

Sito sensibilizzato, a livello AA, ad un corretto uso della e-mail

Best viewed with any browser

Get Thunderbird

Get Firefox

Use OpenOffice.org

pspad

Home > University Studies > Exam's Reports

Operating Systems

Exercise on Java semaphores

In the cuncurrent programming the semaphore represents a shyncronization construct among processes.

In this exercise a mailbox is a resource shared among threads: a person and several postmen.

The semaphore is used to shyncronize the access at the resource by the threads: the person can't draws a mail from the mailbox if the postman is delivering it, while a postman can't delivers a mail if the person is drawning it or if another postman is delivering it.

Download

Download the java source code about the exercise on semaphores:

jar format esame_sistemi_operativi_mailbox.jar download from taringamberini.com 81kB

  • Check the file integrity verifying its MD5 digest: 0946f841a06eeff2922518bf7b011855
  • Be sure about the file autenticity verifying its PGP/GPG sign link per il download file da taringamberini.com against my PGP/GPG public key.
  • Read the legal notes by which the material on this site is distribuited.

Copyright © 2003, 2008 Tarin Gamberini

Last updated 20/01/2008