erwthsh sxetika me C

Kostas Gewrgiou gewrgiou at imbc.gr
Thu Oct 7 21:18:12 EEST 1999



On Thu, 7 Oct 1999, Nikos Mavroyanopoulos wrote:

> On Thu, Oct 07, 1999 at 11:22:27AM +0300, Bassoukos Tassos wrote:
> 
> > Gia thn arxikh erwthsh, to stdio ftiaxnei buffers otan anoigeis to arxeio,
> > sta opoia apo8hkeyontai ta dedomena proswrina, wste na mhn spatalaei to
> > programma sou olo ton xrono tou se context switches. Ean grafeis polla se
> > ka8e iteration, aplws bale ena fflush sto telos, alloiws ena setvbuf sthn
> > arxh kanei thn douleia.
> > man fflush;
> > man setbuf;
> > man setvbuf;
> man fsync
>

 Kai to fflush kai to fsync tha kanoun auto pou theleis, to fsync omos
exei safestata megalitero overhead apo oti to fflush. To fsync tha kanei
write ston disko amesos eno to fflush oxi. Opote ektos kai ean theleis na
eisai sigouros oti ta data graftikan ston disko protimise to fflush.

PS> Meta apo fflush diavazontas to arxeio apo allo programma tha deis
ta data sou, asxeta me to ean exoun graftei ston disko h ta diafora alla
peri controllers etc... pou akoustikan. 
 
> > Tassos
> > [0] estw, diabazw.
> > -- 
> > Bassoukos Tassos   +30 31 996011 / +30 93 7109954
> >  Computer Shaman and Informatics Thaumaturge
> 
> -- 
> Nikos Mavroyanopoulos
> mailto:nmav at hellug.gr
> I may not be perfect, but parts of me are excellent.
> 


Kostas Gewrgiou


--
====================================================================
Gia boithia (h na diagrafhte) e-mail sto majordomo at hellug.gr
Ta archives tis listas einai sto http://lists.hellug.gr/archives
prin steilete kapoia erothsh psakte mipos exei hdh apanththei.
Gia opoiodipote problima stilte e-mail ston owner-linux-greek-users at hellug.gr
====================================================================



More information about the Linux-greek-users mailing list