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 > 2°compitino di sisop??
Pages (2): « 1 [2]   Last Thread   Next Thread
Author
Thread    Expand all | Contract all    Post New Thread    Post A Reply
Collapse
ildix
.grande:maestro.

User info:
Registered: May 2002
Posts: 1417 (0.18 al dì)
Location:
Corso:
Anno:
Time Online: 7 Days, 15:30:12 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by "kikka"

Ciao a tutti!
qualcuno mi sa dire cosa sigifica la linea di comando sleep(n) che spesso si trova nei codici di esempio dei lucidi di Bellettini? :(
Ho anche un altro dubbio sempre sul codice che ha messo Bellettini nei lucidi spero che qualcuno di voi mi sappia aiutare:
alla fine dell'argomento gestione della memoria in unix c'e un "esempio uso malloc/free" e c'e scritto che free(ptr) e un errore,mi sapete spiegare il perchè?
Grazie!!!


'sleep' vuol dire 'dormi', cioe' sospende il processo/thread per un certo nr. di secondi (non mi ricordo se N sono secondi o microsecondi, devi guardare il man/help, ma si tratta di UNIX o Java? presumo Unix..)

ildix

11-06-2002 15:59
Click Here to See the Profile for ildix Click Here to See the Blog of ildix Click here to Send ildix a Private Message Find more posts by ildix Add ildix to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Lunik
dsy core staff

User info:
Registered: Mar 2002
Posts: 22362 (2.77 al dì)
Location: Milano
Corso: ComDig
Anno: Dott.ssa
Time Online: 93 Days, 0:52:10 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Unix unix...ma xè è stato inventato?????
:cry: :cry: :cry:

:D :D :D

__________________
Il DSY su Facebook!!!

11-06-2002 16:44
Click Here to See the Profile for Lunik Click Here to See the Blog of Lunik Click here to Send Lunik a Private Message Visit Lunik's homepage! Find more posts by Lunik Add Lunik to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
10t8or
dsy adminz
=)

User info:
Registered: Feb 2002
Posts: 2189 (0.27 al dì)
Location: QUI
Corso: Ho gia dato..
Anno: oo
Time Online: 10 Days, 14:48:15 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by "Lunik"

Unix unix...ma xè è stato inventato?????
:cry: :cry: :cry:

:D :D :D


per sospendere per tot secondu un processo ovviamente.. chenneso' metti che devi fare del polling su un qualcosa, cosi' eviti di tenerti cmq il 100% della cpu..

es:
while true
checkcondition()
sleep(3)
end

checkcondition()
if cond==ok then avanti()
else return


(se mi chiedete che linguaggio e'.. boh.. penso il pigro-c =))))

tent:wq

__________________
Dr. Ma. Lol. Francisco Peralta Aguaron
francisco@dico.unimi.it - http://www.10t8or.com
No SW Patents.. Mazzetta?!

11-06-2002 17:52
Click Here to See the Profile for 10t8or Click Here to See the Blog of 10t8or Click here to Send 10t8or a Private Message Visit 10t8or's homepage! Find more posts by 10t8or Add 10t8or to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
ildix
.grande:maestro.

User info:
Registered: May 2002
Posts: 1417 (0.18 al dì)
Location:
Corso:
Anno:
Time Online: 7 Days, 15:30:12 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by "Lunik"

Unix unix...ma xè è stato inventato?????
:cry: :cry: :cry:

:D :D :D


Ma no, non dire cosi'!!!! :nono:

Unix veri fico e'! :pc:

:ihihih:

11-06-2002 18:15
Click Here to See the Profile for ildix Click Here to See the Blog of ildix Click here to Send ildix a Private Message Find more posts by ildix Add ildix to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
ildix
.grande:maestro.

User info:
Registered: May 2002
Posts: 1417 (0.18 al dì)
Location:
Corso:
Anno:
Time Online: 7 Days, 15:30:12 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by "10t8or"

Originally posted by Lunik
Unix unix...ma xè è stato inventato?????
:cry: :cry: :cry:

:D :D :D


per sospendere per tot secondu un processo ovviamente.. chenneso' metti che devi fare del polling su un qualcosa, cosi' eviti di tenerti cmq il 100% della cpu..

-= cut =-
tent:wq


Unix e' stato inventato ... per sospendere un processo ?!?!?! :P

eh, eh :-D

11-06-2002 18:16
Click Here to See the Profile for ildix Click Here to See the Blog of ildix Click here to Send ildix a Private Message Find more posts by ildix Add ildix to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Lunik
dsy core staff

User info:
Registered: Mar 2002
Posts: 22362 (2.77 al dì)
Location: Milano
Corso: ComDig
Anno: Dott.ssa
Time Online: 93 Days, 0:52:10 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

:cry: :cry: :cry:
manca poco al secondo compitino d Sis Op e NON SO UNA MAZZA!!!!!!

:cry: :cry:

__________________
Il DSY su Facebook!!!

12-06-2002 13:35
Click Here to See the Profile for Lunik Click Here to See the Blog of Lunik Click here to Send Lunik a Private Message Visit Lunik's homepage! Find more posts by Lunik Add Lunik to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
daddyrho
terzo fratello gallagher

User info:
Registered: Nov 2001
Posts: 507 (0.06 al dì)
Location: Rho (MI)
Corso: Informatica Triennale
Anno: Finito!
Time Online: 17 Days, 1:28:57 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

sono arrivato a questa conclusione...
ho delle speranze solo se il compitino è a crocette...se mi metteno delle domande a risposta aperta o del codice da scrivere,la vedo molto grigia :ueee: :ueee: :wall:
lo so che mi avete assicurato che è a crocette...ma io di quei loschi tipi non mi fido... :schifo:

__________________
()

12-06-2002 17:08
Click Here to See the Profile for daddyrho Click Here to See the Blog of daddyrho Click here to Send daddyrho a Private Message Visit daddyrho's homepage! Find more posts by daddyrho Add daddyrho to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
All times are GMT. The time now is 13:00.    Post New Thread    Post A Reply
Pages (2): « 1 [2]   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.268 seconds (25.53% PHP - 74.47% MySQL) con 26 query.