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 distribuiti > (ancora) dubbio su "searchFile"
  Last Thread   Next Thread
Author
Thread    Expand all | Contract all    Post New Thread    Post A Reply
Collapse
Gatz
.amico.

User info:
Registered: Oct 2005
Posts: 37 (0.01 al dì)
Location:
Corso:
Anno:
Time Online: 13:00:37 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged
Question (ancora) dubbio su "searchFile"

Ciao a tutti ho un dubbio...

Premessa:

Supponiamo di considerare i Peer: test1, test2.
Avviamo "test1", poi avviamo "test2".

Ecco il dubbio: :wall:
Se "test1" sta eseguendo "searchFile" e, MENTRE l'utente sta scegliendo il file da scaricare o da chi scaricarlo, viene avviato "test2" (che riavvia l'elezione) come si può fare in modo di BLOCCARE l'escuzione di "searchFile" su "test1"?

Sto cercando una soluzione senza usare wait() e notify(), qualcuno di voi ci è riuscito in questo modo o sto solo buttando via tempo ?

devo usare wait() e notify() ?

grazie a tutte le persone che mi risponderanno. :pc:

Ciao :ciao:

17-08-2006 15:54
Click Here to See the Profile for Gatz Click here to Send Gatz a Private Message Find more posts by Gatz Add Gatz to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
luna
.grande:maestro.

User info:
Registered: Apr 2003
Posts: 4565 (0.56 al dì)
Location: Rozzano
Corso:
Anno: Ormai finito!
Time Online: 102 Days, 14:49:55 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

ma stai parlando della parte facoltativa/obbligatoria?dove devi limitare a 2 gli upload?in quel caso, se non usi wait e notify ti fa un po' di storie l'esercitatore ;) se vuoi un consiglio, ti conviene usarle ;)

__________________
"Solamente il cuore ti permette di vedere chiaramente.L'essenziale e' invisibile agli occhi"
bisogna vivere "alla giornata", senza crearsi troppe aspettative. quello che viene sarà un "di più" ed è da mettere nel salvadanaio.
Sono troppo una grilla petulante :D by Nous

26-08-2006 08:29
Click Here to See the Profile for luna Click Here to See the Blog of luna Click here to Send luna a Private Message Find more posts by luna Add luna to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
All times are GMT. The time now is 00:27.    Post New Thread    Post A Reply
  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.495 seconds (16.16% PHP - 83.84% MySQL) con 23 query.