PDA

View Full Version : Esercizio sui processi


Sandrin83
05-12-2009, 08:08
Due processi lettori P0 e P1 e due processi scrittori Q0 e Q1 accedono ad una risorsa condivisa R.Il processo scrittore Q0 accede alla risorsa R solo dopo che i ue processi lettori hanno utilizzato la risorsa secondo l'ordine P0 e P1.Mentre il processo Q1 accede alla risorsa R solo dopo che i due processi lettori hanno utilizzato la risorsa secondo l'ordine P1 e P0.Mi serve una soluzione mediante pseudocodice che faccia uso dei semafori come primitive di sincronizzazione per l'accesso alla risorsa condivisa e che rispetti la modalità di accesso.
Sono disperatissimo,l'esame è il 14 dic.

Hardware Upgrade Forum Database Error
Database Error Database error
The Hardware Upgrade Forum database has encountered a problem.

Please try the following:
  • Load the page again by clicking the Refresh button in your web browser.
  • Open the www.hwupgrade.it home page, then try to open another page.
  • Click the Back button to try another link.
The www.hwupgrade.it forum technical staff have been notified of the error, though you may contact them if the problem persists.
 
We apologise for any inconvenience.