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 e distribuiti > [PROGETTO] tutti al mare
Pages (3): [1] 2 3 »   Last Thread   Next Thread
Author
Thread    Expand all | Contract all    Post New Thread    Post A Reply
Collapse
sandrino83
maschio latino

User info:
Registered: Oct 2004
Posts: 376 (0.05 al dì)
Location:
Corso: Com Dig
Anno: finito
Time Online: 8 Days, 7:53:08: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged
Angry [PROGETTO] tutti al mare

qualcuna ha la minima idea di come simulare una coda fifo con i thread????:?:??

__________________
we are just two lost souls swimming in a fish bowl year after year....running over the same old ground....what have we found.......

25-07-2006 11:09
Click Here to See the Profile for sandrino83 Click here to Send sandrino83 a Private Message Find more posts by sandrino83 Add sandrino83 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Brk
.consigliere.

User info:
Registered: Dec 2004
Posts: 148 (0.02 al dì)
Location:
Corso:
Anno:
Time Online: 1 Day, 8:25:11 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Credo si intenda di fare una notify anzichè un notifyall, in questo modo risvegli solo il primo thread nella coda....

25-07-2006 14:37
Click Here to See the Profile for Brk Click here to Send Brk a Private Message Find more posts by Brk Add Brk to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
sandrino83
maschio latino

User info:
Registered: Oct 2004
Posts: 376 (0.05 al dì)
Location:
Corso: Com Dig
Anno: finito
Time Online: 8 Days, 7:53:08: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

si ma con il notify svegli un thread a caso e non il primo della coda......credo......qualcuno mi corregga se sbaglio........

__________________
we are just two lost souls swimming in a fish bowl year after year....running over the same old ground....what have we found.......

25-07-2006 14:57
Click Here to See the Profile for sandrino83 Click here to Send sandrino83 a Private Message Find more posts by sandrino83 Add sandrino83 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Brk
.consigliere.

User info:
Registered: Dec 2004
Posts: 148 (0.02 al dì)
Location:
Corso:
Anno:
Time Online: 1 Day, 8:25:11 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Hai ragione...

proviamo a cercare...

25-07-2006 15:25
Click Here to See the Profile for Brk Click here to Send Brk a Private Message Find more posts by Brk Add Brk to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
sandrino83
maschio latino

User info:
Registered: Oct 2004
Posts: 376 (0.05 al dì)
Location:
Corso: Com Dig
Anno: finito
Time Online: 8 Days, 7:53:08: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

spremiamo le miningi.......

__________________
we are just two lost souls swimming in a fish bowl year after year....running over the same old ground....what have we found.......

25-07-2006 15:33
Click Here to See the Profile for sandrino83 Click here to Send sandrino83 a Private Message Find more posts by sandrino83 Add sandrino83 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
foolish
bleak

User info:
Registered: Oct 2003
Posts: 3585 (0.46 al dì)
Location:
Corso:
Anno:
Time Online: 36 Days, 7:28:56 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

non conosco bene le specifiche, ma l'utilizzo di una lista potrebbe risolvere qualche problema
http://java.sun.com/j2se/1.3/docs/a...stractList.html

a questo punto ogni thread creato si può mettere in coda e venire così posizionato alla fine della lista.

quando un posto si libera ci sarà un notifyall e tutti i thread controlleranno la loro posizione (in lista) , il primo usicrà dalla lista e così via

__________________
The only way to discover the limits of the possible is to go beyond them into the impossible.
Arthur C. Clarke.

25-07-2006 15:51
Click Here to See the Profile for foolish Click Here to See the Blog of foolish Click here to Send foolish a Private Message Find more posts by foolish Add foolish to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
sandrino83
maschio latino

User info:
Registered: Oct 2004
Posts: 376 (0.05 al dì)
Location:
Corso: Com Dig
Anno: finito
Time Online: 8 Days, 7:53:08: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

in giro leggo che la jvm schedula automaticamente secondo l'algoritmo FIFO i thread con ugual priorità.......vedrò di approfondire

__________________
we are just two lost souls swimming in a fish bowl year after year....running over the same old ground....what have we found.......

25-07-2006 15:52
Click Here to See the Profile for sandrino83 Click here to Send sandrino83 a Private Message Find more posts by sandrino83 Add sandrino83 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
sandrino83
maschio latino

User info:
Registered: Oct 2004
Posts: 376 (0.05 al dì)
Location:
Corso: Com Dig
Anno: finito
Time Online: 8 Days, 7:53:08: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

quindi dopo il notifyall del thread che libera un posto, ogni thread si posiziona nel posto più vicino all'uscita (del ready queue) e solo quello che si trova in posizione 0 non si autoferma ma prosegue con l'esecuzione.........ho capito bene?

__________________
we are just two lost souls swimming in a fish bowl year after year....running over the same old ground....what have we found.......

25-07-2006 15:56
Click Here to See the Profile for sandrino83 Click here to Send sandrino83 a Private Message Find more posts by sandrino83 Add sandrino83 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Brk
.consigliere.

User info:
Registered: Dec 2004
Posts: 148 (0.02 al dì)
Location:
Corso:
Anno:
Time Online: 1 Day, 8:25:11 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

anche una hashtable potrebbe andare....

25-07-2006 16:03
Click Here to See the Profile for Brk Click here to Send Brk a Private Message Find more posts by Brk Add Brk to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Brk
.consigliere.

User info:
Registered: Dec 2004
Posts: 148 (0.02 al dì)
Location:
Corso:
Anno:
Time Online: 1 Day, 8:25:11 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Ho detto una cazzata, meglio questo:

http://www.dia.uniroma3.it/~cabibbo.../ArrayList.html

25-07-2006 16:10
Click Here to See the Profile for Brk Click here to Send Brk a Private Message Find more posts by Brk Add Brk to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
foolish
bleak

User info:
Registered: Oct 2003
Posts: 3585 (0.46 al dì)
Location:
Corso:
Anno:
Time Online: 36 Days, 7:28:56 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

ma si possono usare librerie non standard?
cmq ogni lista va bene, i metodi bene o male son sempre quelli ;)

__________________
The only way to discover the limits of the possible is to go beyond them into the impossible.
Arthur C. Clarke.

25-07-2006 16:16
Click Here to See the Profile for foolish Click Here to See the Blog of foolish Click here to Send foolish a Private Message Find more posts by foolish Add foolish to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
sandrino83
maschio latino

User info:
Registered: Oct 2004
Posts: 376 (0.05 al dì)
Location:
Corso: Com Dig
Anno: finito
Time Online: 8 Days, 7:53:08: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

io ho imbastito un sistema senza coda......quindi il notify svegli un solo thread e con i tempi che ci sono nelle specifiche non riesco ad arrivare nemmeno nella situazione di coda......in sostanza se arrivano bagnanti tra 200 e 1000 millisecondi e se ne vanno dopo un periodo tra 500 e 2000 millisecondi non mi si riempiono mai tutti gli ombrelloni......a voi succede così?

__________________
we are just two lost souls swimming in a fish bowl year after year....running over the same old ground....what have we found.......

25-07-2006 16:19
Click Here to See the Profile for sandrino83 Click here to Send sandrino83 a Private Message Find more posts by sandrino83 Add sandrino83 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Brk
.consigliere.

User info:
Registered: Dec 2004
Posts: 148 (0.02 al dì)
Location:
Corso:
Anno:
Time Online: 1 Day, 8:25:11 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Si riempiono solo moooooooooolto in là, se fai proseguire il programma ad oltranza, prova a metter solo 3 ombrelloni e vedi

25-07-2006 16:21
Click Here to See the Profile for Brk Click here to Send Brk a Private Message Find more posts by Brk Add Brk to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
sandrino83
maschio latino

User info:
Registered: Oct 2004
Posts: 376 (0.05 al dì)
Location:
Corso: Com Dig
Anno: finito
Time Online: 8 Days, 7:53:08: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

ho provato a moltiplicare x 10 i tempi di permanenza sotto l'ombrellone e la coda effettivamente si riempie.......ma con le specifiche non si riempirà mai.......

__________________
we are just two lost souls swimming in a fish bowl year after year....running over the same old ground....what have we found.......

25-07-2006 16:22
Click Here to See the Profile for sandrino83 Click here to Send sandrino83 a Private Message Find more posts by sandrino83 Add sandrino83 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Brk
.consigliere.

User info:
Registered: Dec 2004
Posts: 148 (0.02 al dì)
Location:
Corso:
Anno:
Time Online: 1 Day, 8:25:11 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Quello si, se allunghi la permanenza è come rimini ^^

25-07-2006 16:23
Click Here to See the Profile for Brk Click here to Send Brk a Private Message Find more posts by Brk Add Brk to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
All times are GMT. The time now is 08:24.    Post New Thread    Post A Reply
Pages (3): [1] 2 3 »   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.047 seconds (81.00% PHP - 19.00% MySQL) con 26 query.