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 > progettino
Pages (8): [1] 2 3 4 5 » ... Last »   Last Thread   Next Thread
Author
Thread    Expand all | Contract all    Post New Thread    Post A Reply
Collapse
pirlo21
.arcimaestro.

User info:
Registered: Nov 2007
Posts: 352 (0.05 al dì)
Location:
Corso: informatica
Anno:
Time Online: 2 Days, 21:38:57 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged
progettino

aiutooo...qualcuno che nella confusione del laboratorio abbia capito almeno cosa si deve fare?

07-05-2008 17:31
Click Here to See the Profile for pirlo21 Click here to Send pirlo21 a Private Message Find more posts by pirlo21 Add pirlo21 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
JoY§TiCk
.::Artificial_Studios::.

User info:
Registered: Jan 2005
Posts: 59 (0.01 al dì)
Location: Milano
Corso: TICOM
Anno: 2
Time Online: 19:33:09: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

We,

il compito verra` comunicato da Monga durante la lezione di venerdi` e verra` pubblicato online. In caso contrario verra` comunicato con altre modalita` ;-)

Luca && Aristide

__________________
There are two types of people:
- those that learn how to write code themselves. They will be called "developers".
- those that demand code written for them, and patch it together. Those will be called "script kiddies" and are laughed at.
www.artificialstudios.it

08-05-2008 08:38
Click Here to See the Profile for JoY§TiCk Click here to Send JoY§TiCk a Private Message Visit JoY§TiCk's homepage! Find more posts by JoY§TiCk Add JoY§TiCk to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
DarkSchneider
Why so serious?

User info:
Registered: Feb 2004
Posts: 1250 (0.16 al dì)
Location: Brescia
Corso: Informatica
Anno: out of bounds :/
Time Online: 26 Days, 1:01:59 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

progettino?

di cosa state parlando?

:?

08-05-2008 08:44
Click Here to See the Profile for DarkSchneider Click here to Send DarkSchneider a Private Message Find more posts by DarkSchneider Add DarkSchneider to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
marbliss
.illuminato.

User info:
Registered: Nov 2006
Posts: 84 (0.01 al dì)
Location: Milano
Corso: TICOM
Anno: Primo
Time Online: 3 Days, 20:37:00: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

State parlando di venerdì 9 maggio? C'è per caso lezione domani?

Last edited by marbliss on 08-05-2008 at 09:38

08-05-2008 09:25
Click Here to See the Profile for marbliss Click here to Send marbliss a Private Message Find more posts by marbliss Add marbliss to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
DarkSchneider
Why so serious?

User info:
Registered: Feb 2004
Posts: 1250 (0.16 al dì)
Location: Brescia
Corso: Informatica
Anno: out of bounds :/
Time Online: 26 Days, 1:01:59 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

ma il progettino sostituisce la prova di laboratorio?

08-05-2008 09:30
Click Here to See the Profile for DarkSchneider Click here to Send DarkSchneider a Private Message Find more posts by DarkSchneider Add DarkSchneider to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
darkshadow
Are You From The Past?

User info:
Registered: Jul 2007
Posts: 485 (0.07 al dì)
Location: Milano
Corso: Informatica Magistrale
Anno: 1
Time Online: 13 Days, 13:38:56 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

cos'è sta cosa del progetto??

qualcuno puo spiegare di cosa si tratta??

purtroppo ho saltato le ultime lezioni.


Grazie in anticipo.

__________________
by Ð@rk§h@ÐØw

08-05-2008 09:42
Click Here to See the Profile for darkshadow Click here to Send darkshadow a Private Message Find more posts by darkshadow Add darkshadow to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
JoY§TiCk
.::Artificial_Studios::.

User info:
Registered: Jan 2005
Posts: 59 (0.01 al dì)
Location: Milano
Corso: TICOM
Anno: 2
Time Online: 19:33:09: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Domani ci sara` lezione nonostante lo sciopero e verra` spiegato l'homework.

ciaps.

__________________
There are two types of people:
- those that learn how to write code themselves. They will be called "developers".
- those that demand code written for them, and patch it together. Those will be called "script kiddies" and are laughed at.
www.artificialstudios.it

Last edited by JoY§TiCk on 08-05-2008 at 11:33

08-05-2008 11:26
Click Here to See the Profile for JoY§TiCk Click here to Send JoY§TiCk a Private Message Visit JoY§TiCk's homepage! Find more posts by JoY§TiCk Add JoY§TiCk to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
pamarcan
.primate.

User info:
Registered: Mar 2006
Posts: 68 (0.01 al dì)
Location:
Corso: informatica
Anno:
Time Online: 1 Day, 7:02:16 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

l'homework serve ad evitare, a chi lo passerà, la prova di laboratorio relativa al kernel. rimane comunque la parte su shell e partizionamento del disco.
l'homework consisterà nell'implementazione di un nuovo server, come quello visto in laboratorio sui semafori.

08-05-2008 16:47
Click Here to See the Profile for pamarcan Click here to Send pamarcan a Private Message Find more posts by pamarcan Add pamarcan to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Gehur
.grande:maestro.

User info:
Registered: Apr 2006
Posts: 519 (0.07 al dì)
Location: Milano
Corso: Informatica
Anno:
Time Online: 3 Days, 0:41:42 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

ma in pratica domani mattica il monga che fa?? lezione normale??

08-05-2008 18:06
Click Here to See the Profile for Gehur Click here to Send Gehur a Private Message Find more posts by Gehur Add Gehur to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
JoY§TiCk
.::Artificial_Studios::.

User info:
Registered: Jan 2005
Posts: 59 (0.01 al dì)
Location: Milano
Corso: TICOM
Anno: 2
Time Online: 19:33:09: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

si.

__________________
There are two types of people:
- those that learn how to write code themselves. They will be called "developers".
- those that demand code written for them, and patch it together. Those will be called "script kiddies" and are laughed at.
www.artificialstudios.it

08-05-2008 19:23
Click Here to See the Profile for JoY§TiCk Click here to Send JoY§TiCk a Private Message Visit JoY§TiCk's homepage! Find more posts by JoY§TiCk Add JoY§TiCk to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
JoY§TiCk
.::Artificial_Studios::.

User info:
Registered: Jan 2005
Posts: 59 (0.01 al dì)
Location: Milano
Corso: TICOM
Anno: 2
Time Online: 19:33:09: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

We,

le specifiche del progettino sono disponibili sul wiki .

Have fun ;-)

__________________
There are two types of people:
- those that learn how to write code themselves. They will be called "developers".
- those that demand code written for them, and patch it together. Those will be called "script kiddies" and are laughed at.
www.artificialstudios.it

11-05-2008 09:08
Click Here to See the Profile for JoY§TiCk Click here to Send JoY§TiCk a Private Message Visit JoY§TiCk's homepage! Find more posts by JoY§TiCk Add JoY§TiCk to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Larios
.consigliere.

User info:
Registered: Oct 2007
Posts: 114 (0.02 al dì)
Location:
Corso:
Anno:
Time Online: 20:21:35 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

nell'esempio di codice del progetto il down indicato dalla freccia(------>> ) non è sbagliato in quella posizione? nel senso ch è di troppo...

se S all'inizio è a 1 e poi faccio una down portando a 0 mi si ferma li per forza... ha senso invece farlo dopo la fork, o sbaglio?

PHP:

#include <stdio.h>
#include <unistd.h>
#include <sys/wait.h>
 
#define S 0
 
int main(void){
 int f;
 
 sema_init(S, 1);
------>> down(S); 
 f = fork();
 if (f == 0){
  down(S);
  printf("Sono il figlio...\n");
  printf("Fine del figlio.\n");
  up(S);
 } else {
  sleep(1);
  printf("Sono il padre...\n");
  sleep(3);
  printf("Fine del padre.\n");
  up(S);
  waitpid(f, NULL, 0);
 } 
 
 
 return 0;
}

11-05-2008 15:08
Click Here to See the Profile for Larios Click here to Send Larios a Private Message Find more posts by Larios Add Larios to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
JoY§TiCk
.::Artificial_Studios::.

User info:
Registered: Jan 2005
Posts: 59 (0.01 al dì)
Location: Milano
Corso: TICOM
Anno: 2
Time Online: 19:33:09: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Non so se ho capito bene il tuo dubbio ma credo che il codice sia giusto. Invocando la down appena dopo aver inizializzato il semaforo, questo viene portato giustamente a 0 come dici tu e la funzione do_down, per esempio quella presentata a lezione e disponibile sul wiki ritorna OK:

PHP:

if (s > 0){
    s = s - 1;
    return OK;
}



l'esecuzione quindi prosegue, esegue la fork. E` voluto per fare in modo che se viene eseguito il codice del figlio prima di quello del padre, la down nel figlio lo blocca finche il padre non ha eseguito la up.

ciaps, joy

__________________
There are two types of people:
- those that learn how to write code themselves. They will be called "developers".
- those that demand code written for them, and patch it together. Those will be called "script kiddies" and are laughed at.
www.artificialstudios.it

11-05-2008 15:58
Click Here to See the Profile for JoY§TiCk Click here to Send JoY§TiCk a Private Message Visit JoY§TiCk's homepage! Find more posts by JoY§TiCk Add JoY§TiCk to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Larios
.consigliere.

User info:
Registered: Oct 2007
Posts: 114 (0.02 al dì)
Location:
Corso:
Anno:
Time Online: 20:21:35 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

si è vero è propio cosi'.

ora mi funziona tutto ma ho questi messaggi all'avvio e allo shutdown, dovrei guardarci meglio per capire a cosa sono dovuti..., per caso ne sai qualcosa? :?

EDIT: Per il problema allo shutdown è che sulla verione del prof è stato cancellato il:
case SYS_SIG:

http://www.raspberryginger.com/jbai..._8c-source.html

andando a controllare infatti il chiamante è -2...


Last edited by Larios on 11-05-2008 at 21:48

11-05-2008 21:35
Click Here to See the Profile for Larios Click here to Send Larios a Private Message Find more posts by Larios Add Larios to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Fonzie
.drogato.

User info:
Registered: Oct 2002
Posts: 516 (0.06 al dì)
Location: Rozzano
Corso: Informatica
Anno: ...
Time Online: 4 Days, 4:45:28 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by pamarcan
l'homework serve ad evitare, a chi lo passerà, la prova di laboratorio relativa al kernel. rimane comunque la parte su shell e partizionamento del disco.
l'homework consisterà nell'implementazione di un nuovo server, come quello visto in laboratorio sui semafori.


Perchè a noi del serale non è stato detto niente di tutto ciò?

__________________
Ci vuole scienza, ci vuol costanza ad invecchiare senza maturità

Guccini

Visti My Fotolog

12-05-2008 11:08
Click Here to See the Profile for Fonzie Click here to Send Fonzie a Private Message Find more posts by Fonzie Add Fonzie 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:33.    Post New Thread    Post A Reply
Pages (8): [1] 2 3 4 5 » ... 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.119 seconds (63.51% PHP - 36.49% MySQL) con 26 query.