Dsy Network www | forum | my | didattica | howto | wiki | el goog | stats | blog | dona | rappresentanti
Homepage
 Register   Calendar   Members  Faq   Search  Logout 
.dsy:it. : Powered by vBulletin version 2.3.1 .dsy:it. > Didattica > Corsi N - Z > Sistemi operativi I > [SIS. OP. - BRUSCHI] Info 2004/05 Thread Rating: 1 votes, 3.00 average.
Pages (37): « First ... « 5 6 7 8 [9] 10 11 12 13 » ... Last »   Last Thread   Next Thread
Author
Thread    Expand all | Contract all    Post New Thread    Post A Reply
Collapse
elpampero
Aniversario

User info:
Registered: Sep 2003
Posts: 911 (0.11 al dì)
Location: Milano
Corso: Informatica Magistrale
Anno: I
Time Online: 8 Days, 3:06:36 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Per nothingman7.. La risposta è i file. E' l'unica cosa che gli stesso thread di un processo condividono (oltre a codice e dati) il resto ce n'e' uno per ogni thread

12-04-2005 18:18
Click Here to See the Profile for elpampero Click here to Send elpampero a Private Message Find more posts by elpampero Add elpampero to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Alececk84
.fò:preciis.

User info:
Registered: Oct 2003
Posts: 1656 (0.20 al dì)
Location: Bocch dol ràt
Corso: Informatica
Anno: Almeno dodès
Time Online: 17 Days, 6:52:23 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Quanto tempo durano di solito i compitini???

__________________
Se Ghe L'ìo Me La Dào - MLCM
Corri corri ragazzo ribelle fuma e bevi sotto le stelle...ma non bucare mai la tua pelle se no le stelle non le vedi più...
De bei come nuun la mam la n'en fa più...'lsa rot la machineta e al pà 'lghe tira più...
MY SITE - MY BLOG- MY FOTO ALBUM - MSN: alececk84@hotmail.it

12-04-2005 18:26
Click Here to See the Profile for Alececk84 Click Here to See the Blog of Alececk84 Click here to Send Alececk84 a Private Message Visit Alececk84's homepage! Find more posts by Alececk84 Add Alececk84 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Dante
JUANES

User info:
Registered: Jan 2003
Posts: 188 (0.02 al dì)
Location: Legnano
Corso: Informatica
Anno: Troppi Fuori Corso...
Time Online: 1 Day, 18:39:27 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

nn mi ricordo, ma nn credo più di 1h e 30 min...

__________________
Sometimes you hurt the ones who love you most and sometimes you hold the ones who leave you lost,
and sometimes you learn
but its too late, it's too late. EI

12-04-2005 18:30
Click Here to See the Profile for Dante Click Here to See the Blog of Dante Click here to Send Dante a Private Message Find more posts by Dante Add Dante to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
elpampero
Aniversario

User info:
Registered: Sep 2003
Posts: 911 (0.11 al dì)
Location: Milano
Corso: Informatica Magistrale
Anno: I
Time Online: 8 Days, 3:06:36 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Rimane un ultima cosa: IL MONITOR

Qual è il numero minimo di variabili di tipo condition necessario per
risolvere con i Monitor un problema di mutua esclusione su una variabile
intera a cui vogliono accedere n processi?

a) n, una per ogni processo
b) dipende dal valore massimo che la variabile deve assumere
c) nessuna
d) 2, una per processi che scrivono e l'altra per i processi che leggono


Risposta esatta: c

Ho qualche problema a capire come lavora un monitor

13-04-2005 08:25
Click Here to See the Profile for elpampero Click here to Send elpampero a Private Message Find more posts by elpampero Add elpampero to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
elpampero
Aniversario

User info:
Registered: Sep 2003
Posts: 911 (0.11 al dì)
Location: Milano
Corso: Informatica Magistrale
Anno: I
Time Online: 8 Days, 3:06:36 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Secondo me il monitor garantisce la mutua esclusione normalmente. L'utilizzo di variabili condition serve per evitare il deadlock. La domanda chiede di risolvere il problema della mutua sclusione quindi non servono variabili condition.

Qualcuno conferma?

13-04-2005 08:50
Click Here to See the Profile for elpampero Click here to Send elpampero a Private Message Find more posts by elpampero Add elpampero to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
michelez
.precettore.

User info:
Registered: Oct 2003
Posts: 90 (0.01 al dì)
Location: busto arsizio
Corso: Informatica
Anno: primo
Time Online: 2 Days, 22:41:04: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Quello che non capisco e' su cosa faccio wait e signal se non ho varibili condition!

13-04-2005 08:57
Click Here to See the Profile for michelez Click here to Send michelez a Private Message Find more posts by michelez Add michelez to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
elpampero
Aniversario

User info:
Registered: Sep 2003
Posts: 911 (0.11 al dì)
Location: Milano
Corso: Informatica Magistrale
Anno: I
Time Online: 8 Days, 3:06:36 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Ma a quanto ho capito wait e signal nei monitor lavorano in maniera differente. Tipo che wait mette in una coda il processo e signal lo fa uscire...Diciamo che non vengono utilizzate wait e signal

13-04-2005 08:59
Click Here to See the Profile for elpampero Click here to Send elpampero a Private Message Find more posts by elpampero Add elpampero to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
michelez
.precettore.

User info:
Registered: Oct 2003
Posts: 90 (0.01 al dì)
Location: busto arsizio
Corso: Informatica
Anno: primo
Time Online: 2 Days, 22:41:04: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

pero' un contatore per le code serve, giusto? Avrò un qualcosa che tiene il conto ..

13-04-2005 09:03
Click Here to See the Profile for michelez Click here to Send michelez a Private Message Find more posts by michelez Add michelez to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
elpampero
Aniversario

User info:
Registered: Sep 2003
Posts: 911 (0.11 al dì)
Location: Milano
Corso: Informatica Magistrale
Anno: I
Time Online: 8 Days, 3:06:36 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Dunque..ragioniamo..
il libro dice: date x,y come variabili condition
Se un processo P0 chiama x.wait P0 viene sospeso finchè
un altro processo P1 chiama x.signal che risveglia P0.

Se non ci sono processi sospesi la chiamata x.signal non fa nulla.

Un contatore non penso che serva perchè è una coda dove il primo a entrare è il primo a uscire..

13-04-2005 09:09
Click Here to See the Profile for elpampero Click here to Send elpampero a Private Message Find more posts by elpampero Add elpampero to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
michelez
.precettore.

User info:
Registered: Oct 2003
Posts: 90 (0.01 al dì)
Location: busto arsizio
Corso: Informatica
Anno: primo
Time Online: 2 Days, 22:41:04: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

In effetti....

Ma mi rimane il dubbio : c'è un varibile rispetto alla quale attendo se non c'è condition?

13-04-2005 09:15
Click Here to See the Profile for michelez Click here to Send michelez a Private Message Find more posts by michelez Add michelez to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
elpampero
Aniversario

User info:
Registered: Sep 2003
Posts: 911 (0.11 al dì)
Location: Milano
Corso: Informatica Magistrale
Anno: I
Time Online: 8 Days, 3:06:36 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Probabilmente il modo stesso in cui sono implemenati i monitor garantisce mutua esclusione..anzi ne sono sicuro ma non capisco come...

13-04-2005 09:21
Click Here to See the Profile for elpampero Click here to Send elpampero a Private Message Find more posts by elpampero Add elpampero to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
michelez
.precettore.

User info:
Registered: Oct 2003
Posts: 90 (0.01 al dì)
Location: busto arsizio
Corso: Informatica
Anno: primo
Time Online: 2 Days, 22:41:04: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Infatti, non sono riuscito a trovare nessun esempio di monitor senza condition...va beh


Questa ti quadra?

Si consideri un sistema a processi (o a thread, in questo contesto le due cose sono equivalenti). Il processo in esecuzione esegue una readln(my_buffer), con cui richiede di leggere una linea di caratteri da tastiera; my_buffer e' una variabile locale al processo dove dovranno essere accumulati i caratteri. La tastiera e' connessa attraverso una interfaccia seriale che genera un interrupt per ogni carattere letto. Dopo aver emesso il comando il processo passa in stato di
attesa (wait). Quando passera' in stato di pronto (ready)?
A. quando il driver riconosce che e' stata completato l'input di una linea
B. quando il controller riconosce che e' stata completato l'input di una linea
C. ogni volta che viene ricevuto un interrupt da tastiera
D. quando lo scheduler, in funzione delle sue politiche, decide di mandare in esecuzione il
processo
Risposta Esatta: A

13-04-2005 09:25
Click Here to See the Profile for michelez Click here to Send michelez a Private Message Find more posts by michelez Add michelez to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
elpampero
Aniversario

User info:
Registered: Sep 2003
Posts: 911 (0.11 al dì)
Location: Milano
Corso: Informatica Magistrale
Anno: I
Time Online: 8 Days, 3:06:36 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Questa parte secondo me non l'abbiamo ancora fatta perchè riguarda l'I/O (LEZIONE 7 dell'anno scorso) provaimo a ragionarci comunque...

13-04-2005 09:28
Click Here to See the Profile for elpampero Click here to Send elpampero a Private Message Find more posts by elpampero Add elpampero to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
elpampero
Aniversario

User info:
Registered: Sep 2003
Posts: 911 (0.11 al dì)
Location: Milano
Corso: Informatica Magistrale
Anno: I
Time Online: 8 Days, 3:06:36 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Relativamente a monitor:

"Il programmatore raccoglie quindi i dati con-
divisi e tutte le sezioni critiche relative in
un monitor; questo risolve il problema della
mutua esclusione"

Qui non parla ancora di variabili condition

13-04-2005 09:31
Click Here to See the Profile for elpampero Click here to Send elpampero a Private Message Find more posts by elpampero Add elpampero to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
michelez
.precettore.

User info:
Registered: Oct 2003
Posts: 90 (0.01 al dì)
Location: busto arsizio
Corso: Informatica
Anno: primo
Time Online: 2 Days, 22:41:04: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Probabilmente hai ragione, ma quello che volevo capire era chi permetteva il passaggio da wait e ready, se il driver o il controller.

13-04-2005 09:32
Click Here to See the Profile for michelez Click here to Send michelez a Private Message Find more posts by michelez Add michelez to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
All times are GMT. The time now is 07:42.    Post New Thread    Post A Reply
Pages (37): « First ... « 5 6 7 8 [9] 10 11 12 13 » ... Last »   Last Thread   Next Thread
Show Printable Version | Email this Page | Subscribe to this Thread | Add to Bookmarks

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is ON
 

Powered by: vBulletin v2.3.1 - Copyright ©2000 - 2002, Jelsoft Enterprises Limited
Mantained by dsy crew (email) | Collabora con noi | Segnalaci un bug | Archive | Regolamento | Licenze | Thanks | Syndacate
Pagina generata in 0.126 seconds (67.89% PHP - 32.11% MySQL) con 24 query.