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 > commenti esame 12 luglio
Pages (4): « 1 2 3 [4]   Last Thread   Next Thread
Author
Thread    Expand all | Contract all    Post New Thread    Post A Reply
Collapse
ayakochan
the real puppet

User info:
Registered: Oct 2006
Posts: 103 (0.02 al dì)
Location: Busto Arsizio Beach
Corso: comunicazione digitale
Anno: ...
Time Online: 1 Day, 8:54:41 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

secondo voi, cosa potrebbe mettere di c?
alla fine i programmi che ha messo fino adesso nel bene o nel male sono presi dai suoi appunti.
sicuramente non metterà fork e shared memory, io mi sono già messa il cuore in pace.
rimangono:
- client e server con scambio di messaggi
- semafori
- thread e mutex
- ...e potrebbe anche rimettere quello con il bounded buffer

almeno la teoria è fattibile...

__________________
...now my feet won't touch the ground...

28-08-2010 16:31
Click Here to See the Profile for ayakochan Click here to Send ayakochan a Private Message Find more posts by ayakochan Add ayakochan to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
alegiomi1
.simpatizzante.

User info:
Registered: Oct 2005
Posts: 13 (0.00 al dì)
Location:
Corso: comunicazione digitale
Anno:
Time Online: 19:29:51 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Ehhh...mi sà che quì fare delle previsioni risulta mooolto difficile....è sempre una sorpresa!!!
Magari mette proprio quello che uno meno si aspetta ( fork con shared memory)..
E' sempre più difficile sto esame..dove mai vorrà arrivare....bOOOHHHH

29-08-2010 13:11
Click Here to See the Profile for alegiomi1 Click here to Send alegiomi1 a Private Message Find more posts by alegiomi1 Add alegiomi1 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
ayakochan
the real puppet

User info:
Registered: Oct 2006
Posts: 103 (0.02 al dì)
Location: Busto Arsizio Beach
Corso: comunicazione digitale
Anno: ...
Time Online: 1 Day, 8:54:41 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

se mettesse davvero fork con shared memory gli offro un caffè.

domanda, probabilmente cretina, ma a cui non so dare una risposta:

mi sapete dire con che criterio scelgo di usare i semafori "normali" (quindi sem_post sem_wait) oppure i mutex (pthread_mutex_lock/unlock)???

ho capito la storia della mutua esclusione e del fatto che a certe operazioni i thread devono accedervi uno alla volta, ma se i sem e il mutex fanno la stessa cosa come scelgo quale usare???

se sapete spiegarmelo rendetemi partecipe!!!

__________________
...now my feet won't touch the ground...

29-08-2010 16:47
Click Here to See the Profile for ayakochan Click here to Send ayakochan a Private Message Find more posts by ayakochan Add ayakochan to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
ayakochan
the real puppet

User info:
Registered: Oct 2006
Posts: 103 (0.02 al dì)
Location: Busto Arsizio Beach
Corso: comunicazione digitale
Anno: ...
Time Online: 1 Day, 8:54:41 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

se mettesse davvero fork con shared memory gli offro un caffè.

domanda, probabilmente cretina, ma a cui non so dare una risposta:

mi sapete dire con che criterio scelgo di usare i semafori "normali" (quindi sem_post sem_wait) oppure i mutex (pthread_mutex_lock/unlock)???

ho capito la storia della mutua esclusione e del fatto che a certe operazioni i thread devono accedervi uno alla volta, ma se i sem e il mutex fanno la stessa cosa come scelgo quale usare???

se sapete spiegarmelo rendetemi partecipe!!!

__________________
...now my feet won't touch the ground...

29-08-2010 16:52
Click Here to See the Profile for ayakochan Click here to Send ayakochan a Private Message Find more posts by ayakochan Add ayakochan to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Ferris Bueller
.amico.

User info:
Registered: Feb 2007
Posts: 20 (0.00 al dì)
Location:
Corso: Com. Digitale
Anno:
Time Online: 1 Day, 17:32:05: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Un mutex è una versione semplificata di un semaforo e viene utilizzata quando non c'è la necessità di fare una signal.

In termini di programmazione, la mutex è una variabile su cui operi con lock e unlock, mentre con il semaforo hai a disposizione molte più opzioni (erano illustrate sulle slide).

30-08-2010 19:26
Click Here to See the Profile for Ferris Bueller Click here to Send Ferris Bueller a Private Message Find more posts by Ferris Bueller Add Ferris Bueller to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
All times are GMT. The time now is 20:59.    Post New Thread    Post A Reply
Pages (4): « 1 2 3 [4]   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.037 seconds (78.38% PHP - 21.62% MySQL) con 28 query.