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 ... « 11 12 13 14 [15] 16 17 18 19 » ... 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

Non lo so, io seguito i dati inseriti da te:
P--CPU BURST--TEMPO ARRIVO
P1 8-0
P2 12-0.4
P3 13-1

15-04-2005 10:03
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
T_M_P
.arcimaestro.

User info:
Registered: May 2003
Posts: 458 (0.06 al dì)
Location: Milano
Corso: Informatica
Anno: 1 (Finirà mai?)
Time Online: 2 Days, 7:52:34 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Asd.. io ho messo 12 perchè P2 dura 4 ma viene eseguito dopo P1 che dura 8. Quindi P2 parte a 8 e finisce a 12..

15-04-2005 10:34
Click Here to See the Profile for T_M_P Click here to Send T_M_P a Private Message Find more posts by T_M_P Add T_M_P 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

Ricapitoliamo:
P1 0.0 8
P2 0.4 4
P3 1.0 1

Calcolare turnaround medio con FCFS e SJF


FCFS:

P1 arriva a 0 dura 8 e finisce ad 8-->TOURNAROUND 8
P2 arriva a 0.4, parte a 8 e dura 4 termina a 12--> TOURNAROUND 12-0.4=11.6
P3 arriva a 1, parte a 12, dura 1 termina a 13-->TOURNAROUND 13-1=12

P1=8
P2=11.6
P3=12
8+11.6+12=31.6 31.6/3=10.53

15-04-2005 10:40
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
T_M_P
.arcimaestro.

User info:
Registered: May 2003
Posts: 458 (0.06 al dì)
Location: Milano
Corso: Informatica
Anno: 1 (Finirà mai?)
Time Online: 2 Days, 7:52:34 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Eh, anche a me viene quel risultato, ma nella risposta dell'esercizio c'è 6.66 e 5.66 e non capisco perchè..

15-04-2005 10:42
Click Here to See the Profile for T_M_P Click here to Send T_M_P a Private Message Find more posts by T_M_P Add T_M_P 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

Bhooo. sono sicuro che 10.53 è il tournaround medio..il tempo di attesa medio è invece (per FCFS) 6.2..

15-04-2005 10:48
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
T_M_P
.arcimaestro.

User info:
Registered: May 2003
Posts: 458 (0.06 al dì)
Location: Milano
Corso: Informatica
Anno: 1 (Finirà mai?)
Time Online: 2 Days, 7:52:34 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Boh... Questo è il brutto di parlarne solo tra di noi.. Va beh...

Cmq, a me viene il tempo di attesa medio è 6.66 con FCFS, non 6.2:

P1: 0
P2: 8
P3: 12

Tempo di attesa medio: 20/3=6.66

15-04-2005 10:51
Click Here to See the Profile for T_M_P Click here to Send T_M_P a Private Message Find more posts by T_M_P Add T_M_P 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

P2 non attende 8 ma attende 8-0.4=7,6 e P3 non attende 12 ma 12-1=11

15-04-2005 10:54
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
lorybu
.arcimaestro.

User info:
Registered: Oct 2003
Posts: 319 (0.04 al dì)
Location: busto arsizio
Corso: informatica
Anno: Terzo
Time Online: 2 Days, 1:20:16 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

ciao a tutti,
l'esercizio di cui state discutendo è simile a quello presente nel PDF delle domande:

Si consideri un sistema caratterizzato dai seguenti processi con i seguenti tempi di arrivo:
processo P1 con tempo di esecuzione 5
e tempo di arrivo 0, processo P2 con tempo di esecuzione 4 e tempo di arrivo 0.8, processo P3
con tempo di esecuzione 3 e tempo di arrivo 1.2, processo P4 con tempo di esecuzione 3 e tempo di arrivo 2. I processi non eseguono operazioni sospensive.
Qual e' il tempo medio di turnaround (turnaround = tempo di completamento) dei suddetti processi
quando vengono gestiti da un
algoritmo di scheduling SJF preemptive (tempo di context switch = 0)?
A) 8.5
B) 4.55
C) 8.3
D) nessuna delle altre risposte e' corretta

Risposta esatta: C

Tralasciando il fatto che questo è SJF e con preemptive il criterio è lo stesso, ossia il turnaround parte dal momento in cui il processo viene accodato nei processi pronti.
Quindi anche secondo me il calcolo che avete fatto è corretto.

__________________
Le frasi mitiche...
::mm...ma nel compito mette anche le domande??::
::.. compilare compila... è tutto corretto, il fatto è che non fa quello che dico io.. cosa potrebbe essere?::
::Il fatto è che io le cose le so...poi dopo quando sono all'interrogazione non mi vengono...::

15-04-2005 11:29
Click Here to See the Profile for lorybu Click here to Send lorybu a Private Message Find more posts by lorybu Add lorybu to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
T_M_P
.arcimaestro.

User info:
Registered: May 2003
Posts: 458 (0.06 al dì)
Location: Milano
Corso: Informatica
Anno: 1 (Finirà mai?)
Time Online: 2 Days, 7:52:34 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by elpampero
P2 non attende 8 ma attende 8-0.4=7,6 e P3 non attende 12 ma 12-1=11


Grrrrrrrrrrrrrrr

Giusto... Uff

15-04-2005 11:32
Click Here to See the Profile for T_M_P Click here to Send T_M_P a Private Message Find more posts by T_M_P Add T_M_P to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
lorybu
.arcimaestro.

User info:
Registered: Oct 2003
Posts: 319 (0.04 al dì)
Location: busto arsizio
Corso: informatica
Anno: Terzo
Time Online: 2 Days, 1:20:16 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Per quanto riguardave quel bellissimo discorso sui processi
riapro al volo una parentesi
[
concorrenti mi sono rivisto la video-lezione in cui parla dei processi ed il prof. dice che ".. la "vera" concorrenza è solo con un sistema multiprocessore, e multiThreading.."

Il paragrafo 5.2.3 del libro lascia intendere che una concorrenza reale avviene solo su un sistema multithreading e multiprocessore.

e la richiudo ] :)

__________________
Le frasi mitiche...
::mm...ma nel compito mette anche le domande??::
::.. compilare compila... è tutto corretto, il fatto è che non fa quello che dico io.. cosa potrebbe essere?::
::Il fatto è che io le cose le so...poi dopo quando sono all'interrogazione non mi vengono...::

15-04-2005 11:34
Click Here to See the Profile for lorybu Click here to Send lorybu a Private Message Find more posts by lorybu Add lorybu to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
T_M_P
.arcimaestro.

User info:
Registered: May 2003
Posts: 458 (0.06 al dì)
Location: Milano
Corso: Informatica
Anno: 1 (Finirà mai?)
Time Online: 2 Days, 7:52:34 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by lorybu
Per quanto riguardave quel bellissimo discorso sui processi
riapro al volo una parentesi
[
concorrenti mi sono rivisto la video-lezione in cui parla dei processi ed il prof. dice che ".. la "vera" concorrenza è solo con un sistema multiprocessore, e multiThreading.."

Il paragrafo 5.2.3 del libro lascia intendere che una concorrenza reale avviene solo su un sistema multithreading e multiprocessore.

e la richiudo ] :)


Grazie ma.. quindi?

15-04-2005 11:54
Click Here to See the Profile for T_M_P Click here to Send T_M_P a Private Message Find more posts by T_M_P Add T_M_P 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

Originally posted by elpampero
Bhooo. sono sicuro che 10.53 è il tournaround medio..il tempo di attesa medio è invece (per FCFS) 6.2..


io ho gli stessi risultati

Per SJF mi esce:
turnaround medio: (8+12.6+8)/3 = 9.53
tempo attesa medio: (0+8.6+7)/3=5.2

15-04-2005 12:14
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
lorybu
.arcimaestro.

User info:
Registered: Oct 2003
Posts: 319 (0.04 al dì)
Location: busto arsizio
Corso: informatica
Anno: Terzo
Time Online: 2 Days, 1:20:16 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by T_M_P
Grazie ma.. quindi?

quindi ...
Un sistema concorrente è necessariamente:
A. multiprogrammato
B. multithreaded
C. time-sharing
D. multithreaded e time-sharing

Risposta esatta: B

__________________
Le frasi mitiche...
::mm...ma nel compito mette anche le domande??::
::.. compilare compila... è tutto corretto, il fatto è che non fa quello che dico io.. cosa potrebbe essere?::
::Il fatto è che io le cose le so...poi dopo quando sono all'interrogazione non mi vengono...::

15-04-2005 12:20
Click Here to See the Profile for lorybu Click here to Send lorybu a Private Message Find more posts by lorybu Add lorybu 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

Sì, lorybu..direi che alla fine hai ragione. Anche perchè ho trovato in rete una cosa simile

15-04-2005 12:51
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

Com'e' secondo voi?

Si consideri un sistema in cui sono in esecuzione 11 processi, di cui uno esegue elaborazioni (CPU burst) della durata di 10 secondi fra due operazioni di I/O, e gli altri (processi interattivi) eseguono elaborazioni (CPU burst) della durata di 1 ms, poi emettono un carattere e attendono una risposta da tastiera. Considerando trascurabili i tempi di commutazione, cosa ci si puo' attendere come ordine di grandezza del tempo medio di risposta in ms per i processi interattivi (tempo che intercorre fra il momento in cui l'utente termina l'input e il momento in cui riceve il prompt), nel caso di politica FIFO e RR con quanto di tempo di 50 ms?

a)5005,51
b)10011,26
c)5005,26
d)5005,30

15-04-2005 13:58
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
All times are GMT. The time now is 17:00.    Post New Thread    Post A Reply
Pages (37): « First ... « 11 12 13 14 [15] 16 17 18 19 » ... 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.089 seconds (43.84% PHP - 56.16% MySQL) con 24 query.